@admc-go-th/admc-library 1.0.75 → 1.0.78
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/appBlessings-peNBIrhQ.d.ts +61 -0
- package/databases/schema/appBlessings.ts +119 -0
- package/databases/schema/appBlessingsTransaction.ts +96 -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 +2 -0
- package/databases/tables/appBlessings.js +221 -0
- package/databases/tables/appBlessingsTransaction.d.ts +2 -0
- package/databases/tables/appBlessingsTransaction.js +221 -0
- package/databases/tables/index.d.ts +2 -0
- package/databases/tables/index.js +2269 -1792
- 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,61 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
|
|
3
|
+
interface appBlessingsTransactionAttributes {
|
|
4
|
+
id?: number;
|
|
5
|
+
blessingsId?: number;
|
|
6
|
+
fullname?: string;
|
|
7
|
+
words?: string;
|
|
8
|
+
ipAddress?: string;
|
|
9
|
+
status?: number;
|
|
10
|
+
createdBy?: string;
|
|
11
|
+
createdDate?: Date;
|
|
12
|
+
updatedBy?: string;
|
|
13
|
+
updatedDate?: Date;
|
|
14
|
+
}
|
|
15
|
+
declare class appBlessingsTransaction extends Model<appBlessingsTransactionAttributes, appBlessingsTransactionAttributes> implements appBlessingsTransactionAttributes {
|
|
16
|
+
id?: number;
|
|
17
|
+
blessingsId?: number;
|
|
18
|
+
fullname?: string;
|
|
19
|
+
words?: string;
|
|
20
|
+
ipAddress?: string;
|
|
21
|
+
status?: number;
|
|
22
|
+
createdBy?: string;
|
|
23
|
+
createdDate?: Date;
|
|
24
|
+
updatedBy?: string;
|
|
25
|
+
updatedDate?: Date;
|
|
26
|
+
appBlessing?: appBlessings;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
interface appBlessingsAttributes {
|
|
30
|
+
id?: number;
|
|
31
|
+
uuid?: string;
|
|
32
|
+
title?: string;
|
|
33
|
+
detail?: string;
|
|
34
|
+
words?: string;
|
|
35
|
+
status?: number;
|
|
36
|
+
hasExpire?: number;
|
|
37
|
+
startDate?: Date;
|
|
38
|
+
expireDate?: Date;
|
|
39
|
+
createdBy?: string;
|
|
40
|
+
createdDate?: Date;
|
|
41
|
+
updatedBy?: string;
|
|
42
|
+
updatedDate?: Date;
|
|
43
|
+
}
|
|
44
|
+
declare class appBlessings extends Model<appBlessingsAttributes, appBlessingsAttributes> implements appBlessingsAttributes {
|
|
45
|
+
id?: number;
|
|
46
|
+
uuid?: string;
|
|
47
|
+
title?: string;
|
|
48
|
+
detail?: string;
|
|
49
|
+
words?: string;
|
|
50
|
+
status?: number;
|
|
51
|
+
hasExpire?: number;
|
|
52
|
+
startDate?: Date;
|
|
53
|
+
expireDate?: Date;
|
|
54
|
+
createdBy?: string;
|
|
55
|
+
createdDate?: Date;
|
|
56
|
+
updatedBy?: string;
|
|
57
|
+
updatedDate?: Date;
|
|
58
|
+
appBlessingsTransactions?: appBlessingsTransaction[];
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export { type appBlessingsAttributes as a, appBlessings as b, type appBlessingsTransactionAttributes as c, appBlessingsTransaction as d };
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Model, Table, Column, DataType, Index, Sequelize, ForeignKey, HasMany
|
|
3
|
+
} from "sequelize-typescript";
|
|
4
|
+
import { appBlessingsTransaction } from "./appBlessingsTransaction";
|
|
5
|
+
|
|
6
|
+
export interface appBlessingsAttributes {
|
|
7
|
+
id?: number;
|
|
8
|
+
uuid?: string;
|
|
9
|
+
title?: string;
|
|
10
|
+
detail?: string;
|
|
11
|
+
words?: string;
|
|
12
|
+
status?: number;
|
|
13
|
+
hasExpire?: number;
|
|
14
|
+
startDate?: Date;
|
|
15
|
+
expireDate?: Date;
|
|
16
|
+
createdBy?: string;
|
|
17
|
+
createdDate?: Date;
|
|
18
|
+
updatedBy?: string;
|
|
19
|
+
updatedDate?: Date;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@Table({
|
|
23
|
+
tableName: "app_blessings",
|
|
24
|
+
timestamps: false
|
|
25
|
+
})
|
|
26
|
+
export class appBlessings extends Model<appBlessingsAttributes, appBlessingsAttributes> implements appBlessingsAttributes {
|
|
27
|
+
|
|
28
|
+
@Column({
|
|
29
|
+
primaryKey: true,
|
|
30
|
+
autoIncrement: true,
|
|
31
|
+
type: DataType.INTEGER
|
|
32
|
+
})
|
|
33
|
+
declare id?: number;
|
|
34
|
+
|
|
35
|
+
@Column({
|
|
36
|
+
allowNull: true,
|
|
37
|
+
type: DataType.STRING(60)
|
|
38
|
+
})
|
|
39
|
+
declare uuid?: string;
|
|
40
|
+
|
|
41
|
+
@Column({
|
|
42
|
+
allowNull: true,
|
|
43
|
+
type: DataType.STRING(255)
|
|
44
|
+
})
|
|
45
|
+
declare title?: string;
|
|
46
|
+
|
|
47
|
+
@Column({
|
|
48
|
+
allowNull: true,
|
|
49
|
+
type: DataType.STRING
|
|
50
|
+
})
|
|
51
|
+
declare detail?: string;
|
|
52
|
+
|
|
53
|
+
@Column({
|
|
54
|
+
allowNull: true,
|
|
55
|
+
type: DataType.STRING
|
|
56
|
+
})
|
|
57
|
+
declare words?: string;
|
|
58
|
+
|
|
59
|
+
@Column({
|
|
60
|
+
allowNull: true,
|
|
61
|
+
type: DataType.INTEGER
|
|
62
|
+
})
|
|
63
|
+
declare status?: number;
|
|
64
|
+
|
|
65
|
+
@Column({
|
|
66
|
+
field: "has_expire",
|
|
67
|
+
allowNull: true,
|
|
68
|
+
type: DataType.INTEGER
|
|
69
|
+
})
|
|
70
|
+
declare hasExpire?: number;
|
|
71
|
+
|
|
72
|
+
@Column({
|
|
73
|
+
field: "start_date",
|
|
74
|
+
allowNull: true,
|
|
75
|
+
type: DataType.DATE
|
|
76
|
+
})
|
|
77
|
+
declare startDate?: Date;
|
|
78
|
+
|
|
79
|
+
@Column({
|
|
80
|
+
field: "expire_date",
|
|
81
|
+
allowNull: true,
|
|
82
|
+
type: DataType.DATE
|
|
83
|
+
})
|
|
84
|
+
declare expireDate?: Date;
|
|
85
|
+
|
|
86
|
+
@Column({
|
|
87
|
+
field: "created_by",
|
|
88
|
+
allowNull: true,
|
|
89
|
+
type: DataType.STRING(60)
|
|
90
|
+
})
|
|
91
|
+
declare createdBy?: string;
|
|
92
|
+
|
|
93
|
+
@Column({
|
|
94
|
+
field: "created_date",
|
|
95
|
+
allowNull: true,
|
|
96
|
+
type: DataType.DATE
|
|
97
|
+
})
|
|
98
|
+
declare createdDate?: Date;
|
|
99
|
+
|
|
100
|
+
@Column({
|
|
101
|
+
field: "updated_by",
|
|
102
|
+
allowNull: true,
|
|
103
|
+
type: DataType.STRING(60)
|
|
104
|
+
})
|
|
105
|
+
declare updatedBy?: string;
|
|
106
|
+
|
|
107
|
+
@Column({
|
|
108
|
+
field: "updated_date",
|
|
109
|
+
allowNull: true,
|
|
110
|
+
type: DataType.DATE
|
|
111
|
+
})
|
|
112
|
+
declare updatedDate?: Date;
|
|
113
|
+
|
|
114
|
+
@HasMany(() => appBlessingsTransaction, {
|
|
115
|
+
sourceKey: "id"
|
|
116
|
+
})
|
|
117
|
+
declare appBlessingsTransactions?: appBlessingsTransaction[];
|
|
118
|
+
|
|
119
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Model, Table, Column, DataType, Index, Sequelize, ForeignKey, BelongsTo
|
|
3
|
+
} from "sequelize-typescript";
|
|
4
|
+
import { appBlessings } from "./appBlessings";
|
|
5
|
+
|
|
6
|
+
export interface appBlessingsTransactionAttributes {
|
|
7
|
+
id?: number;
|
|
8
|
+
blessingsId?: number;
|
|
9
|
+
fullname?: string;
|
|
10
|
+
words?: string;
|
|
11
|
+
ipAddress?: string;
|
|
12
|
+
status?: number;
|
|
13
|
+
createdBy?: string;
|
|
14
|
+
createdDate?: Date;
|
|
15
|
+
updatedBy?: string;
|
|
16
|
+
updatedDate?: Date;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@Table({
|
|
20
|
+
tableName: "app_blessings_transaction",
|
|
21
|
+
timestamps: false
|
|
22
|
+
})
|
|
23
|
+
export class appBlessingsTransaction extends Model<appBlessingsTransactionAttributes, appBlessingsTransactionAttributes> implements appBlessingsTransactionAttributes {
|
|
24
|
+
|
|
25
|
+
@Column({
|
|
26
|
+
primaryKey: true,
|
|
27
|
+
autoIncrement: true,
|
|
28
|
+
type: DataType.INTEGER
|
|
29
|
+
})
|
|
30
|
+
declare id?: number;
|
|
31
|
+
|
|
32
|
+
@ForeignKey(() => appBlessings)
|
|
33
|
+
@Column({
|
|
34
|
+
field: "blessings_id",
|
|
35
|
+
allowNull: true,
|
|
36
|
+
type: DataType.INTEGER
|
|
37
|
+
})
|
|
38
|
+
declare blessingsId?: number;
|
|
39
|
+
|
|
40
|
+
@Column({
|
|
41
|
+
allowNull: true,
|
|
42
|
+
type: DataType.STRING(255)
|
|
43
|
+
})
|
|
44
|
+
declare fullname?: string;
|
|
45
|
+
|
|
46
|
+
@Column({
|
|
47
|
+
allowNull: true,
|
|
48
|
+
type: DataType.STRING(255)
|
|
49
|
+
})
|
|
50
|
+
declare words?: string;
|
|
51
|
+
|
|
52
|
+
@Column({
|
|
53
|
+
field: "ip_address",
|
|
54
|
+
allowNull: true,
|
|
55
|
+
type: DataType.STRING(30)
|
|
56
|
+
})
|
|
57
|
+
declare ipAddress?: string;
|
|
58
|
+
|
|
59
|
+
@Column({
|
|
60
|
+
allowNull: true,
|
|
61
|
+
type: DataType.INTEGER
|
|
62
|
+
})
|
|
63
|
+
declare status?: number;
|
|
64
|
+
|
|
65
|
+
@Column({
|
|
66
|
+
field: "created_by",
|
|
67
|
+
allowNull: true,
|
|
68
|
+
type: DataType.STRING(60)
|
|
69
|
+
})
|
|
70
|
+
declare createdBy?: string;
|
|
71
|
+
|
|
72
|
+
@Column({
|
|
73
|
+
field: "created_date",
|
|
74
|
+
allowNull: true,
|
|
75
|
+
type: DataType.DATE
|
|
76
|
+
})
|
|
77
|
+
declare createdDate?: Date;
|
|
78
|
+
|
|
79
|
+
@Column({
|
|
80
|
+
field: "updated_by",
|
|
81
|
+
allowNull: true,
|
|
82
|
+
type: DataType.STRING(60)
|
|
83
|
+
})
|
|
84
|
+
declare updatedBy?: string;
|
|
85
|
+
|
|
86
|
+
@Column({
|
|
87
|
+
field: "updated_date",
|
|
88
|
+
allowNull: true,
|
|
89
|
+
type: DataType.DATE
|
|
90
|
+
})
|
|
91
|
+
declare updatedDate?: Date;
|
|
92
|
+
|
|
93
|
+
@BelongsTo(() => appBlessings)
|
|
94
|
+
declare appBlessing?: appBlessings;
|
|
95
|
+
|
|
96
|
+
}
|
|
@@ -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
|
+
}
|