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