@admc-go-th/admc-library 1.0.113 → 1.0.115

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,32 +1,2 @@
1
- import { Model } from 'sequelize-typescript';
2
-
3
- interface msExecutiveAttributes {
4
- id?: number;
5
- titleId?: number;
6
- firstName?: string;
7
- lastName?: string;
8
- firstNameEn?: string;
9
- lastNameEn?: string;
10
- email?: string;
11
- status?: string;
12
- createdBy?: string;
13
- createdDate?: Date;
14
- updatedBy?: string;
15
- updatedDate?: Date;
16
- }
17
- declare class msExecutive extends Model<msExecutiveAttributes, msExecutiveAttributes> implements msExecutiveAttributes {
18
- id?: number;
19
- titleId?: number;
20
- firstName?: string;
21
- lastName?: string;
22
- firstNameEn?: string;
23
- lastNameEn?: string;
24
- email?: string;
25
- status?: string;
26
- createdBy?: string;
27
- createdDate?: Date;
28
- updatedBy?: string;
29
- updatedDate?: Date;
30
- }
31
-
32
- export { msExecutive, type msExecutiveAttributes };
1
+ import 'sequelize-typescript';
2
+ export { a as msExecutive, m as msExecutiveAttributes } from '../../msExecutive-Brhgvmvs.js';
@@ -31,8 +31,11 @@ __export(msExecutive_exports, {
31
31
  msExecutive: () => msExecutive
32
32
  });
33
33
  module.exports = __toCommonJS(msExecutive_exports);
34
+ var import_sequelize_typescript3 = require("sequelize-typescript");
35
+
36
+ // src/databases/tables/msExecutiveGroup.ts
34
37
  var import_sequelize_typescript = require("sequelize-typescript");
35
- var msExecutive = class extends import_sequelize_typescript.Model {
38
+ var msExecutiveGroup = class extends import_sequelize_typescript.Model {
36
39
  };
37
40
  __decorateClass([
38
41
  (0, import_sequelize_typescript.Column)({
@@ -40,84 +43,322 @@ __decorateClass([
40
43
  autoIncrement: true,
41
44
  type: import_sequelize_typescript.DataType.INTEGER
42
45
  })
43
- ], msExecutive.prototype, "id", 2);
46
+ ], msExecutiveGroup.prototype, "id", 2);
44
47
  __decorateClass([
45
48
  (0, import_sequelize_typescript.Column)({
46
- field: "title_id",
47
49
  allowNull: true,
48
- type: import_sequelize_typescript.DataType.INTEGER
50
+ type: import_sequelize_typescript.DataType.STRING(60)
49
51
  })
50
- ], msExecutive.prototype, "titleId", 2);
52
+ ], msExecutiveGroup.prototype, "uuid", 2);
51
53
  __decorateClass([
52
54
  (0, import_sequelize_typescript.Column)({
53
- field: "first_name",
54
55
  allowNull: true,
55
56
  type: import_sequelize_typescript.DataType.STRING(255)
56
57
  })
57
- ], msExecutive.prototype, "firstName", 2);
58
+ ], msExecutiveGroup.prototype, "name", 2);
58
59
  __decorateClass([
59
60
  (0, import_sequelize_typescript.Column)({
60
- field: "last_name",
61
61
  allowNull: true,
62
62
  type: import_sequelize_typescript.DataType.STRING(255)
63
63
  })
64
- ], msExecutive.prototype, "lastName", 2);
64
+ ], msExecutiveGroup.prototype, "description", 2);
65
65
  __decorateClass([
66
66
  (0, import_sequelize_typescript.Column)({
67
- field: "first_name_en",
67
+ field: "start_date",
68
68
  allowNull: true,
69
- type: import_sequelize_typescript.DataType.STRING(255)
69
+ type: import_sequelize_typescript.DataType.DATEONLY
70
70
  })
71
- ], msExecutive.prototype, "firstNameEn", 2);
71
+ ], msExecutiveGroup.prototype, "startDate", 2);
72
72
  __decorateClass([
73
73
  (0, import_sequelize_typescript.Column)({
74
- field: "last_name_en",
74
+ field: "end_date",
75
75
  allowNull: true,
76
- type: import_sequelize_typescript.DataType.STRING(255)
76
+ type: import_sequelize_typescript.DataType.DATEONLY
77
77
  })
78
- ], msExecutive.prototype, "lastNameEn", 2);
78
+ ], msExecutiveGroup.prototype, "endDate", 2);
79
79
  __decorateClass([
80
80
  (0, import_sequelize_typescript.Column)({
81
81
  allowNull: true,
82
- type: import_sequelize_typescript.DataType.STRING(255)
82
+ type: import_sequelize_typescript.DataType.INTEGER
83
83
  })
84
- ], msExecutive.prototype, "email", 2);
84
+ ], msExecutiveGroup.prototype, "sort", 2);
85
85
  __decorateClass([
86
86
  (0, import_sequelize_typescript.Column)({
87
87
  allowNull: true,
88
- type: import_sequelize_typescript.DataType.STRING(255)
88
+ type: import_sequelize_typescript.DataType.INTEGER
89
89
  })
90
- ], msExecutive.prototype, "status", 2);
90
+ ], msExecutiveGroup.prototype, "status", 2);
91
+ __decorateClass([
92
+ (0, import_sequelize_typescript.Column)({
93
+ allowNull: true,
94
+ type: import_sequelize_typescript.DataType.JSON
95
+ })
96
+ ], msExecutiveGroup.prototype, "info", 2);
91
97
  __decorateClass([
92
98
  (0, import_sequelize_typescript.Column)({
93
99
  field: "created_by",
94
100
  allowNull: true,
95
101
  type: import_sequelize_typescript.DataType.STRING(60)
96
102
  })
97
- ], msExecutive.prototype, "createdBy", 2);
103
+ ], msExecutiveGroup.prototype, "createdBy", 2);
98
104
  __decorateClass([
99
105
  (0, import_sequelize_typescript.Column)({
100
106
  field: "created_date",
101
107
  allowNull: true,
102
108
  type: import_sequelize_typescript.DataType.DATE
103
109
  })
104
- ], msExecutive.prototype, "createdDate", 2);
110
+ ], msExecutiveGroup.prototype, "createdDate", 2);
105
111
  __decorateClass([
106
112
  (0, import_sequelize_typescript.Column)({
107
113
  field: "updated_by",
108
114
  allowNull: true,
109
115
  type: import_sequelize_typescript.DataType.STRING(60)
110
116
  })
111
- ], msExecutive.prototype, "updatedBy", 2);
117
+ ], msExecutiveGroup.prototype, "updatedBy", 2);
112
118
  __decorateClass([
113
119
  (0, import_sequelize_typescript.Column)({
114
120
  field: "updated_date",
115
121
  allowNull: true,
116
122
  type: import_sequelize_typescript.DataType.DATE
117
123
  })
124
+ ], msExecutiveGroup.prototype, "updatedDate", 2);
125
+ __decorateClass([
126
+ (0, import_sequelize_typescript.HasMany)(() => msExecutive, {
127
+ sourceKey: "id"
128
+ })
129
+ ], msExecutiveGroup.prototype, "msExecutives", 2);
130
+ msExecutiveGroup = __decorateClass([
131
+ (0, import_sequelize_typescript.Table)({
132
+ tableName: "ms_executive_group",
133
+ timestamps: false
134
+ })
135
+ ], msExecutiveGroup);
136
+
137
+ // src/databases/tables/msExecutivePosition.ts
138
+ var import_sequelize_typescript2 = require("sequelize-typescript");
139
+ var msExecutivePosition = class extends import_sequelize_typescript2.Model {
140
+ };
141
+ __decorateClass([
142
+ (0, import_sequelize_typescript2.Column)({
143
+ primaryKey: true,
144
+ autoIncrement: true,
145
+ type: import_sequelize_typescript2.DataType.INTEGER
146
+ })
147
+ ], msExecutivePosition.prototype, "id", 2);
148
+ __decorateClass([
149
+ (0, import_sequelize_typescript2.Column)({
150
+ allowNull: true,
151
+ type: import_sequelize_typescript2.DataType.STRING(255)
152
+ })
153
+ ], msExecutivePosition.prototype, "name", 2);
154
+ __decorateClass([
155
+ (0, import_sequelize_typescript2.Column)({
156
+ allowNull: true,
157
+ type: import_sequelize_typescript2.DataType.STRING(255)
158
+ })
159
+ ], msExecutivePosition.prototype, "description", 2);
160
+ __decorateClass([
161
+ (0, import_sequelize_typescript2.Column)({
162
+ allowNull: true,
163
+ type: import_sequelize_typescript2.DataType.INTEGER
164
+ })
165
+ ], msExecutivePosition.prototype, "sort", 2);
166
+ __decorateClass([
167
+ (0, import_sequelize_typescript2.Column)({
168
+ allowNull: true,
169
+ type: import_sequelize_typescript2.DataType.INTEGER
170
+ })
171
+ ], msExecutivePosition.prototype, "status", 2);
172
+ __decorateClass([
173
+ (0, import_sequelize_typescript2.Column)({
174
+ allowNull: true,
175
+ type: import_sequelize_typescript2.DataType.JSON
176
+ })
177
+ ], msExecutivePosition.prototype, "info", 2);
178
+ __decorateClass([
179
+ (0, import_sequelize_typescript2.Column)({
180
+ field: "created_by",
181
+ allowNull: true,
182
+ type: import_sequelize_typescript2.DataType.STRING(60)
183
+ })
184
+ ], msExecutivePosition.prototype, "createdBy", 2);
185
+ __decorateClass([
186
+ (0, import_sequelize_typescript2.Column)({
187
+ field: "created_date",
188
+ allowNull: true,
189
+ type: import_sequelize_typescript2.DataType.DATE
190
+ })
191
+ ], msExecutivePosition.prototype, "createdDate", 2);
192
+ __decorateClass([
193
+ (0, import_sequelize_typescript2.Column)({
194
+ field: "updated_by",
195
+ allowNull: true,
196
+ type: import_sequelize_typescript2.DataType.STRING(60)
197
+ })
198
+ ], msExecutivePosition.prototype, "updatedBy", 2);
199
+ __decorateClass([
200
+ (0, import_sequelize_typescript2.Column)({
201
+ field: "updated_date",
202
+ allowNull: true,
203
+ type: import_sequelize_typescript2.DataType.DATE
204
+ })
205
+ ], msExecutivePosition.prototype, "updatedDate", 2);
206
+ __decorateClass([
207
+ (0, import_sequelize_typescript2.HasMany)(() => msExecutive, {
208
+ sourceKey: "id"
209
+ })
210
+ ], msExecutivePosition.prototype, "msExecutives", 2);
211
+ msExecutivePosition = __decorateClass([
212
+ (0, import_sequelize_typescript2.Table)({
213
+ tableName: "ms_executive_position",
214
+ timestamps: false
215
+ })
216
+ ], msExecutivePosition);
217
+
218
+ // src/databases/tables/msExecutive.ts
219
+ var msExecutive = class extends import_sequelize_typescript3.Model {
220
+ };
221
+ __decorateClass([
222
+ (0, import_sequelize_typescript3.Column)({
223
+ primaryKey: true,
224
+ autoIncrement: true,
225
+ type: import_sequelize_typescript3.DataType.INTEGER
226
+ })
227
+ ], msExecutive.prototype, "id", 2);
228
+ __decorateClass([
229
+ (0, import_sequelize_typescript3.ForeignKey)(() => msExecutiveGroup),
230
+ (0, import_sequelize_typescript3.Column)({
231
+ field: "group_id",
232
+ allowNull: true,
233
+ type: import_sequelize_typescript3.DataType.INTEGER
234
+ })
235
+ ], msExecutive.prototype, "groupId", 2);
236
+ __decorateClass([
237
+ (0, import_sequelize_typescript3.ForeignKey)(() => msExecutivePosition),
238
+ (0, import_sequelize_typescript3.Column)({
239
+ field: "position_id",
240
+ allowNull: true,
241
+ type: import_sequelize_typescript3.DataType.INTEGER
242
+ })
243
+ ], msExecutive.prototype, "positionId", 2);
244
+ __decorateClass([
245
+ (0, import_sequelize_typescript3.Column)({
246
+ field: "position_other",
247
+ allowNull: true,
248
+ type: import_sequelize_typescript3.DataType.STRING(255)
249
+ })
250
+ ], msExecutive.prototype, "positionOther", 2);
251
+ __decorateClass([
252
+ (0, import_sequelize_typescript3.Column)({
253
+ field: "title_id",
254
+ allowNull: true,
255
+ type: import_sequelize_typescript3.DataType.INTEGER
256
+ })
257
+ ], msExecutive.prototype, "titleId", 2);
258
+ __decorateClass([
259
+ (0, import_sequelize_typescript3.Column)({
260
+ field: "first_name",
261
+ allowNull: true,
262
+ type: import_sequelize_typescript3.DataType.STRING(255)
263
+ })
264
+ ], msExecutive.prototype, "firstName", 2);
265
+ __decorateClass([
266
+ (0, import_sequelize_typescript3.Column)({
267
+ field: "last_name",
268
+ allowNull: true,
269
+ type: import_sequelize_typescript3.DataType.STRING(255)
270
+ })
271
+ ], msExecutive.prototype, "lastName", 2);
272
+ __decorateClass([
273
+ (0, import_sequelize_typescript3.Column)({
274
+ allowNull: true,
275
+ type: import_sequelize_typescript3.DataType.STRING(255)
276
+ })
277
+ ], msExecutive.prototype, "email", 2);
278
+ __decorateClass([
279
+ (0, import_sequelize_typescript3.Column)({
280
+ allowNull: true,
281
+ type: import_sequelize_typescript3.DataType.STRING(255)
282
+ })
283
+ ], msExecutive.prototype, "phone", 2);
284
+ __decorateClass([
285
+ (0, import_sequelize_typescript3.Column)({
286
+ allowNull: true,
287
+ type: import_sequelize_typescript3.DataType.STRING(255)
288
+ })
289
+ ], msExecutive.prototype, "fax", 2);
290
+ __decorateClass([
291
+ (0, import_sequelize_typescript3.Column)({
292
+ allowNull: true,
293
+ type: import_sequelize_typescript3.DataType.STRING(255)
294
+ })
295
+ ], msExecutive.prototype, "education", 2);
296
+ __decorateClass([
297
+ (0, import_sequelize_typescript3.Column)({
298
+ allowNull: true,
299
+ type: import_sequelize_typescript3.DataType.STRING(255)
300
+ })
301
+ ], msExecutive.prototype, "experience", 2);
302
+ __decorateClass([
303
+ (0, import_sequelize_typescript3.Column)({
304
+ allowNull: true,
305
+ type: import_sequelize_typescript3.DataType.STRING(255)
306
+ })
307
+ ], msExecutive.prototype, "image", 2);
308
+ __decorateClass([
309
+ (0, import_sequelize_typescript3.Column)({
310
+ allowNull: true,
311
+ type: import_sequelize_typescript3.DataType.INTEGER
312
+ })
313
+ ], msExecutive.prototype, "sort", 2);
314
+ __decorateClass([
315
+ (0, import_sequelize_typescript3.Column)({
316
+ allowNull: true,
317
+ type: import_sequelize_typescript3.DataType.STRING(255)
318
+ })
319
+ ], msExecutive.prototype, "status", 2);
320
+ __decorateClass([
321
+ (0, import_sequelize_typescript3.Column)({
322
+ allowNull: true,
323
+ type: import_sequelize_typescript3.DataType.JSON
324
+ })
325
+ ], msExecutive.prototype, "info", 2);
326
+ __decorateClass([
327
+ (0, import_sequelize_typescript3.Column)({
328
+ field: "created_by",
329
+ allowNull: true,
330
+ type: import_sequelize_typescript3.DataType.STRING(60)
331
+ })
332
+ ], msExecutive.prototype, "createdBy", 2);
333
+ __decorateClass([
334
+ (0, import_sequelize_typescript3.Column)({
335
+ field: "created_date",
336
+ allowNull: true,
337
+ type: import_sequelize_typescript3.DataType.DATE
338
+ })
339
+ ], msExecutive.prototype, "createdDate", 2);
340
+ __decorateClass([
341
+ (0, import_sequelize_typescript3.Column)({
342
+ field: "updated_by",
343
+ allowNull: true,
344
+ type: import_sequelize_typescript3.DataType.STRING(60)
345
+ })
346
+ ], msExecutive.prototype, "updatedBy", 2);
347
+ __decorateClass([
348
+ (0, import_sequelize_typescript3.Column)({
349
+ field: "updated_date",
350
+ allowNull: true,
351
+ type: import_sequelize_typescript3.DataType.DATE
352
+ })
118
353
  ], msExecutive.prototype, "updatedDate", 2);
354
+ __decorateClass([
355
+ (0, import_sequelize_typescript3.BelongsTo)(() => msExecutiveGroup)
356
+ ], msExecutive.prototype, "msExecutiveGroup", 2);
357
+ __decorateClass([
358
+ (0, import_sequelize_typescript3.BelongsTo)(() => msExecutivePosition)
359
+ ], msExecutive.prototype, "msExecutivePosition", 2);
119
360
  msExecutive = __decorateClass([
120
- (0, import_sequelize_typescript.Table)({
361
+ (0, import_sequelize_typescript3.Table)({
121
362
  tableName: "ms_executive",
122
363
  timestamps: false
123
364
  })
@@ -0,0 +1,2 @@
1
+ import 'sequelize-typescript';
2
+ export { c as msExecutiveGroup, b as msExecutiveGroupAttributes } from '../../msExecutive-Brhgvmvs.js';