@admc-go-th/admc-library 1.0.63 → 1.0.65

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.
@@ -12,7 +12,6 @@ export * from "./mdContent";
12
12
  export * from "./mdContentGroup";
13
13
  export * from "./mdDocumentPdf";
14
14
  export * from "./mdDownload";
15
- export * from "./mdDownloadBk";
16
15
  export * from "./mdDownloadGroup";
17
16
  export * from "./mdEbook";
18
17
  export * from "./mdEbookGroup";
@@ -28,6 +27,7 @@ export * from "./mdPopup";
28
27
  export * from "./mdQuestionnaire";
29
28
  export * from "./mdSetting";
30
29
  export * from "./mdWords";
30
+ export * from "./member";
31
31
  export * from "./menu";
32
32
  export * from "./msModule";
33
33
  export * from "./oauthAccessToken";
@@ -0,0 +1,217 @@
1
+ import {
2
+ Model, Table, Column, DataType, Index, Sequelize, ForeignKey
3
+ } from "sequelize-typescript";
4
+
5
+ export interface memberAttributes {
6
+ id?: number;
7
+ uuid?: string;
8
+ username?: string;
9
+ passwordHash?: string;
10
+ passwordResetToken?: string;
11
+ verificationToken?: string;
12
+ authKey?: string;
13
+ userType?: number;
14
+ email?: string;
15
+ prefix?: string;
16
+ firstName?: string;
17
+ lastName?: string;
18
+ phone?: string;
19
+ job?: string;
20
+ agency?: string;
21
+ position?: string;
22
+ gender?: string;
23
+ status?: number;
24
+ is_2fa?: number;
25
+ lineId?: string;
26
+ facebookId?: string;
27
+ policy?: number;
28
+ terms?: number;
29
+ createdBy?: string;
30
+ createdDate?: Date;
31
+ updatedBy?: string;
32
+ updatedDate?: Date;
33
+ }
34
+
35
+ @Table({
36
+ tableName: "member",
37
+ timestamps: false
38
+ })
39
+ export class member extends Model<memberAttributes, memberAttributes> implements memberAttributes {
40
+
41
+ @Column({
42
+ primaryKey: true,
43
+ autoIncrement: true,
44
+ type: DataType.INTEGER
45
+ })
46
+ declare id?: number;
47
+
48
+ @Column({
49
+ allowNull: true,
50
+ type: DataType.STRING(60)
51
+ })
52
+ declare uuid?: string;
53
+
54
+ @Column({
55
+ allowNull: true,
56
+ type: DataType.STRING(255)
57
+ })
58
+ declare username?: string;
59
+
60
+ @Column({
61
+ field: "password_hash",
62
+ allowNull: true,
63
+ type: DataType.STRING(255)
64
+ })
65
+ declare passwordHash?: string;
66
+
67
+ @Column({
68
+ field: "password_reset_token",
69
+ allowNull: true,
70
+ type: DataType.STRING(255)
71
+ })
72
+ declare passwordResetToken?: string;
73
+
74
+ @Column({
75
+ field: "verification_token",
76
+ allowNull: true,
77
+ type: DataType.STRING(255)
78
+ })
79
+ declare verificationToken?: string;
80
+
81
+ @Column({
82
+ field: "auth_key",
83
+ allowNull: true,
84
+ type: DataType.STRING(32)
85
+ })
86
+ declare authKey?: string;
87
+
88
+ @Column({
89
+ field: "user_type",
90
+ allowNull: true,
91
+ type: DataType.INTEGER
92
+ })
93
+ declare userType?: number;
94
+
95
+ @Column({
96
+ allowNull: true,
97
+ type: DataType.STRING(255)
98
+ })
99
+ declare email?: string;
100
+
101
+ @Column({
102
+ allowNull: true,
103
+ type: DataType.STRING(10)
104
+ })
105
+ declare prefix?: string;
106
+
107
+ @Column({
108
+ field: "first_name",
109
+ allowNull: true,
110
+ type: DataType.STRING(100)
111
+ })
112
+ declare firstName?: string;
113
+
114
+ @Column({
115
+ field: "last_name",
116
+ allowNull: true,
117
+ type: DataType.STRING(100)
118
+ })
119
+ declare lastName?: string;
120
+
121
+ @Column({
122
+ allowNull: true,
123
+ type: DataType.STRING(20)
124
+ })
125
+ declare phone?: string;
126
+
127
+ @Column({
128
+ allowNull: true,
129
+ type: DataType.STRING(255)
130
+ })
131
+ declare job?: string;
132
+
133
+ @Column({
134
+ allowNull: true,
135
+ type: DataType.STRING(255)
136
+ })
137
+ declare agency?: string;
138
+
139
+ @Column({
140
+ allowNull: true,
141
+ type: DataType.STRING(255)
142
+ })
143
+ declare position?: string;
144
+
145
+ @Column({
146
+ allowNull: true,
147
+ type: DataType.STRING(1)
148
+ })
149
+ declare gender?: string;
150
+
151
+ @Column({
152
+ allowNull: true,
153
+ type: DataType.SMALLINT
154
+ })
155
+ declare status?: number;
156
+
157
+ @Column({
158
+ allowNull: true,
159
+ type: DataType.INTEGER
160
+ })
161
+ declare is_2fa?: number;
162
+
163
+ @Column({
164
+ field: "line_id",
165
+ allowNull: true,
166
+ type: DataType.STRING(255)
167
+ })
168
+ declare lineId?: string;
169
+
170
+ @Column({
171
+ field: "facebook_id",
172
+ allowNull: true,
173
+ type: DataType.STRING(255)
174
+ })
175
+ declare facebookId?: string;
176
+
177
+ @Column({
178
+ allowNull: true,
179
+ type: DataType.INTEGER
180
+ })
181
+ declare policy?: number;
182
+
183
+ @Column({
184
+ allowNull: true,
185
+ type: DataType.INTEGER
186
+ })
187
+ declare terms?: number;
188
+
189
+ @Column({
190
+ field: "created_by",
191
+ allowNull: true,
192
+ type: DataType.STRING(60)
193
+ })
194
+ declare createdBy?: string;
195
+
196
+ @Column({
197
+ field: "created_date",
198
+ allowNull: true,
199
+ type: DataType.DATE
200
+ })
201
+ declare createdDate?: Date;
202
+
203
+ @Column({
204
+ field: "updated_by",
205
+ allowNull: true,
206
+ type: DataType.STRING(60)
207
+ })
208
+ declare updatedBy?: string;
209
+
210
+ @Column({
211
+ field: "updated_date",
212
+ allowNull: true,
213
+ type: DataType.DATE
214
+ })
215
+ declare updatedDate?: Date;
216
+
217
+ }
@@ -6,7 +6,6 @@ export { mdCmsSingle, mdCmsSingleAttributes } from './mdCmsSingle.js';
6
6
  export { mdConfiguration, mdConfigurationAttributes } from './mdConfiguration.js';
7
7
  export { mdDocumentPdf, mdDocumentPdfAttributes } from './mdDocumentPdf.js';
8
8
  export { a as mdDownload, m as mdDownloadAttributes, c as mdDownloadGroup, b as mdDownloadGroupAttributes } from '../../mdDownload-DVpoDQbc.js';
9
- export { mdDownloadBk, mdDownloadBkAttributes } from './mdDownloadBk.js';
10
9
  export { a as mdEbook, m as mdEbookAttributes, c as mdEbookGroup, b as mdEbookGroupAttributes } from '../../mdEbook-D18honC4.js';
11
10
  export { a as mdFaq, m as mdFaqAttributes, c as mdFaqGroup, b as mdFaqGroupAttributes } from '../../mdFaq-1c4X_DI2.js';
12
11
  export { mdFormAdvance_1, mdFormAdvance_1Attributes } from './mdFormAdvance_1.js';
@@ -16,6 +15,7 @@ export { a as mdNews, m as mdNewsAttributes, c as mdNewsGroup, b as mdNewsGroupA
16
15
  export { mdPopup, mdPopupAttributes } from './mdPopup.js';
17
16
  export { mdSetting, mdSettingAttributes } from './mdSetting.js';
18
17
  export { mdWords, mdWordsAttributes } from './mdWords.js';
18
+ export { member, memberAttributes } from './member.js';
19
19
  export { oauthAccessToken, oauthAccessTokenAttributes } from './oauthAccessToken.js';
20
20
  export { oauthRefreshToken, oauthRefreshTokenAttributes } from './oauthRefreshToken.js';
21
21
  export { settings, settingsAttributes } from './settings.js';