@admc-go-th/admc-library 1.0.118 → 1.0.120

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.
Files changed (46) hide show
  1. package/databases/schema/index.ts +1 -0
  2. package/databases/schema/mdApplication.ts +208 -0
  3. package/databases/schema/mdDownloadGroup.ts +7 -0
  4. package/databases/schema/mdEbookGroup.ts +7 -0
  5. package/databases/schema/mdFaqGroup.ts +7 -0
  6. package/databases/schema/mdNewsGroup.ts +7 -0
  7. package/databases/schema/msExecutive.ts +15 -7
  8. package/databases/schema/msExecutivePosition.ts +23 -0
  9. package/databases/schema/recruitment.ts +15 -0
  10. package/databases/tables/index.d.ts +7 -6
  11. package/databases/tables/index.js +1632 -1387
  12. package/databases/tables/mdApplication.d.ts +60 -0
  13. package/databases/tables/mdApplication.js +214 -0
  14. package/databases/tables/mdDownload.d.ts +1 -1
  15. package/databases/tables/mdDownload.js +6 -0
  16. package/databases/tables/mdDownloadGroup.d.ts +1 -1
  17. package/databases/tables/mdDownloadGroup.js +6 -0
  18. package/databases/tables/mdEbook.d.ts +1 -1
  19. package/databases/tables/mdEbook.js +6 -0
  20. package/databases/tables/mdEbookGroup.d.ts +1 -1
  21. package/databases/tables/mdEbookGroup.js +6 -0
  22. package/databases/tables/mdFaq.d.ts +1 -1
  23. package/databases/tables/mdFaq.js +6 -0
  24. package/databases/tables/mdFaqGroup.d.ts +1 -1
  25. package/databases/tables/mdFaqGroup.js +6 -0
  26. package/databases/tables/mdNews.d.ts +1 -1
  27. package/databases/tables/mdNews.js +6 -0
  28. package/databases/tables/mdNewsGroup.d.ts +1 -1
  29. package/databases/tables/mdNewsGroup.js +6 -0
  30. package/databases/tables/msExecutive.d.ts +1 -1
  31. package/databases/tables/msExecutive.js +31 -4
  32. package/databases/tables/msExecutiveGroup.d.ts +1 -1
  33. package/databases/tables/msExecutiveGroup.js +31 -4
  34. package/databases/tables/msExecutivePosition.d.ts +1 -1
  35. package/databases/tables/msExecutivePosition.js +31 -4
  36. package/databases/tables/recruitment.d.ts +1 -1
  37. package/databases/tables/recruitment.js +13 -0
  38. package/databases/tables/recruitmentGroup.d.ts +1 -1
  39. package/databases/tables/recruitmentGroup.js +13 -0
  40. package/{mdDownload-RICzliX6.d.ts → mdDownload-CCc6eto7.d.ts} +2 -0
  41. package/{mdEbook-CAvTi5ia.d.ts → mdEbook-BqC65Ujw.d.ts} +2 -0
  42. package/{mdFaq-Cg-D362f.d.ts → mdFaq-CHIPG3yZ.d.ts} +2 -0
  43. package/{mdNews-AU_zz7jr.d.ts → mdNews-DfHz7Ajk.d.ts} +2 -0
  44. package/{msExecutive-1j_DcKu7.d.ts → msExecutive-B7lTHxSZ.d.ts} +12 -4
  45. package/package.json +1 -1
  46. package/{recruitment-DmJeINPg.d.ts → recruitment-5Pi7YA8x.d.ts} +4 -0
@@ -15,6 +15,7 @@ export * from "./contentGuidelinesTour";
15
15
  export * from "./files";
16
16
  export * from "./helper";
17
17
  export * from "./logs";
18
+ export * from "./mdApplication";
18
19
  export * from "./mdBanner";
19
20
  export * from "./mdCmsSingle";
20
21
  export * from "./mdConfiguration";
@@ -0,0 +1,208 @@
1
+ import {
2
+ Model, Table, Column, DataType, Index, Sequelize, ForeignKey
3
+ } from "sequelize-typescript";
4
+
5
+ export interface mdApplicationAttributes {
6
+ id?: number;
7
+ uuid?: string;
8
+ keyName?: string;
9
+ title?: string;
10
+ description?: string;
11
+ imageCover?: string;
12
+ fileUuid?: string;
13
+ attachments?: object;
14
+ url1?: string;
15
+ target1?: string;
16
+ url2?: string;
17
+ target2?: any;
18
+ url3?: string;
19
+ target3?: string;
20
+ url4?: string;
21
+ target4?: string;
22
+ sort?: number;
23
+ status?: number;
24
+ view?: number;
25
+ hasExpire?: number;
26
+ startDate?: Date;
27
+ expireDate?: Date;
28
+ createdBy?: string;
29
+ createdDate?: Date;
30
+ updatedBy?: string;
31
+ updatedDate?: Date;
32
+ }
33
+
34
+ @Table({
35
+ tableName: "md_application",
36
+ timestamps: false
37
+ })
38
+ export class mdApplication extends Model<mdApplicationAttributes, mdApplicationAttributes> implements mdApplicationAttributes {
39
+
40
+ @Column({
41
+ primaryKey: true,
42
+ autoIncrement: true,
43
+ type: DataType.INTEGER
44
+ })
45
+ declare id?: number;
46
+
47
+ @Column({
48
+ allowNull: true,
49
+ type: DataType.STRING(60)
50
+ })
51
+ declare uuid?: string;
52
+
53
+ @Column({
54
+ field: "key_name",
55
+ allowNull: true,
56
+ type: DataType.STRING(100)
57
+ })
58
+ declare keyName?: string;
59
+
60
+ @Column({
61
+ allowNull: true,
62
+ type: DataType.STRING(255)
63
+ })
64
+ declare title?: string;
65
+
66
+ @Column({
67
+ allowNull: true,
68
+ type: DataType.STRING
69
+ })
70
+ declare description?: string;
71
+
72
+ @Column({
73
+ field: "image_cover",
74
+ allowNull: true,
75
+ type: DataType.STRING(255)
76
+ })
77
+ declare imageCover?: string;
78
+
79
+ @Column({
80
+ field: "file_uuid",
81
+ allowNull: true,
82
+ type: DataType.STRING(60)
83
+ })
84
+ declare fileUuid?: string;
85
+
86
+ @Column({
87
+ allowNull: true,
88
+ type: DataType.JSON
89
+ })
90
+ declare attachments?: object;
91
+
92
+ @Column({
93
+ allowNull: true,
94
+ type: DataType.STRING(255),
95
+ comment: "google play"
96
+ })
97
+ declare url1?: string;
98
+
99
+ @Column({
100
+ allowNull: true,
101
+ type: DataType.STRING(10)
102
+ })
103
+ declare target1?: string;
104
+
105
+ @Column({
106
+ allowNull: true,
107
+ type: DataType.STRING(255),
108
+ comment: "app store"
109
+ })
110
+ declare url2?: string;
111
+
112
+ @Column({
113
+ allowNull: true
114
+ })
115
+ declare target2?: any;
116
+
117
+ @Column({
118
+ allowNull: true,
119
+ type: DataType.STRING(255)
120
+ })
121
+ declare url3?: string;
122
+
123
+ @Column({
124
+ allowNull: true,
125
+ type: DataType.STRING(10)
126
+ })
127
+ declare target3?: string;
128
+
129
+ @Column({
130
+ allowNull: true,
131
+ type: DataType.STRING(255)
132
+ })
133
+ declare url4?: string;
134
+
135
+ @Column({
136
+ allowNull: true,
137
+ type: DataType.STRING(10)
138
+ })
139
+ declare target4?: string;
140
+
141
+ @Column({
142
+ allowNull: true,
143
+ type: DataType.INTEGER
144
+ })
145
+ declare sort?: number;
146
+
147
+ @Column({
148
+ allowNull: true,
149
+ type: DataType.INTEGER
150
+ })
151
+ declare status?: number;
152
+
153
+ @Column({
154
+ allowNull: true,
155
+ type: DataType.INTEGER
156
+ })
157
+ declare view?: number;
158
+
159
+ @Column({
160
+ field: "has_expire",
161
+ allowNull: true,
162
+ type: DataType.INTEGER
163
+ })
164
+ declare hasExpire?: number;
165
+
166
+ @Column({
167
+ field: "start_date",
168
+ allowNull: true,
169
+ type: DataType.DATE
170
+ })
171
+ declare startDate?: Date;
172
+
173
+ @Column({
174
+ field: "expire_date",
175
+ allowNull: true,
176
+ type: DataType.DATE
177
+ })
178
+ declare expireDate?: Date;
179
+
180
+ @Column({
181
+ field: "created_by",
182
+ allowNull: true,
183
+ type: DataType.STRING(60)
184
+ })
185
+ declare createdBy?: string;
186
+
187
+ @Column({
188
+ field: "created_date",
189
+ allowNull: true,
190
+ type: DataType.DATE
191
+ })
192
+ declare createdDate?: Date;
193
+
194
+ @Column({
195
+ field: "updated_by",
196
+ allowNull: true,
197
+ type: DataType.STRING(60)
198
+ })
199
+ declare updatedBy?: string;
200
+
201
+ @Column({
202
+ field: "updated_date",
203
+ allowNull: true,
204
+ type: DataType.DATE
205
+ })
206
+ declare updatedDate?: Date;
207
+
208
+ }
@@ -10,6 +10,7 @@ export interface mdDownloadGroupAttributes {
10
10
  userId?: number;
11
11
  name: string;
12
12
  description?: string;
13
+ sort?: number;
13
14
  status?: number;
14
15
  createdBy?: string;
15
16
  createdDate?: Date;
@@ -61,6 +62,12 @@ export class mdDownloadGroup extends Model<mdDownloadGroupAttributes, mdDownload
61
62
  })
62
63
  declare description?: string;
63
64
 
65
+ @Column({
66
+ allowNull: true,
67
+ type: DataType.INTEGER
68
+ })
69
+ declare sort?: number;
70
+
64
71
  @Column({
65
72
  allowNull: true,
66
73
  type: DataType.INTEGER
@@ -10,6 +10,7 @@ export interface mdEbookGroupAttributes {
10
10
  userId?: number;
11
11
  name: string;
12
12
  description?: string;
13
+ sort?: number;
13
14
  status?: number;
14
15
  createdBy?: string;
15
16
  createdDate?: Date;
@@ -61,6 +62,12 @@ export class mdEbookGroup extends Model<mdEbookGroupAttributes, mdEbookGroupAttr
61
62
  })
62
63
  declare description?: string;
63
64
 
65
+ @Column({
66
+ allowNull: true,
67
+ type: DataType.INTEGER
68
+ })
69
+ declare sort?: number;
70
+
64
71
  @Column({
65
72
  allowNull: true,
66
73
  type: DataType.INTEGER
@@ -10,6 +10,7 @@ export interface mdFaqGroupAttributes {
10
10
  userId?: number;
11
11
  name: string;
12
12
  description?: string;
13
+ sort?: number;
13
14
  status?: number;
14
15
  createdBy?: string;
15
16
  createdDate?: Date;
@@ -61,6 +62,12 @@ export class mdFaqGroup extends Model<mdFaqGroupAttributes, mdFaqGroupAttributes
61
62
  })
62
63
  declare description?: string;
63
64
 
65
+ @Column({
66
+ allowNull: true,
67
+ type: DataType.INTEGER
68
+ })
69
+ declare sort?: number;
70
+
64
71
  @Column({
65
72
  allowNull: true,
66
73
  type: DataType.INTEGER
@@ -10,6 +10,7 @@ export interface mdNewsGroupAttributes {
10
10
  userId?: number;
11
11
  name: string;
12
12
  description?: string;
13
+ sort?: number;
13
14
  status?: number;
14
15
  createdBy?: string;
15
16
  createdDate?: Date;
@@ -61,6 +62,12 @@ export class mdNewsGroup extends Model<mdNewsGroupAttributes, mdNewsGroupAttribu
61
62
  })
62
63
  declare description?: string;
63
64
 
65
+ @Column({
66
+ allowNull: true,
67
+ type: DataType.INTEGER
68
+ })
69
+ declare sort?: number;
70
+
64
71
  @Column({
65
72
  allowNull: true,
66
73
  type: DataType.INTEGER
@@ -7,7 +7,7 @@ import { msExecutivePosition } from "./msExecutivePosition";
7
7
  export interface msExecutiveAttributes {
8
8
  id?: number;
9
9
  groupId?: number;
10
- positionId?: number;
10
+ levelId?: number;
11
11
  positionName?: string;
12
12
  positionOther?: string;
13
13
  titleId?: number;
@@ -20,12 +20,13 @@ export interface msExecutiveAttributes {
20
20
  experience?: string;
21
21
  image?: string;
22
22
  sort?: number;
23
- status?: string;
23
+ status?: number;
24
24
  info?: object;
25
25
  createdBy?: string;
26
26
  createdDate?: Date;
27
27
  updatedBy?: string;
28
28
  updatedDate?: Date;
29
+ positionId?: number;
29
30
  }
30
31
 
31
32
  @Table({
@@ -49,13 +50,12 @@ export class msExecutive extends Model<msExecutiveAttributes, msExecutiveAttribu
49
50
  })
50
51
  declare groupId?: number;
51
52
 
52
- @ForeignKey(() => msExecutivePosition)
53
53
  @Column({
54
- field: "position_id",
54
+ field: "level_id",
55
55
  allowNull: true,
56
56
  type: DataType.INTEGER
57
57
  })
58
- declare positionId?: number;
58
+ declare levelId?: number;
59
59
 
60
60
  @Column({
61
61
  field: "position_name",
@@ -136,9 +136,9 @@ export class msExecutive extends Model<msExecutiveAttributes, msExecutiveAttribu
136
136
 
137
137
  @Column({
138
138
  allowNull: true,
139
- type: DataType.STRING(255)
139
+ type: DataType.INTEGER
140
140
  })
141
- declare status?: string;
141
+ declare status?: number;
142
142
 
143
143
  @Column({
144
144
  allowNull: true,
@@ -174,6 +174,14 @@ export class msExecutive extends Model<msExecutiveAttributes, msExecutiveAttribu
174
174
  })
175
175
  declare updatedDate?: Date;
176
176
 
177
+ @ForeignKey(() => msExecutivePosition)
178
+ @Column({
179
+ field: "position_id",
180
+ allowNull: true,
181
+ type: DataType.INTEGER
182
+ })
183
+ declare positionId?: number;
184
+
177
185
  @BelongsTo(() => msExecutiveGroup)
178
186
  declare msExecutiveGroup?: msExecutiveGroup;
179
187
 
@@ -5,8 +5,11 @@ import { msExecutive } from "./msExecutive";
5
5
 
6
6
  export interface msExecutivePositionAttributes {
7
7
  id?: number;
8
+ groupId?: number;
8
9
  name?: string;
9
10
  description?: string;
11
+ updatedInfo?: string;
12
+ remark?: string;
10
13
  sort?: number;
11
14
  status?: number;
12
15
  info?: object;
@@ -29,6 +32,13 @@ export class msExecutivePosition extends Model<msExecutivePositionAttributes, ms
29
32
  })
30
33
  declare id?: number;
31
34
 
35
+ @Column({
36
+ field: "group_id",
37
+ allowNull: true,
38
+ type: DataType.INTEGER
39
+ })
40
+ declare groupId?: number;
41
+
32
42
  @Column({
33
43
  allowNull: true,
34
44
  type: DataType.STRING(255)
@@ -41,6 +51,19 @@ export class msExecutivePosition extends Model<msExecutivePositionAttributes, ms
41
51
  })
42
52
  declare description?: string;
43
53
 
54
+ @Column({
55
+ field: "updated_info",
56
+ allowNull: true,
57
+ type: DataType.STRING(255)
58
+ })
59
+ declare updatedInfo?: string;
60
+
61
+ @Column({
62
+ allowNull: true,
63
+ type: DataType.STRING
64
+ })
65
+ declare remark?: string;
66
+
44
67
  @Column({
45
68
  allowNull: true,
46
69
  type: DataType.INTEGER
@@ -12,11 +12,13 @@ export interface recruitmentAttributes {
12
12
  accountAge?: number;
13
13
  accountExpires?: string;
14
14
  calledPosition?: number;
15
+ sort?: number;
15
16
  status?: number;
16
17
  createdBy?: string;
17
18
  createdDate?: Date;
18
19
  updatedBy?: string;
19
20
  updatedDate?: Date;
21
+ refId?: number;
20
22
  }
21
23
 
22
24
  @Table({
@@ -81,6 +83,12 @@ export class recruitment extends Model<recruitmentAttributes, recruitmentAttribu
81
83
  })
82
84
  declare calledPosition?: number;
83
85
 
86
+ @Column({
87
+ allowNull: true,
88
+ type: DataType.INTEGER
89
+ })
90
+ declare sort?: number;
91
+
84
92
  @Column({
85
93
  allowNull: true,
86
94
  type: DataType.INTEGER
@@ -115,6 +123,13 @@ export class recruitment extends Model<recruitmentAttributes, recruitmentAttribu
115
123
  })
116
124
  declare updatedDate?: Date;
117
125
 
126
+ @Column({
127
+ field: "ref_id",
128
+ allowNull: true,
129
+ type: DataType.INTEGER
130
+ })
131
+ declare refId?: number;
132
+
118
133
  @BelongsTo(() => recruitmentGroup)
119
134
  declare recruitmentGroup?: recruitmentGroup;
120
135
 
@@ -10,24 +10,25 @@ export { contentGuidelinesTour, contentGuidelinesTourAttributes } from './conten
10
10
  export { a as files, f as filesAttributes, b as mdBanner, m as mdBannerAttributes } from '../../files-Dp2zDQAj.js';
11
11
  export { helper, helperAttributes } from './helper.js';
12
12
  export { logs, logsAttributes } from './logs.js';
13
+ export { mdApplication, mdApplicationAttributes } from './mdApplication.js';
13
14
  export { mdCmsSingle, mdCmsSingleAttributes } from './mdCmsSingle.js';
14
15
  export { mdConfiguration, mdConfigurationAttributes } from './mdConfiguration.js';
15
16
  export { mdDocumentPdf, mdDocumentPdfAttributes } from './mdDocumentPdf.js';
16
- export { a as mdDownload, m as mdDownloadAttributes, c as mdDownloadGroup, b as mdDownloadGroupAttributes } from '../../mdDownload-RICzliX6.js';
17
- export { a as mdEbook, m as mdEbookAttributes, c as mdEbookGroup, b as mdEbookGroupAttributes } from '../../mdEbook-CAvTi5ia.js';
18
- export { a as mdFaq, m as mdFaqAttributes, c as mdFaqGroup, b as mdFaqGroupAttributes } from '../../mdFaq-Cg-D362f.js';
17
+ export { a as mdDownload, m as mdDownloadAttributes, c as mdDownloadGroup, b as mdDownloadGroupAttributes } from '../../mdDownload-CCc6eto7.js';
18
+ export { a as mdEbook, m as mdEbookAttributes, c as mdEbookGroup, b as mdEbookGroupAttributes } from '../../mdEbook-BqC65Ujw.js';
19
+ export { a as mdFaq, m as mdFaqAttributes, c as mdFaqGroup, b as mdFaqGroupAttributes } from '../../mdFaq-CHIPG3yZ.js';
19
20
  export { mdFormAdvance_1, mdFormAdvance_1Attributes } from './mdFormAdvance_1.js';
20
21
  export { mdFormAdvance_2, mdFormAdvance_2Attributes } from './mdFormAdvance_2.js';
21
22
  export { a as mdInformationIndex, m as mdInformationIndexAttributes, c as mdInformationIndexGroup, b as mdInformationIndexGroupAttributes } from '../../mdInformationIndex-CcINa51c.js';
22
23
  export { a as mdLink, m as mdLinkAttributes, c as mdLinkGroup, b as mdLinkGroupAttributes } from '../../mdLink-ExDI5jey.js';
23
- export { a as mdNews, m as mdNewsAttributes, c as mdNewsGroup, b as mdNewsGroupAttributes } from '../../mdNews-AU_zz7jr.js';
24
+ export { a as mdNews, m as mdNewsAttributes, c as mdNewsGroup, b as mdNewsGroupAttributes } from '../../mdNews-DfHz7Ajk.js';
24
25
  export { mdPopup, mdPopupAttributes } from './mdPopup.js';
25
26
  export { mdSetting, mdSettingAttributes } from './mdSetting.js';
26
27
  export { a as mdTranslate, m as mdTranslateAttributes, c as mdTranslateGroup, b as mdTranslateGroupAttributes } from '../../mdTranslate-CburBDsQ.js';
27
28
  export { mdVideo, mdVideoAttributes } from './mdVideo.js';
28
29
  export { mdWords, mdWordsAttributes } from './mdWords.js';
29
30
  export { member, memberAttributes } from './member.js';
30
- export { a as msExecutive, m as msExecutiveAttributes, c as msExecutiveGroup, b as msExecutiveGroupAttributes, e as msExecutivePosition, d as msExecutivePositionAttributes } from '../../msExecutive-1j_DcKu7.js';
31
+ export { a as msExecutive, m as msExecutiveAttributes, c as msExecutiveGroup, b as msExecutiveGroupAttributes, e as msExecutivePosition, d as msExecutivePositionAttributes } from '../../msExecutive-B7lTHxSZ.js';
31
32
  export { msExecutiveBoard, msExecutiveBoardAttributes } from './msExecutiveBoard.js';
32
33
  export { msGuidelines, msGuidelinesAttributes } from './msGuidelines.js';
33
34
  export { msHoliday, msHolidayAttributes } from './msHoliday.js';
@@ -36,7 +37,7 @@ export { msTitle, msTitleAttributes } from './msTitle.js';
36
37
  export { msWebsite, msWebsiteAttributes } from './msWebsite.js';
37
38
  export { oauthAccessToken, oauthAccessTokenAttributes } from './oauthAccessToken.js';
38
39
  export { oauthRefreshToken, oauthRefreshTokenAttributes } from './oauthRefreshToken.js';
39
- export { a as recruitment, r as recruitmentAttributes, c as recruitmentGroup, b as recruitmentGroupAttributes } from '../../recruitment-DmJeINPg.js';
40
+ export { a as recruitment, r as recruitmentAttributes, c as recruitmentGroup, b as recruitmentGroupAttributes } from '../../recruitment-5Pi7YA8x.js';
40
41
  export { settings, settingsAttributes } from './settings.js';
41
42
  export { userCenterV, userCenterVAttributes } from './userCenterV.js';
42
43
  export { userRoleV, userRoleVAttributes } from './userRoleV.js';