@admc-go-th/admc-library 1.0.75 → 1.0.77
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/appBlessings.ts +113 -0
- package/databases/schema/appBlessingsTransaction.ts +91 -0
- package/databases/schema/index.ts +4 -0
- package/databases/schema/mdInformationIndex.ts +217 -0
- package/databases/schema/mdInformationIndexGroup.ts +110 -0
- package/databases/tables/appBlessings.d.ts +34 -0
- package/databases/tables/appBlessings.js +132 -0
- package/databases/tables/appBlessingsTransaction.d.ts +28 -0
- package/databases/tables/appBlessingsTransaction.js +113 -0
- package/databases/tables/index.d.ts +3 -0
- package/databases/tables/index.js +2477 -2011
- package/databases/tables/mdInformationIndex.d.ts +2 -0
- package/databases/tables/mdInformationIndex.js +318 -0
- package/databases/tables/mdInformationIndexGroup.d.ts +2 -0
- package/databases/tables/mdInformationIndexGroup.js +318 -0
- package/mdInformationIndex-BoCz0Vkk.d.ts +91 -0
- package/package.json +1 -1
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Model, Table, Column, DataType, Index, Sequelize, ForeignKey
|
|
3
|
+
} from "sequelize-typescript";
|
|
4
|
+
|
|
5
|
+
export interface appBlessingsAttributes {
|
|
6
|
+
id?: number;
|
|
7
|
+
uuid?: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
detail?: string;
|
|
10
|
+
words?: string;
|
|
11
|
+
status?: number;
|
|
12
|
+
hasExpire?: number;
|
|
13
|
+
startDate?: Date;
|
|
14
|
+
expireDate?: Date;
|
|
15
|
+
createdBy?: string;
|
|
16
|
+
createdDate?: Date;
|
|
17
|
+
updatedBy?: string;
|
|
18
|
+
updatedDate?: Date;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@Table({
|
|
22
|
+
tableName: "app_blessings",
|
|
23
|
+
timestamps: false
|
|
24
|
+
})
|
|
25
|
+
export class appBlessings extends Model<appBlessingsAttributes, appBlessingsAttributes> implements appBlessingsAttributes {
|
|
26
|
+
|
|
27
|
+
@Column({
|
|
28
|
+
primaryKey: true,
|
|
29
|
+
autoIncrement: true,
|
|
30
|
+
type: DataType.INTEGER
|
|
31
|
+
})
|
|
32
|
+
declare id?: number;
|
|
33
|
+
|
|
34
|
+
@Column({
|
|
35
|
+
allowNull: true,
|
|
36
|
+
type: DataType.STRING(60)
|
|
37
|
+
})
|
|
38
|
+
declare uuid?: string;
|
|
39
|
+
|
|
40
|
+
@Column({
|
|
41
|
+
allowNull: true,
|
|
42
|
+
type: DataType.STRING(255)
|
|
43
|
+
})
|
|
44
|
+
declare title?: string;
|
|
45
|
+
|
|
46
|
+
@Column({
|
|
47
|
+
allowNull: true,
|
|
48
|
+
type: DataType.STRING
|
|
49
|
+
})
|
|
50
|
+
declare detail?: string;
|
|
51
|
+
|
|
52
|
+
@Column({
|
|
53
|
+
allowNull: true,
|
|
54
|
+
type: DataType.STRING
|
|
55
|
+
})
|
|
56
|
+
declare words?: string;
|
|
57
|
+
|
|
58
|
+
@Column({
|
|
59
|
+
allowNull: true,
|
|
60
|
+
type: DataType.INTEGER
|
|
61
|
+
})
|
|
62
|
+
declare status?: number;
|
|
63
|
+
|
|
64
|
+
@Column({
|
|
65
|
+
field: "has_expire",
|
|
66
|
+
allowNull: true,
|
|
67
|
+
type: DataType.INTEGER
|
|
68
|
+
})
|
|
69
|
+
declare hasExpire?: number;
|
|
70
|
+
|
|
71
|
+
@Column({
|
|
72
|
+
field: "start_date",
|
|
73
|
+
allowNull: true,
|
|
74
|
+
type: DataType.DATE
|
|
75
|
+
})
|
|
76
|
+
declare startDate?: Date;
|
|
77
|
+
|
|
78
|
+
@Column({
|
|
79
|
+
field: "expire_date",
|
|
80
|
+
allowNull: true,
|
|
81
|
+
type: DataType.DATE
|
|
82
|
+
})
|
|
83
|
+
declare expireDate?: Date;
|
|
84
|
+
|
|
85
|
+
@Column({
|
|
86
|
+
field: "created_by",
|
|
87
|
+
allowNull: true,
|
|
88
|
+
type: DataType.STRING(60)
|
|
89
|
+
})
|
|
90
|
+
declare createdBy?: string;
|
|
91
|
+
|
|
92
|
+
@Column({
|
|
93
|
+
field: "created_date",
|
|
94
|
+
allowNull: true,
|
|
95
|
+
type: DataType.DATE
|
|
96
|
+
})
|
|
97
|
+
declare createdDate?: Date;
|
|
98
|
+
|
|
99
|
+
@Column({
|
|
100
|
+
field: "updated_by",
|
|
101
|
+
allowNull: true,
|
|
102
|
+
type: DataType.STRING(60)
|
|
103
|
+
})
|
|
104
|
+
declare updatedBy?: string;
|
|
105
|
+
|
|
106
|
+
@Column({
|
|
107
|
+
field: "updated_date",
|
|
108
|
+
allowNull: true,
|
|
109
|
+
type: DataType.DATE
|
|
110
|
+
})
|
|
111
|
+
declare updatedDate?: Date;
|
|
112
|
+
|
|
113
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Model, Table, Column, DataType, Index, Sequelize, ForeignKey
|
|
3
|
+
} from "sequelize-typescript";
|
|
4
|
+
|
|
5
|
+
export interface appBlessingsTransactionAttributes {
|
|
6
|
+
id?: number;
|
|
7
|
+
blessingsId?: number;
|
|
8
|
+
fullname?: string;
|
|
9
|
+
words?: string;
|
|
10
|
+
ipAddress?: string;
|
|
11
|
+
status?: number;
|
|
12
|
+
createdBy?: string;
|
|
13
|
+
createdDate?: Date;
|
|
14
|
+
updatedBy?: string;
|
|
15
|
+
updatedDate?: Date;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@Table({
|
|
19
|
+
tableName: "app_blessings_transaction",
|
|
20
|
+
timestamps: false
|
|
21
|
+
})
|
|
22
|
+
export class appBlessingsTransaction extends Model<appBlessingsTransactionAttributes, appBlessingsTransactionAttributes> implements appBlessingsTransactionAttributes {
|
|
23
|
+
|
|
24
|
+
@Column({
|
|
25
|
+
primaryKey: true,
|
|
26
|
+
autoIncrement: true,
|
|
27
|
+
type: DataType.INTEGER
|
|
28
|
+
})
|
|
29
|
+
declare id?: number;
|
|
30
|
+
|
|
31
|
+
@Column({
|
|
32
|
+
field: "blessings_id",
|
|
33
|
+
allowNull: true,
|
|
34
|
+
type: DataType.INTEGER
|
|
35
|
+
})
|
|
36
|
+
declare blessingsId?: number;
|
|
37
|
+
|
|
38
|
+
@Column({
|
|
39
|
+
allowNull: true,
|
|
40
|
+
type: DataType.STRING(255)
|
|
41
|
+
})
|
|
42
|
+
declare fullname?: string;
|
|
43
|
+
|
|
44
|
+
@Column({
|
|
45
|
+
allowNull: true,
|
|
46
|
+
type: DataType.STRING(255)
|
|
47
|
+
})
|
|
48
|
+
declare words?: string;
|
|
49
|
+
|
|
50
|
+
@Column({
|
|
51
|
+
field: "ip_address",
|
|
52
|
+
allowNull: true,
|
|
53
|
+
type: DataType.STRING(30)
|
|
54
|
+
})
|
|
55
|
+
declare ipAddress?: string;
|
|
56
|
+
|
|
57
|
+
@Column({
|
|
58
|
+
allowNull: true,
|
|
59
|
+
type: DataType.INTEGER
|
|
60
|
+
})
|
|
61
|
+
declare status?: number;
|
|
62
|
+
|
|
63
|
+
@Column({
|
|
64
|
+
field: "created_by",
|
|
65
|
+
allowNull: true,
|
|
66
|
+
type: DataType.STRING(60)
|
|
67
|
+
})
|
|
68
|
+
declare createdBy?: string;
|
|
69
|
+
|
|
70
|
+
@Column({
|
|
71
|
+
field: "created_date",
|
|
72
|
+
allowNull: true,
|
|
73
|
+
type: DataType.DATE
|
|
74
|
+
})
|
|
75
|
+
declare createdDate?: Date;
|
|
76
|
+
|
|
77
|
+
@Column({
|
|
78
|
+
field: "updated_by",
|
|
79
|
+
allowNull: true,
|
|
80
|
+
type: DataType.STRING(60)
|
|
81
|
+
})
|
|
82
|
+
declare updatedBy?: string;
|
|
83
|
+
|
|
84
|
+
@Column({
|
|
85
|
+
field: "updated_date",
|
|
86
|
+
allowNull: true,
|
|
87
|
+
type: DataType.DATE
|
|
88
|
+
})
|
|
89
|
+
declare updatedDate?: Date;
|
|
90
|
+
|
|
91
|
+
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from "./appBlessings";
|
|
2
|
+
export * from "./appBlessingsTransaction";
|
|
1
3
|
export * from "./authAssignment";
|
|
2
4
|
export * from "./authItem";
|
|
3
5
|
export * from "./authItemChild";
|
|
@@ -21,6 +23,8 @@ export * from "./mdFaq";
|
|
|
21
23
|
export * from "./mdFaqGroup";
|
|
22
24
|
export * from "./mdFormAdvance_1";
|
|
23
25
|
export * from "./mdFormAdvance_2";
|
|
26
|
+
export * from "./mdInformationIndex";
|
|
27
|
+
export * from "./mdInformationIndexGroup";
|
|
24
28
|
export * from "./mdLink";
|
|
25
29
|
export * from "./mdLinkGroup";
|
|
26
30
|
export * from "./mdNews";
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Model, Table, Column, DataType, Index, Sequelize, ForeignKey, BelongsTo
|
|
3
|
+
} from "sequelize-typescript";
|
|
4
|
+
import { mdInformationIndexGroup } from "./mdInformationIndexGroup";
|
|
5
|
+
|
|
6
|
+
export interface mdInformationIndexAttributes {
|
|
7
|
+
id?: number;
|
|
8
|
+
uuid?: string;
|
|
9
|
+
keyName?: string;
|
|
10
|
+
groupId?: number;
|
|
11
|
+
userId: number;
|
|
12
|
+
title?: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
detail?: string;
|
|
15
|
+
metaTitle?: string;
|
|
16
|
+
metaKeyword?: string;
|
|
17
|
+
metaDescription?: string;
|
|
18
|
+
categoryNo?: number;
|
|
19
|
+
bookNo?: number;
|
|
20
|
+
chapter?: string;
|
|
21
|
+
announcementDate?: Date;
|
|
22
|
+
attachments?: object;
|
|
23
|
+
sort?: number;
|
|
24
|
+
publish?: number;
|
|
25
|
+
status?: number;
|
|
26
|
+
hasExpire?: number;
|
|
27
|
+
startDate?: Date;
|
|
28
|
+
expireDate?: Date;
|
|
29
|
+
createdBy?: string;
|
|
30
|
+
createdDate?: Date;
|
|
31
|
+
updatedBy?: string;
|
|
32
|
+
updatedDate?: Date;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@Table({
|
|
36
|
+
tableName: "md_information_index",
|
|
37
|
+
timestamps: false
|
|
38
|
+
})
|
|
39
|
+
export class mdInformationIndex extends Model<mdInformationIndexAttributes, mdInformationIndexAttributes> implements mdInformationIndexAttributes {
|
|
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
|
+
field: "key_name",
|
|
56
|
+
allowNull: true,
|
|
57
|
+
type: DataType.STRING(100)
|
|
58
|
+
})
|
|
59
|
+
declare keyName?: string;
|
|
60
|
+
|
|
61
|
+
@ForeignKey(() => mdInformationIndexGroup)
|
|
62
|
+
@Column({
|
|
63
|
+
field: "group_id",
|
|
64
|
+
allowNull: true,
|
|
65
|
+
type: DataType.INTEGER
|
|
66
|
+
})
|
|
67
|
+
declare groupId?: number;
|
|
68
|
+
|
|
69
|
+
@Column({
|
|
70
|
+
field: "user_id",
|
|
71
|
+
type: DataType.INTEGER
|
|
72
|
+
})
|
|
73
|
+
declare userId: number;
|
|
74
|
+
|
|
75
|
+
@Column({
|
|
76
|
+
allowNull: true,
|
|
77
|
+
type: DataType.STRING(255)
|
|
78
|
+
})
|
|
79
|
+
declare title?: string;
|
|
80
|
+
|
|
81
|
+
@Column({
|
|
82
|
+
allowNull: true,
|
|
83
|
+
type: DataType.STRING
|
|
84
|
+
})
|
|
85
|
+
declare description?: string;
|
|
86
|
+
|
|
87
|
+
@Column({
|
|
88
|
+
allowNull: true,
|
|
89
|
+
type: DataType.STRING
|
|
90
|
+
})
|
|
91
|
+
declare detail?: string;
|
|
92
|
+
|
|
93
|
+
@Column({
|
|
94
|
+
field: "meta_title",
|
|
95
|
+
allowNull: true,
|
|
96
|
+
type: DataType.STRING(255)
|
|
97
|
+
})
|
|
98
|
+
declare metaTitle?: string;
|
|
99
|
+
|
|
100
|
+
@Column({
|
|
101
|
+
field: "meta_keyword",
|
|
102
|
+
allowNull: true,
|
|
103
|
+
type: DataType.STRING(255)
|
|
104
|
+
})
|
|
105
|
+
declare metaKeyword?: string;
|
|
106
|
+
|
|
107
|
+
@Column({
|
|
108
|
+
field: "meta_description",
|
|
109
|
+
allowNull: true,
|
|
110
|
+
type: DataType.STRING(255)
|
|
111
|
+
})
|
|
112
|
+
declare metaDescription?: string;
|
|
113
|
+
|
|
114
|
+
@Column({
|
|
115
|
+
field: "category_no",
|
|
116
|
+
allowNull: true,
|
|
117
|
+
type: DataType.INTEGER
|
|
118
|
+
})
|
|
119
|
+
declare categoryNo?: number;
|
|
120
|
+
|
|
121
|
+
@Column({
|
|
122
|
+
field: "book_no",
|
|
123
|
+
allowNull: true,
|
|
124
|
+
type: DataType.INTEGER
|
|
125
|
+
})
|
|
126
|
+
declare bookNo?: number;
|
|
127
|
+
|
|
128
|
+
@Column({
|
|
129
|
+
allowNull: true,
|
|
130
|
+
type: DataType.STRING(255)
|
|
131
|
+
})
|
|
132
|
+
declare chapter?: string;
|
|
133
|
+
|
|
134
|
+
@Column({
|
|
135
|
+
field: "announcement_date",
|
|
136
|
+
allowNull: true,
|
|
137
|
+
type: DataType.DATE
|
|
138
|
+
})
|
|
139
|
+
declare announcementDate?: Date;
|
|
140
|
+
|
|
141
|
+
@Column({
|
|
142
|
+
allowNull: true,
|
|
143
|
+
type: DataType.JSON
|
|
144
|
+
})
|
|
145
|
+
declare attachments?: object;
|
|
146
|
+
|
|
147
|
+
@Column({
|
|
148
|
+
allowNull: true,
|
|
149
|
+
type: DataType.INTEGER
|
|
150
|
+
})
|
|
151
|
+
declare sort?: number;
|
|
152
|
+
|
|
153
|
+
@Column({
|
|
154
|
+
allowNull: true,
|
|
155
|
+
type: DataType.INTEGER
|
|
156
|
+
})
|
|
157
|
+
declare publish?: number;
|
|
158
|
+
|
|
159
|
+
@Column({
|
|
160
|
+
allowNull: true,
|
|
161
|
+
type: DataType.INTEGER
|
|
162
|
+
})
|
|
163
|
+
declare status?: number;
|
|
164
|
+
|
|
165
|
+
@Column({
|
|
166
|
+
field: "has_expire",
|
|
167
|
+
allowNull: true,
|
|
168
|
+
type: DataType.INTEGER
|
|
169
|
+
})
|
|
170
|
+
declare hasExpire?: number;
|
|
171
|
+
|
|
172
|
+
@Column({
|
|
173
|
+
field: "start_date",
|
|
174
|
+
allowNull: true,
|
|
175
|
+
type: DataType.DATE
|
|
176
|
+
})
|
|
177
|
+
declare startDate?: Date;
|
|
178
|
+
|
|
179
|
+
@Column({
|
|
180
|
+
field: "expire_date",
|
|
181
|
+
allowNull: true,
|
|
182
|
+
type: DataType.DATE
|
|
183
|
+
})
|
|
184
|
+
declare expireDate?: Date;
|
|
185
|
+
|
|
186
|
+
@Column({
|
|
187
|
+
field: "created_by",
|
|
188
|
+
allowNull: true,
|
|
189
|
+
type: DataType.STRING(60)
|
|
190
|
+
})
|
|
191
|
+
declare createdBy?: string;
|
|
192
|
+
|
|
193
|
+
@Column({
|
|
194
|
+
field: "created_date",
|
|
195
|
+
allowNull: true,
|
|
196
|
+
type: DataType.DATE
|
|
197
|
+
})
|
|
198
|
+
declare createdDate?: Date;
|
|
199
|
+
|
|
200
|
+
@Column({
|
|
201
|
+
field: "updated_by",
|
|
202
|
+
allowNull: true,
|
|
203
|
+
type: DataType.STRING(60)
|
|
204
|
+
})
|
|
205
|
+
declare updatedBy?: string;
|
|
206
|
+
|
|
207
|
+
@Column({
|
|
208
|
+
field: "updated_date",
|
|
209
|
+
allowNull: true,
|
|
210
|
+
type: DataType.DATE
|
|
211
|
+
})
|
|
212
|
+
declare updatedDate?: Date;
|
|
213
|
+
|
|
214
|
+
@BelongsTo(() => mdInformationIndexGroup)
|
|
215
|
+
declare mdInformationIndexGroup?: mdInformationIndexGroup;
|
|
216
|
+
|
|
217
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Model, Table, Column, DataType, Index, Sequelize, ForeignKey, HasMany
|
|
3
|
+
} from "sequelize-typescript";
|
|
4
|
+
import { mdInformationIndex } from "./mdInformationIndex";
|
|
5
|
+
|
|
6
|
+
export interface mdInformationIndexGroupAttributes {
|
|
7
|
+
id?: number;
|
|
8
|
+
uuid?: string;
|
|
9
|
+
keyName?: string;
|
|
10
|
+
userId?: number;
|
|
11
|
+
name: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
sort?: number;
|
|
14
|
+
status?: number;
|
|
15
|
+
createdBy?: string;
|
|
16
|
+
createdDate?: Date;
|
|
17
|
+
updatedBy?: string;
|
|
18
|
+
updatedDate?: Date;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@Table({
|
|
22
|
+
tableName: "md_information_index_group",
|
|
23
|
+
timestamps: false
|
|
24
|
+
})
|
|
25
|
+
export class mdInformationIndexGroup extends Model<mdInformationIndexGroupAttributes, mdInformationIndexGroupAttributes> implements mdInformationIndexGroupAttributes {
|
|
26
|
+
|
|
27
|
+
@Column({
|
|
28
|
+
primaryKey: true,
|
|
29
|
+
autoIncrement: true,
|
|
30
|
+
type: DataType.INTEGER
|
|
31
|
+
})
|
|
32
|
+
declare id?: number;
|
|
33
|
+
|
|
34
|
+
@Column({
|
|
35
|
+
allowNull: true,
|
|
36
|
+
type: DataType.STRING(60)
|
|
37
|
+
})
|
|
38
|
+
declare uuid?: string;
|
|
39
|
+
|
|
40
|
+
@Column({
|
|
41
|
+
field: "key_name",
|
|
42
|
+
allowNull: true,
|
|
43
|
+
type: DataType.STRING(100)
|
|
44
|
+
})
|
|
45
|
+
declare keyName?: string;
|
|
46
|
+
|
|
47
|
+
@Column({
|
|
48
|
+
field: "user_id",
|
|
49
|
+
allowNull: true,
|
|
50
|
+
type: DataType.INTEGER
|
|
51
|
+
})
|
|
52
|
+
declare userId?: number;
|
|
53
|
+
|
|
54
|
+
@Column({
|
|
55
|
+
type: DataType.STRING(255)
|
|
56
|
+
})
|
|
57
|
+
declare name: string;
|
|
58
|
+
|
|
59
|
+
@Column({
|
|
60
|
+
allowNull: true,
|
|
61
|
+
type: DataType.STRING(255)
|
|
62
|
+
})
|
|
63
|
+
declare description?: string;
|
|
64
|
+
|
|
65
|
+
@Column({
|
|
66
|
+
allowNull: true,
|
|
67
|
+
type: DataType.INTEGER
|
|
68
|
+
})
|
|
69
|
+
declare sort?: number;
|
|
70
|
+
|
|
71
|
+
@Column({
|
|
72
|
+
allowNull: true,
|
|
73
|
+
type: DataType.INTEGER
|
|
74
|
+
})
|
|
75
|
+
declare status?: number;
|
|
76
|
+
|
|
77
|
+
@Column({
|
|
78
|
+
field: "created_by",
|
|
79
|
+
allowNull: true,
|
|
80
|
+
type: DataType.STRING(60)
|
|
81
|
+
})
|
|
82
|
+
declare createdBy?: string;
|
|
83
|
+
|
|
84
|
+
@Column({
|
|
85
|
+
field: "created_date",
|
|
86
|
+
allowNull: true,
|
|
87
|
+
type: DataType.DATE
|
|
88
|
+
})
|
|
89
|
+
declare createdDate?: Date;
|
|
90
|
+
|
|
91
|
+
@Column({
|
|
92
|
+
field: "updated_by",
|
|
93
|
+
allowNull: true,
|
|
94
|
+
type: DataType.STRING(60)
|
|
95
|
+
})
|
|
96
|
+
declare updatedBy?: string;
|
|
97
|
+
|
|
98
|
+
@Column({
|
|
99
|
+
field: "updated_date",
|
|
100
|
+
allowNull: true,
|
|
101
|
+
type: DataType.DATE
|
|
102
|
+
})
|
|
103
|
+
declare updatedDate?: Date;
|
|
104
|
+
|
|
105
|
+
@HasMany(() => mdInformationIndex, {
|
|
106
|
+
sourceKey: "id"
|
|
107
|
+
})
|
|
108
|
+
declare mdInformationIndices?: mdInformationIndex[];
|
|
109
|
+
|
|
110
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
|
|
3
|
+
interface appBlessingsAttributes {
|
|
4
|
+
id?: number;
|
|
5
|
+
uuid?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
detail?: string;
|
|
8
|
+
words?: string;
|
|
9
|
+
status?: number;
|
|
10
|
+
hasExpire?: number;
|
|
11
|
+
startDate?: Date;
|
|
12
|
+
expireDate?: Date;
|
|
13
|
+
createdBy?: string;
|
|
14
|
+
createdDate?: Date;
|
|
15
|
+
updatedBy?: string;
|
|
16
|
+
updatedDate?: Date;
|
|
17
|
+
}
|
|
18
|
+
declare class appBlessings extends Model<appBlessingsAttributes, appBlessingsAttributes> implements appBlessingsAttributes {
|
|
19
|
+
id?: number;
|
|
20
|
+
uuid?: string;
|
|
21
|
+
title?: string;
|
|
22
|
+
detail?: string;
|
|
23
|
+
words?: string;
|
|
24
|
+
status?: 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
|
+
export { appBlessings, type appBlessingsAttributes };
|
|
@@ -0,0 +1,132 @@
|
|
|
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/appBlessings.ts
|
|
29
|
+
var appBlessings_exports = {};
|
|
30
|
+
__export(appBlessings_exports, {
|
|
31
|
+
appBlessings: () => appBlessings
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(appBlessings_exports);
|
|
34
|
+
var import_sequelize_typescript = require("sequelize-typescript");
|
|
35
|
+
var appBlessings = 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
|
+
], appBlessings.prototype, "id", 2);
|
|
44
|
+
__decorateClass([
|
|
45
|
+
(0, import_sequelize_typescript.Column)({
|
|
46
|
+
allowNull: true,
|
|
47
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
48
|
+
})
|
|
49
|
+
], appBlessings.prototype, "uuid", 2);
|
|
50
|
+
__decorateClass([
|
|
51
|
+
(0, import_sequelize_typescript.Column)({
|
|
52
|
+
allowNull: true,
|
|
53
|
+
type: import_sequelize_typescript.DataType.STRING(255)
|
|
54
|
+
})
|
|
55
|
+
], appBlessings.prototype, "title", 2);
|
|
56
|
+
__decorateClass([
|
|
57
|
+
(0, import_sequelize_typescript.Column)({
|
|
58
|
+
allowNull: true,
|
|
59
|
+
type: import_sequelize_typescript.DataType.STRING
|
|
60
|
+
})
|
|
61
|
+
], appBlessings.prototype, "detail", 2);
|
|
62
|
+
__decorateClass([
|
|
63
|
+
(0, import_sequelize_typescript.Column)({
|
|
64
|
+
allowNull: true,
|
|
65
|
+
type: import_sequelize_typescript.DataType.STRING
|
|
66
|
+
})
|
|
67
|
+
], appBlessings.prototype, "words", 2);
|
|
68
|
+
__decorateClass([
|
|
69
|
+
(0, import_sequelize_typescript.Column)({
|
|
70
|
+
allowNull: true,
|
|
71
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
72
|
+
})
|
|
73
|
+
], appBlessings.prototype, "status", 2);
|
|
74
|
+
__decorateClass([
|
|
75
|
+
(0, import_sequelize_typescript.Column)({
|
|
76
|
+
field: "has_expire",
|
|
77
|
+
allowNull: true,
|
|
78
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
79
|
+
})
|
|
80
|
+
], appBlessings.prototype, "hasExpire", 2);
|
|
81
|
+
__decorateClass([
|
|
82
|
+
(0, import_sequelize_typescript.Column)({
|
|
83
|
+
field: "start_date",
|
|
84
|
+
allowNull: true,
|
|
85
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
86
|
+
})
|
|
87
|
+
], appBlessings.prototype, "startDate", 2);
|
|
88
|
+
__decorateClass([
|
|
89
|
+
(0, import_sequelize_typescript.Column)({
|
|
90
|
+
field: "expire_date",
|
|
91
|
+
allowNull: true,
|
|
92
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
93
|
+
})
|
|
94
|
+
], appBlessings.prototype, "expireDate", 2);
|
|
95
|
+
__decorateClass([
|
|
96
|
+
(0, import_sequelize_typescript.Column)({
|
|
97
|
+
field: "created_by",
|
|
98
|
+
allowNull: true,
|
|
99
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
100
|
+
})
|
|
101
|
+
], appBlessings.prototype, "createdBy", 2);
|
|
102
|
+
__decorateClass([
|
|
103
|
+
(0, import_sequelize_typescript.Column)({
|
|
104
|
+
field: "created_date",
|
|
105
|
+
allowNull: true,
|
|
106
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
107
|
+
})
|
|
108
|
+
], appBlessings.prototype, "createdDate", 2);
|
|
109
|
+
__decorateClass([
|
|
110
|
+
(0, import_sequelize_typescript.Column)({
|
|
111
|
+
field: "updated_by",
|
|
112
|
+
allowNull: true,
|
|
113
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
114
|
+
})
|
|
115
|
+
], appBlessings.prototype, "updatedBy", 2);
|
|
116
|
+
__decorateClass([
|
|
117
|
+
(0, import_sequelize_typescript.Column)({
|
|
118
|
+
field: "updated_date",
|
|
119
|
+
allowNull: true,
|
|
120
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
121
|
+
})
|
|
122
|
+
], appBlessings.prototype, "updatedDate", 2);
|
|
123
|
+
appBlessings = __decorateClass([
|
|
124
|
+
(0, import_sequelize_typescript.Table)({
|
|
125
|
+
tableName: "app_blessings",
|
|
126
|
+
timestamps: false
|
|
127
|
+
})
|
|
128
|
+
], appBlessings);
|
|
129
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
130
|
+
0 && (module.exports = {
|
|
131
|
+
appBlessings
|
|
132
|
+
});
|