@admc-go-th/admc-library 1.0.69 → 1.0.71
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.
- package/databases/schema/formFaq.ts +127 -0
- package/databases/schema/helper.ts +7 -0
- package/databases/schema/index.ts +1 -0
- package/databases/schema/member.ts +15 -0
- package/databases/tables/formFaq.d.ts +38 -0
- package/databases/tables/formFaq.js +144 -0
- package/databases/tables/helper.d.ts +2 -0
- package/databases/tables/helper.js +6 -0
- package/databases/tables/index.d.ts +1 -0
- package/databases/tables/index.js +968 -838
- package/databases/tables/member.d.ts +4 -0
- package/databases/tables/member.js +13 -0
- package/package.json +1 -1
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Model, Table, Column, DataType, Index, Sequelize, ForeignKey
|
|
3
|
+
} from "sequelize-typescript";
|
|
4
|
+
|
|
5
|
+
export interface formFaqAttributes {
|
|
6
|
+
id?: number;
|
|
7
|
+
uuid?: string;
|
|
8
|
+
titleName?: string;
|
|
9
|
+
firstName?: string;
|
|
10
|
+
lastName?: string;
|
|
11
|
+
phone?: string;
|
|
12
|
+
email?: string;
|
|
13
|
+
question?: string;
|
|
14
|
+
detail?: string;
|
|
15
|
+
attachments?: object;
|
|
16
|
+
status?: number;
|
|
17
|
+
createdBy?: string;
|
|
18
|
+
createdDate?: Date;
|
|
19
|
+
updatedBy?: string;
|
|
20
|
+
updatedDate?: Date;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@Table({
|
|
24
|
+
tableName: "form_faq",
|
|
25
|
+
timestamps: false
|
|
26
|
+
})
|
|
27
|
+
export class formFaq extends Model<formFaqAttributes, formFaqAttributes> implements formFaqAttributes {
|
|
28
|
+
|
|
29
|
+
@Column({
|
|
30
|
+
primaryKey: true,
|
|
31
|
+
autoIncrement: true,
|
|
32
|
+
type: DataType.INTEGER
|
|
33
|
+
})
|
|
34
|
+
declare id?: number;
|
|
35
|
+
|
|
36
|
+
@Column({
|
|
37
|
+
allowNull: true,
|
|
38
|
+
type: DataType.STRING(60)
|
|
39
|
+
})
|
|
40
|
+
declare uuid?: string;
|
|
41
|
+
|
|
42
|
+
@Column({
|
|
43
|
+
field: "title_name",
|
|
44
|
+
allowNull: true,
|
|
45
|
+
type: DataType.STRING(50)
|
|
46
|
+
})
|
|
47
|
+
declare titleName?: string;
|
|
48
|
+
|
|
49
|
+
@Column({
|
|
50
|
+
field: "first_name",
|
|
51
|
+
allowNull: true,
|
|
52
|
+
type: DataType.STRING(255)
|
|
53
|
+
})
|
|
54
|
+
declare firstName?: string;
|
|
55
|
+
|
|
56
|
+
@Column({
|
|
57
|
+
field: "last_name",
|
|
58
|
+
allowNull: true,
|
|
59
|
+
type: DataType.STRING(255)
|
|
60
|
+
})
|
|
61
|
+
declare lastName?: string;
|
|
62
|
+
|
|
63
|
+
@Column({
|
|
64
|
+
allowNull: true,
|
|
65
|
+
type: DataType.STRING(255)
|
|
66
|
+
})
|
|
67
|
+
declare phone?: string;
|
|
68
|
+
|
|
69
|
+
@Column({
|
|
70
|
+
allowNull: true,
|
|
71
|
+
type: DataType.STRING(255)
|
|
72
|
+
})
|
|
73
|
+
declare email?: string;
|
|
74
|
+
|
|
75
|
+
@Column({
|
|
76
|
+
allowNull: true,
|
|
77
|
+
type: DataType.STRING(255)
|
|
78
|
+
})
|
|
79
|
+
declare question?: string;
|
|
80
|
+
|
|
81
|
+
@Column({
|
|
82
|
+
allowNull: true,
|
|
83
|
+
type: DataType.STRING
|
|
84
|
+
})
|
|
85
|
+
declare detail?: string;
|
|
86
|
+
|
|
87
|
+
@Column({
|
|
88
|
+
allowNull: true,
|
|
89
|
+
type: DataType.JSON
|
|
90
|
+
})
|
|
91
|
+
declare attachments?: object;
|
|
92
|
+
|
|
93
|
+
@Column({
|
|
94
|
+
allowNull: true,
|
|
95
|
+
type: DataType.INTEGER
|
|
96
|
+
})
|
|
97
|
+
declare status?: number;
|
|
98
|
+
|
|
99
|
+
@Column({
|
|
100
|
+
field: "created_by",
|
|
101
|
+
allowNull: true,
|
|
102
|
+
type: DataType.STRING(60)
|
|
103
|
+
})
|
|
104
|
+
declare createdBy?: string;
|
|
105
|
+
|
|
106
|
+
@Column({
|
|
107
|
+
field: "created_date",
|
|
108
|
+
allowNull: true,
|
|
109
|
+
type: DataType.DATE
|
|
110
|
+
})
|
|
111
|
+
declare createdDate?: Date;
|
|
112
|
+
|
|
113
|
+
@Column({
|
|
114
|
+
field: "updated_by",
|
|
115
|
+
allowNull: true,
|
|
116
|
+
type: DataType.STRING(60)
|
|
117
|
+
})
|
|
118
|
+
declare updatedBy?: string;
|
|
119
|
+
|
|
120
|
+
@Column({
|
|
121
|
+
field: "updated_date",
|
|
122
|
+
allowNull: true,
|
|
123
|
+
type: DataType.DATE
|
|
124
|
+
})
|
|
125
|
+
declare updatedDate?: Date;
|
|
126
|
+
|
|
127
|
+
}
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
|
|
5
5
|
export interface helperAttributes {
|
|
6
6
|
id?: number;
|
|
7
|
+
device?: string;
|
|
7
8
|
target?: string;
|
|
8
9
|
content?: string;
|
|
9
10
|
disableBeacon?: number;
|
|
@@ -30,6 +31,12 @@ export class helper extends Model<helperAttributes, helperAttributes> implements
|
|
|
30
31
|
})
|
|
31
32
|
declare id?: number;
|
|
32
33
|
|
|
34
|
+
@Column({
|
|
35
|
+
allowNull: true,
|
|
36
|
+
type: DataType.STRING(10)
|
|
37
|
+
})
|
|
38
|
+
declare device?: string;
|
|
39
|
+
|
|
33
40
|
@Column({
|
|
34
41
|
allowNull: true,
|
|
35
42
|
type: DataType.STRING(255)
|
|
@@ -24,12 +24,14 @@ export interface memberAttributes {
|
|
|
24
24
|
gender?: string;
|
|
25
25
|
status?: number;
|
|
26
26
|
is_2fa?: number;
|
|
27
|
+
securityInfo?: object;
|
|
27
28
|
lineId?: string;
|
|
28
29
|
facebookId?: string;
|
|
29
30
|
policy?: number;
|
|
30
31
|
terms?: number;
|
|
31
32
|
otp?: string;
|
|
32
33
|
otpDate?: Date;
|
|
34
|
+
avatar?: string;
|
|
33
35
|
createdBy?: string;
|
|
34
36
|
createdDate?: Date;
|
|
35
37
|
updatedBy?: string;
|
|
@@ -177,6 +179,13 @@ export class member extends Model<memberAttributes, memberAttributes> implements
|
|
|
177
179
|
})
|
|
178
180
|
declare is_2fa?: number;
|
|
179
181
|
|
|
182
|
+
@Column({
|
|
183
|
+
field: "security_info",
|
|
184
|
+
allowNull: true,
|
|
185
|
+
type: DataType.JSON
|
|
186
|
+
})
|
|
187
|
+
declare securityInfo?: object;
|
|
188
|
+
|
|
180
189
|
@Column({
|
|
181
190
|
field: "line_id",
|
|
182
191
|
allowNull: true,
|
|
@@ -216,6 +225,12 @@ export class member extends Model<memberAttributes, memberAttributes> implements
|
|
|
216
225
|
})
|
|
217
226
|
declare otpDate?: Date;
|
|
218
227
|
|
|
228
|
+
@Column({
|
|
229
|
+
allowNull: true,
|
|
230
|
+
type: DataType.STRING(60)
|
|
231
|
+
})
|
|
232
|
+
declare avatar?: string;
|
|
233
|
+
|
|
219
234
|
@Column({
|
|
220
235
|
field: "created_by",
|
|
221
236
|
allowNull: true,
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
|
|
3
|
+
interface formFaqAttributes {
|
|
4
|
+
id?: number;
|
|
5
|
+
uuid?: string;
|
|
6
|
+
titleName?: string;
|
|
7
|
+
firstName?: string;
|
|
8
|
+
lastName?: string;
|
|
9
|
+
phone?: string;
|
|
10
|
+
email?: string;
|
|
11
|
+
question?: string;
|
|
12
|
+
detail?: string;
|
|
13
|
+
attachments?: object;
|
|
14
|
+
status?: number;
|
|
15
|
+
createdBy?: string;
|
|
16
|
+
createdDate?: Date;
|
|
17
|
+
updatedBy?: string;
|
|
18
|
+
updatedDate?: Date;
|
|
19
|
+
}
|
|
20
|
+
declare class formFaq extends Model<formFaqAttributes, formFaqAttributes> implements formFaqAttributes {
|
|
21
|
+
id?: number;
|
|
22
|
+
uuid?: string;
|
|
23
|
+
titleName?: string;
|
|
24
|
+
firstName?: string;
|
|
25
|
+
lastName?: string;
|
|
26
|
+
phone?: string;
|
|
27
|
+
email?: string;
|
|
28
|
+
question?: string;
|
|
29
|
+
detail?: string;
|
|
30
|
+
attachments?: object;
|
|
31
|
+
status?: number;
|
|
32
|
+
createdBy?: string;
|
|
33
|
+
createdDate?: Date;
|
|
34
|
+
updatedBy?: string;
|
|
35
|
+
updatedDate?: Date;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { formFaq, type formFaqAttributes };
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
20
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
21
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
22
|
+
if (decorator = decorators[i])
|
|
23
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
24
|
+
if (kind && result) __defProp(target, key, result);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
// src/databases/tables/formFaq.ts
|
|
29
|
+
var formFaq_exports = {};
|
|
30
|
+
__export(formFaq_exports, {
|
|
31
|
+
formFaq: () => formFaq
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(formFaq_exports);
|
|
34
|
+
var import_sequelize_typescript = require("sequelize-typescript");
|
|
35
|
+
var formFaq = class extends import_sequelize_typescript.Model {
|
|
36
|
+
};
|
|
37
|
+
__decorateClass([
|
|
38
|
+
(0, import_sequelize_typescript.Column)({
|
|
39
|
+
primaryKey: true,
|
|
40
|
+
autoIncrement: true,
|
|
41
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
42
|
+
})
|
|
43
|
+
], formFaq.prototype, "id", 2);
|
|
44
|
+
__decorateClass([
|
|
45
|
+
(0, import_sequelize_typescript.Column)({
|
|
46
|
+
allowNull: true,
|
|
47
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
48
|
+
})
|
|
49
|
+
], formFaq.prototype, "uuid", 2);
|
|
50
|
+
__decorateClass([
|
|
51
|
+
(0, import_sequelize_typescript.Column)({
|
|
52
|
+
field: "title_name",
|
|
53
|
+
allowNull: true,
|
|
54
|
+
type: import_sequelize_typescript.DataType.STRING(50)
|
|
55
|
+
})
|
|
56
|
+
], formFaq.prototype, "titleName", 2);
|
|
57
|
+
__decorateClass([
|
|
58
|
+
(0, import_sequelize_typescript.Column)({
|
|
59
|
+
field: "first_name",
|
|
60
|
+
allowNull: true,
|
|
61
|
+
type: import_sequelize_typescript.DataType.STRING(255)
|
|
62
|
+
})
|
|
63
|
+
], formFaq.prototype, "firstName", 2);
|
|
64
|
+
__decorateClass([
|
|
65
|
+
(0, import_sequelize_typescript.Column)({
|
|
66
|
+
field: "last_name",
|
|
67
|
+
allowNull: true,
|
|
68
|
+
type: import_sequelize_typescript.DataType.STRING(255)
|
|
69
|
+
})
|
|
70
|
+
], formFaq.prototype, "lastName", 2);
|
|
71
|
+
__decorateClass([
|
|
72
|
+
(0, import_sequelize_typescript.Column)({
|
|
73
|
+
allowNull: true,
|
|
74
|
+
type: import_sequelize_typescript.DataType.STRING(255)
|
|
75
|
+
})
|
|
76
|
+
], formFaq.prototype, "phone", 2);
|
|
77
|
+
__decorateClass([
|
|
78
|
+
(0, import_sequelize_typescript.Column)({
|
|
79
|
+
allowNull: true,
|
|
80
|
+
type: import_sequelize_typescript.DataType.STRING(255)
|
|
81
|
+
})
|
|
82
|
+
], formFaq.prototype, "email", 2);
|
|
83
|
+
__decorateClass([
|
|
84
|
+
(0, import_sequelize_typescript.Column)({
|
|
85
|
+
allowNull: true,
|
|
86
|
+
type: import_sequelize_typescript.DataType.STRING(255)
|
|
87
|
+
})
|
|
88
|
+
], formFaq.prototype, "question", 2);
|
|
89
|
+
__decorateClass([
|
|
90
|
+
(0, import_sequelize_typescript.Column)({
|
|
91
|
+
allowNull: true,
|
|
92
|
+
type: import_sequelize_typescript.DataType.STRING
|
|
93
|
+
})
|
|
94
|
+
], formFaq.prototype, "detail", 2);
|
|
95
|
+
__decorateClass([
|
|
96
|
+
(0, import_sequelize_typescript.Column)({
|
|
97
|
+
allowNull: true,
|
|
98
|
+
type: import_sequelize_typescript.DataType.JSON
|
|
99
|
+
})
|
|
100
|
+
], formFaq.prototype, "attachments", 2);
|
|
101
|
+
__decorateClass([
|
|
102
|
+
(0, import_sequelize_typescript.Column)({
|
|
103
|
+
allowNull: true,
|
|
104
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
105
|
+
})
|
|
106
|
+
], formFaq.prototype, "status", 2);
|
|
107
|
+
__decorateClass([
|
|
108
|
+
(0, import_sequelize_typescript.Column)({
|
|
109
|
+
field: "created_by",
|
|
110
|
+
allowNull: true,
|
|
111
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
112
|
+
})
|
|
113
|
+
], formFaq.prototype, "createdBy", 2);
|
|
114
|
+
__decorateClass([
|
|
115
|
+
(0, import_sequelize_typescript.Column)({
|
|
116
|
+
field: "created_date",
|
|
117
|
+
allowNull: true,
|
|
118
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
119
|
+
})
|
|
120
|
+
], formFaq.prototype, "createdDate", 2);
|
|
121
|
+
__decorateClass([
|
|
122
|
+
(0, import_sequelize_typescript.Column)({
|
|
123
|
+
field: "updated_by",
|
|
124
|
+
allowNull: true,
|
|
125
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
126
|
+
})
|
|
127
|
+
], formFaq.prototype, "updatedBy", 2);
|
|
128
|
+
__decorateClass([
|
|
129
|
+
(0, import_sequelize_typescript.Column)({
|
|
130
|
+
field: "updated_date",
|
|
131
|
+
allowNull: true,
|
|
132
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
133
|
+
})
|
|
134
|
+
], formFaq.prototype, "updatedDate", 2);
|
|
135
|
+
formFaq = __decorateClass([
|
|
136
|
+
(0, import_sequelize_typescript.Table)({
|
|
137
|
+
tableName: "form_faq",
|
|
138
|
+
timestamps: false
|
|
139
|
+
})
|
|
140
|
+
], formFaq);
|
|
141
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
142
|
+
0 && (module.exports = {
|
|
143
|
+
formFaq
|
|
144
|
+
});
|
|
@@ -2,6 +2,7 @@ import { Model } from 'sequelize-typescript';
|
|
|
2
2
|
|
|
3
3
|
interface helperAttributes {
|
|
4
4
|
id?: number;
|
|
5
|
+
device?: string;
|
|
5
6
|
target?: string;
|
|
6
7
|
content?: string;
|
|
7
8
|
disableBeacon?: number;
|
|
@@ -16,6 +17,7 @@ interface helperAttributes {
|
|
|
16
17
|
}
|
|
17
18
|
declare class helper extends Model<helperAttributes, helperAttributes> implements helperAttributes {
|
|
18
19
|
id?: number;
|
|
20
|
+
device?: string;
|
|
19
21
|
target?: string;
|
|
20
22
|
content?: string;
|
|
21
23
|
disableBeacon?: number;
|
|
@@ -41,6 +41,12 @@ __decorateClass([
|
|
|
41
41
|
type: import_sequelize_typescript.DataType.INTEGER
|
|
42
42
|
})
|
|
43
43
|
], helper.prototype, "id", 2);
|
|
44
|
+
__decorateClass([
|
|
45
|
+
(0, import_sequelize_typescript.Column)({
|
|
46
|
+
allowNull: true,
|
|
47
|
+
type: import_sequelize_typescript.DataType.STRING(10)
|
|
48
|
+
})
|
|
49
|
+
], helper.prototype, "device", 2);
|
|
44
50
|
__decorateClass([
|
|
45
51
|
(0, import_sequelize_typescript.Column)({
|
|
46
52
|
allowNull: true,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { b as authAssignment, a as authAssignmentAttributes, d as authRole, c as authRoleAttributes, f as authRoleChild, e as authRoleChildAttributes, g as mdContent, m as mdContentAttributes, i as mdContentGroup, h as mdContentGroupAttributes, k as mdQuestionnaire, j as mdQuestionnaireAttributes, l as users, u as usersAttributes, o as usersVerify, n as usersVerifyAttributes } from '../../authAssignment-CcMPKnNv.js';
|
|
2
2
|
export { b as authItem, a as authItemAttributes, d as authItemChild, c as authItemChildAttributes, e as menu, m as menuAttributes, g as msModule, f as msModuleAttributes } from '../../authItem-DBSkCaSi.js';
|
|
3
3
|
export { a as files, f as filesAttributes, b as mdBanner, m as mdBannerAttributes } from '../../files-C1bgSUjy.js';
|
|
4
|
+
export { formFaq, formFaqAttributes } from './formFaq.js';
|
|
4
5
|
export { helper, helperAttributes } from './helper.js';
|
|
5
6
|
export { logs, logsAttributes } from './logs.js';
|
|
6
7
|
export { mdCmsSingle, mdCmsSingleAttributes } from './mdCmsSingle.js';
|