@things-factory/rack-base 7.0.1-alpha.10 → 7.0.1-alpha.100

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
+ import '@material/web/icon/icon.js'
1
2
  import '@operato/data-grist'
2
3
 
3
4
  import gql from 'graphql-tag'
@@ -7,9 +8,11 @@ import { property } from 'lit/decorators.js'
7
8
  import { client } from '@operato/graphql'
8
9
  import { i18next } from '@operato/i18n'
9
10
  import { isMobileDevice } from '@operato/utils'
11
+ import { ButtonContainerStyles } from '@operato/styles'
10
12
 
11
13
  export class CellImporter extends LitElement {
12
14
  static styles = [
15
+ ButtonContainerStyles,
13
16
  css`
14
17
  :host {
15
18
  display: flex;
@@ -21,16 +24,6 @@ export class CellImporter extends LitElement {
21
24
  ox-grist {
22
25
  flex: 1;
23
26
  }
24
-
25
- .button-container {
26
- display: flex;
27
- margin-left: auto;
28
- padding: var(--padding-default);
29
- }
30
-
31
- mwc-button {
32
- margin-left: var(--margin-default);
33
- }
34
27
  `
35
28
  ]
36
29
 
@@ -60,21 +53,18 @@ export class CellImporter extends LitElement {
60
53
  ]
61
54
  }
62
55
 
63
-
64
56
  render() {
65
57
  return html`
66
58
  <ox-grist
67
59
  .mode=${isMobileDevice() ? 'LIST' : 'GRID'}
68
60
  .config=${this.columns}
69
- .data=${
70
- {
71
- records: this.cells
72
- }
73
- }
61
+ .data=${{
62
+ records: this.cells
63
+ }}
74
64
  ></ox-grist>
75
65
 
76
66
  <div class="button-container">
77
- <mwc-button raised @click="${this.save.bind(this)}">${i18next.t('button.save')}</mwc-button>
67
+ <button @click="${this.save.bind(this)}"><md-icon>save</md-icon>${i18next.t('button.save')}</button>
78
68
  </div>
79
69
  `
80
70
  }
@@ -94,4 +84,3 @@ export class CellImporter extends LitElement {
94
84
  this.dispatchEvent(new CustomEvent('imported'))
95
85
  }
96
86
  }
97
-
@@ -89,7 +89,7 @@ export class CellListPage extends connect(store)(localize(i18next)(ScopedElement
89
89
 
90
90
  <div id="sorters">
91
91
  Sort
92
- <mwc-icon
92
+ <md-icon
93
93
  @click=${e => {
94
94
  const target = e.currentTarget
95
95
  this.sortersControl.open({
@@ -97,7 +97,7 @@ export class CellListPage extends connect(store)(localize(i18next)(ScopedElement
97
97
  top: target.offsetTop + target.offsetHeight
98
98
  })
99
99
  }}
100
- >expand_more</mwc-icon
100
+ >expand_more</md-icon
101
101
  >
102
102
  <ox-popup id="sorter-control">
103
103
  <ox-sorters-control> </ox-sorters-control>
@@ -105,9 +105,10 @@ export class CellListPage extends connect(store)(localize(i18next)(ScopedElement
105
105
  </div>
106
106
 
107
107
  <div id="modes">
108
- <mwc-icon @click=${() => (this.mode = 'GRID')} ?active=${mode == 'GRID'}>grid_on</mwc-icon>
109
- <mwc-icon @click=${() => (this.mode = 'LIST')} ?active=${mode == 'LIST'}>format_list_bulleted</mwc-icon>
110
- <mwc-icon @click=${() => (this.mode = 'CARD')} ?active=${mode == 'CARD'}>apps</mwc-icon>
108
+ <md-icon @click=${() => (this.mode = 'GRID')} ?active=${mode == 'GRID'}>grid_on</md-icon>
109
+ <md-icon @click=${() => (this.mode = 'LIST')} ?active=${mode == 'LIST'}>format_list_bulleted</md-icon>
110
+ <md-icon @click=${() => (this.mode = 'CARD')} ?active=${mode == 'CARD'}>apps</md-icon>
111
+ </div>
111
112
  </div>
112
113
  </div>
113
114
  </ox-grist>
@@ -1,3 +1,4 @@
1
+ import '@material/web/icon/icon.js'
1
2
  import '@operato/data-grist'
2
3
 
3
4
  import gql from 'graphql-tag'
@@ -7,9 +8,11 @@ import { property } from 'lit/decorators.js'
7
8
  import { client } from '@operato/graphql'
8
9
  import { i18next } from '@operato/i18n'
9
10
  import { isMobileDevice } from '@operato/utils'
11
+ import { ButtonContainerStyles } from '@operato/styles'
10
12
 
11
13
  export class RackImporter extends LitElement {
12
14
  static styles = [
15
+ ButtonContainerStyles,
13
16
  css`
14
17
  :host {
15
18
  display: flex;
@@ -21,16 +24,6 @@ export class RackImporter extends LitElement {
21
24
  ox-grist {
22
25
  flex: 1;
23
26
  }
24
-
25
- .button-container {
26
- display: flex;
27
- margin-left: auto;
28
- padding: var(--padding-default);
29
- }
30
-
31
- mwc-button {
32
- margin-left: var(--margin-default);
33
- }
34
27
  `
35
28
  ]
36
29
 
@@ -60,21 +53,18 @@ export class RackImporter extends LitElement {
60
53
  ]
61
54
  }
62
55
 
63
-
64
56
  render() {
65
57
  return html`
66
58
  <ox-grist
67
59
  .mode=${isMobileDevice() ? 'LIST' : 'GRID'}
68
60
  .config=${this.columns}
69
- .data=${
70
- {
71
- records: this.racks
72
- }
73
- }
61
+ .data=${{
62
+ records: this.racks
63
+ }}
74
64
  ></ox-grist>
75
65
 
76
66
  <div class="button-container">
77
- <mwc-button raised @click="${this.save.bind(this)}">${i18next.t('button.save')}</mwc-button>
67
+ <button @click="${this.save.bind(this)}"><md-icon>save</md-icon>${i18next.t('button.save')}</button>
78
68
  </div>
79
69
  `
80
70
  }
@@ -94,4 +84,3 @@ export class RackImporter extends LitElement {
94
84
  this.dispatchEvent(new CustomEvent('imported'))
95
85
  }
96
86
  }
97
-
@@ -89,7 +89,7 @@ export class RackListPage extends connect(store)(localize(i18next)(ScopedElement
89
89
 
90
90
  <div id="sorters">
91
91
  Sort
92
- <mwc-icon
92
+ <md-icon
93
93
  @click=${e => {
94
94
  const target = e.currentTarget
95
95
  this.sortersControl.open({
@@ -97,7 +97,7 @@ export class RackListPage extends connect(store)(localize(i18next)(ScopedElement
97
97
  top: target.offsetTop + target.offsetHeight
98
98
  })
99
99
  }}
100
- >expand_more</mwc-icon
100
+ >expand_more</md-icon
101
101
  >
102
102
  <ox-popup id="sorter-control">
103
103
  <ox-sorters-control> </ox-sorters-control>
@@ -105,9 +105,10 @@ export class RackListPage extends connect(store)(localize(i18next)(ScopedElement
105
105
  </div>
106
106
 
107
107
  <div id="modes">
108
- <mwc-icon @click=${() => (this.mode = 'GRID')} ?active=${mode == 'GRID'}>grid_on</mwc-icon>
109
- <mwc-icon @click=${() => (this.mode = 'LIST')} ?active=${mode == 'LIST'}>format_list_bulleted</mwc-icon>
110
- <mwc-icon @click=${() => (this.mode = 'CARD')} ?active=${mode == 'CARD'}>apps</mwc-icon>
108
+ <md-icon @click=${() => (this.mode = 'GRID')} ?active=${mode == 'GRID'}>grid_on</md-icon>
109
+ <md-icon @click=${() => (this.mode = 'LIST')} ?active=${mode == 'LIST'}>format_list_bulleted</md-icon>
110
+ <md-icon @click=${() => (this.mode = 'CARD')} ?active=${mode == 'CARD'}>apps</md-icon>
111
+ </div>
111
112
  </div>
112
113
  </div>
113
114
  </ox-grist>
@@ -15,7 +15,7 @@ tslib_1.__decorate([
15
15
  ], Cell.prototype, "id", void 0);
16
16
  tslib_1.__decorate([
17
17
  (0, typeorm_1.ManyToOne)(type => shell_1.Domain),
18
- (0, type_graphql_1.Field)({ nullable: true }),
18
+ (0, type_graphql_1.Field)(type => shell_1.Domain),
19
19
  tslib_1.__metadata("design:type", shell_1.Domain)
20
20
  ], Cell.prototype, "domain", void 0);
21
21
  tslib_1.__decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"cell.js","sourceRoot":"","sources":["../../../server/service/cell/cell.ts"],"names":[],"mappings":";;;;AAAA,+CAAoD;AACpD,qCASgB;AAEhB,yDAAgD;AAChD,iDAA8C;AAKvC,IAAM,IAAI,GAAV,MAAM,IAAI;CA6FhB,CAAA;AA5FC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;gCACC;AAEnB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACjB,cAAM;oCAAA;AAEf;IAAC,IAAA,oBAAU,EAAC,CAAC,IAAU,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,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AAEd;IAAC,IAAA,oBAAU,EAAC,CAAC,IAAU,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC;;uCACvB;AA5FP,IAAI;IAHhB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,WAAW,EAAE,CAAC,IAAU,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAChF,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC;GAClC,IAAI,CA6FhB;AA7FY,oBAAI","sourcesContent":["import { Field, ID, ObjectType } from 'type-graphql'\nimport {\n Column,\n CreateDateColumn,\n Entity,\n Index,\n ManyToOne,\n PrimaryGeneratedColumn,\n RelationId,\n UpdateDateColumn\n} from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { Domain } from '@things-factory/shell'\n\n@Entity()\n@Index('ix_cell_0', (cell: Cell) => [cell.domain, cell.cellCd], { unique: true })\n@ObjectType({ description: 'Entity for Cell' })\nexport class Cell {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain?: Domain\n\n @RelationId((cell: Cell) => cell.domain)\n domainId?: string\n\n @Column({ nullable: true, length: 30 })\n @Field({ nullable: true })\n stationCd: string\n\n @Column({ length: 30 })\n @Field()\n equipCd: string\n\n @Column({ length: 30 })\n @Field()\n cellCd: string\n\n @Column({ length: 30 })\n @Field()\n indCd: string\n\n @Column({ length: 40 })\n @Field()\n channelNo: string\n\n @Column({ length: 40 })\n @Field()\n panNo: string\n\n @Column({ nullable: true, length: 30 })\n @Field({ nullable: true })\n equipZone?: string\n\n @Column({ nullable: true, length: 30 })\n @Field({ nullable: true })\n sideCd?: string\n\n @Column({ nullable: true, width: 10 })\n @Field({ nullable: true })\n cellSeq?: number\n\n @Column({ nullable: true, length: 30 })\n @Field({ nullable: true })\n printerCd?: string\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n activeFlag?: boolean\n\n @Column({ nullable: true, width: 10 })\n @Field({ nullable: true })\n status?: string\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n params?: string\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt?: Date\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n creator?: User\n\n @RelationId((cell: Cell) => cell.creator)\n creatorId?: string\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n updater?: User\n\n @RelationId((cell: Cell) => cell.updater)\n updaterId?: string\n}\n"]}
1
+ {"version":3,"file":"cell.js","sourceRoot":"","sources":["../../../server/service/cell/cell.ts"],"names":[],"mappings":";;;;AAAA,+CAAoD;AACpD,qCASgB;AAEhB,yDAAgD;AAChD,iDAA8C;AAKvC,IAAM,IAAI,GAAV,MAAM,IAAI;CA6FhB,CAAA;AA5FC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;gCACC;AAEnB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;sCACb,cAAM;oCAAA;AAEf;IAAC,IAAA,oBAAU,EAAC,CAAC,IAAU,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC;;sCACvB;AAEjB;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;IACtC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACT;AAEjB;IAAC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,EAAE,EAAE,C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AAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAChF,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC;GAClC,IAAI,CA6FhB;AA7FY,oBAAI","sourcesContent":["import { Field, ID, ObjectType } from 'type-graphql'\nimport {\n Column,\n CreateDateColumn,\n Entity,\n Index,\n ManyToOne,\n PrimaryGeneratedColumn,\n RelationId,\n UpdateDateColumn\n} from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { Domain } from '@things-factory/shell'\n\n@Entity()\n@Index('ix_cell_0', (cell: Cell) => [cell.domain, cell.cellCd], { unique: true })\n@ObjectType({ description: 'Entity for Cell' })\nexport class Cell {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field(type => Domain)\n domain?: Domain\n\n @RelationId((cell: Cell) => cell.domain)\n domainId?: string\n\n @Column({ nullable: true, length: 30 })\n @Field({ nullable: true })\n stationCd: string\n\n @Column({ length: 30 })\n @Field()\n equipCd: string\n\n @Column({ length: 30 })\n @Field()\n cellCd: string\n\n @Column({ length: 30 })\n @Field()\n indCd: string\n\n @Column({ length: 40 })\n @Field()\n channelNo: string\n\n @Column({ length: 40 })\n @Field()\n panNo: string\n\n @Column({ nullable: true, length: 30 })\n @Field({ nullable: true })\n equipZone?: string\n\n @Column({ nullable: true, length: 30 })\n @Field({ nullable: true })\n sideCd?: string\n\n @Column({ nullable: true, width: 10 })\n @Field({ nullable: true })\n cellSeq?: number\n\n @Column({ nullable: true, length: 30 })\n @Field({ nullable: true })\n printerCd?: string\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n activeFlag?: boolean\n\n @Column({ nullable: true, width: 10 })\n @Field({ nullable: true })\n status?: string\n\n @Column({\n nullable: true\n })\n @Field({ nullable: true })\n params?: string\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt?: Date\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n creator?: User\n\n @RelationId((cell: Cell) => cell.creator)\n creatorId?: string\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n updater?: User\n\n @RelationId((cell: Cell) => cell.updater)\n updaterId?: string\n}\n"]}
@@ -15,7 +15,7 @@ tslib_1.__decorate([
15
15
  ], Rack.prototype, "id", void 0);
16
16
  tslib_1.__decorate([
17
17
  (0, typeorm_1.ManyToOne)(type => shell_1.Domain),
18
- (0, type_graphql_1.Field)({ nullable: true }),
18
+ (0, type_graphql_1.Field)(type => shell_1.Domain),
19
19
  tslib_1.__metadata("design:type", shell_1.Domain)
20
20
  ], Rack.prototype, "domain", void 0);
21
21
  tslib_1.__decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"rack.js","sourceRoot":"","sources":["../../../server/service/rack/rack.ts"],"names":[],"mappings":";;;;AAAA,+CAAoD;AACpD,qCASgB;AAEhB,yDAAgD;AAChD,iDAA8C;AAKvC,IAAM,IAAI,GAAV,MAAM,IAAI;CAyDhB,CAAA;AAxDC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;gCACC;AAEnB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCACjB,cAAM;oCAAA;AAEf;IAAC,IAAA,oBAAU,EAAC,CAAC,IAAU,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC;;sCACvB;AAEjB;IAAC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;IACtB,IAAA,oBAAK,GAAE;;oCACM;AAEd;IAAC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;IACvB,I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AU,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC;;uCACvB;AAxDP,IAAI;IAHhB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,WAAW,EAAE,CAAC,IAAU,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAChF,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC;GAClC,IAAI,CAyDhB;AAzDY,oBAAI","sourcesContent":["import { Field, ID, ObjectType } from 'type-graphql'\nimport {\n Column,\n CreateDateColumn,\n Entity,\n Index,\n ManyToOne,\n PrimaryGeneratedColumn,\n RelationId,\n UpdateDateColumn\n} from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { Domain } from '@things-factory/shell'\n\n@Entity()\n@Index('ix_rack_0', (rack: Rack) => [rack.domain, rack.rackCd], { unique: true })\n@ObjectType({ description: 'Entity for Rack' })\nexport class Rack {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain?: Domain\n\n @RelationId((rack: Rack) => rack.domain)\n domainId?: string\n\n @Column({ length: 30 })\n @Field()\n rackCd: string\n\n @Column({ length: 100 })\n @Field()\n rackNm: string\n\n @Column({ nullable: true, length: 30 })\n @Field({ nullable: true })\n jobGroupCd?: string\n\n @Column({ nullable: true, length: 10 })\n @Field({ nullable: true })\n status?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n activeFlag?: boolean\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt?: Date\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n creator?: User\n\n @RelationId((rack: Rack) => rack.creator)\n creatorId?: string\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n updater?: User\n\n @RelationId((rack: Rack) => rack.updater)\n updaterId?: string\n}\n"]}
1
+ {"version":3,"file":"rack.js","sourceRoot":"","sources":["../../../server/service/rack/rack.ts"],"names":[],"mappings":";;;;AAAA,+CAAoD;AACpD,qCASgB;AAEhB,yDAAgD;AAChD,iDAA8C;AAKvC,IAAM,IAAI,GAAV,MAAM,IAAI;CAyDhB,CAAA;AAxDC;IAAC,IAAA,gCAAsB,EAAC,MAAM,CAAC;IAC9B,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,iBAAE,CAAC;;gCACC;AAEnB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;IACzB,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,cAAM,CAAC;sCACb,cAAM;oCAAA;AAEf;IAAC,IAAA,oBAAU,EAAC,CAAC,IAAU,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC;;sCACvB;AAEjB;IAAC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;IACtB,IAAA,oBAAK,GAAE;;oCACM;AAEd;IAAC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;IACvB,IAAA,oBAAK,GAAE;;oCACM;AAEd;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;IACtC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACP;AAEnB;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;IACtC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCACX;AAEf;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC1B,IAAA,oBAAK,EAAC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imaryGeneratedColumn,\n RelationId,\n UpdateDateColumn\n} from 'typeorm'\n\nimport { User } from '@things-factory/auth-base'\nimport { Domain } from '@things-factory/shell'\n\n@Entity()\n@Index('ix_rack_0', (rack: Rack) => [rack.domain, rack.rackCd], { unique: true })\n@ObjectType({ description: 'Entity for Rack' })\nexport class Rack {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field(type => Domain)\n domain?: Domain\n\n @RelationId((rack: Rack) => rack.domain)\n domainId?: string\n\n @Column({ length: 30 })\n @Field()\n rackCd: string\n\n @Column({ length: 100 })\n @Field()\n rackNm: string\n\n @Column({ nullable: true, length: 30 })\n @Field({ nullable: true })\n jobGroupCd?: string\n\n @Column({ nullable: true, length: 10 })\n @Field({ nullable: true })\n status?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n activeFlag?: boolean\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt?: Date\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n creator?: User\n\n @RelationId((rack: Rack) => rack.creator)\n creatorId?: string\n\n @ManyToOne(type => User, {\n nullable: true\n })\n @Field({ nullable: true })\n updater?: User\n\n @RelationId((rack: Rack) => rack.updater)\n updaterId?: string\n}\n"]}