@admc-go-th/admc-library 1.0.71 → 1.0.73
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/index.ts +2 -0
- package/databases/schema/mdTranslate.ts +196 -0
- package/databases/schema/mdTranslateGroup.ts +104 -0
- package/databases/tables/index.d.ts +2 -0
- package/databases/tables/index.js +452 -190
- package/databases/tables/mdTranslate.d.ts +56 -0
- package/databases/tables/mdTranslate.js +204 -0
- package/databases/tables/mdTranslateGroup.d.ts +32 -0
- package/databases/tables/mdTranslateGroup.js +124 -0
- package/package.json +1 -1
|
@@ -28,6 +28,8 @@ export * from "./mdNewsGroup";
|
|
|
28
28
|
export * from "./mdPopup";
|
|
29
29
|
export * from "./mdQuestionnaire";
|
|
30
30
|
export * from "./mdSetting";
|
|
31
|
+
export * from "./mdTranslate";
|
|
32
|
+
export * from "./mdTranslateGroup";
|
|
31
33
|
export * from "./mdWords";
|
|
32
34
|
export * from "./member";
|
|
33
35
|
export * from "./menu";
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Model, Table, Column, DataType, Index, Sequelize, ForeignKey
|
|
3
|
+
} from "sequelize-typescript";
|
|
4
|
+
|
|
5
|
+
export interface mdTranslateAttributes {
|
|
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
|
+
imageCover?: string;
|
|
18
|
+
attachments?: object;
|
|
19
|
+
highlight?: number;
|
|
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
|
+
|
|
32
|
+
@Table({
|
|
33
|
+
tableName: "md_translate",
|
|
34
|
+
timestamps: false
|
|
35
|
+
})
|
|
36
|
+
export class mdTranslate extends Model<mdTranslateAttributes, mdTranslateAttributes> implements mdTranslateAttributes {
|
|
37
|
+
|
|
38
|
+
@Column({
|
|
39
|
+
primaryKey: true,
|
|
40
|
+
autoIncrement: true,
|
|
41
|
+
type: DataType.INTEGER
|
|
42
|
+
})
|
|
43
|
+
declare id?: number;
|
|
44
|
+
|
|
45
|
+
@Column({
|
|
46
|
+
allowNull: true,
|
|
47
|
+
type: DataType.STRING(60)
|
|
48
|
+
})
|
|
49
|
+
declare uuid?: string;
|
|
50
|
+
|
|
51
|
+
@Column({
|
|
52
|
+
field: "key_name",
|
|
53
|
+
allowNull: true,
|
|
54
|
+
type: DataType.STRING(100)
|
|
55
|
+
})
|
|
56
|
+
declare keyName?: string;
|
|
57
|
+
|
|
58
|
+
@Column({
|
|
59
|
+
field: "group_id",
|
|
60
|
+
allowNull: true,
|
|
61
|
+
type: DataType.INTEGER
|
|
62
|
+
})
|
|
63
|
+
declare groupId?: number;
|
|
64
|
+
|
|
65
|
+
@Column({
|
|
66
|
+
field: "user_id",
|
|
67
|
+
type: DataType.INTEGER
|
|
68
|
+
})
|
|
69
|
+
declare userId: number;
|
|
70
|
+
|
|
71
|
+
@Column({
|
|
72
|
+
allowNull: true,
|
|
73
|
+
type: DataType.STRING(255)
|
|
74
|
+
})
|
|
75
|
+
declare title?: string;
|
|
76
|
+
|
|
77
|
+
@Column({
|
|
78
|
+
allowNull: true,
|
|
79
|
+
type: DataType.STRING
|
|
80
|
+
})
|
|
81
|
+
declare description?: string;
|
|
82
|
+
|
|
83
|
+
@Column({
|
|
84
|
+
allowNull: true,
|
|
85
|
+
type: DataType.STRING
|
|
86
|
+
})
|
|
87
|
+
declare detail?: string;
|
|
88
|
+
|
|
89
|
+
@Column({
|
|
90
|
+
field: "meta_title",
|
|
91
|
+
allowNull: true,
|
|
92
|
+
type: DataType.STRING(255)
|
|
93
|
+
})
|
|
94
|
+
declare metaTitle?: string;
|
|
95
|
+
|
|
96
|
+
@Column({
|
|
97
|
+
field: "meta_keyword",
|
|
98
|
+
allowNull: true,
|
|
99
|
+
type: DataType.STRING(255)
|
|
100
|
+
})
|
|
101
|
+
declare metaKeyword?: string;
|
|
102
|
+
|
|
103
|
+
@Column({
|
|
104
|
+
field: "meta_description",
|
|
105
|
+
allowNull: true,
|
|
106
|
+
type: DataType.STRING(255)
|
|
107
|
+
})
|
|
108
|
+
declare metaDescription?: string;
|
|
109
|
+
|
|
110
|
+
@Column({
|
|
111
|
+
field: "image_cover",
|
|
112
|
+
allowNull: true,
|
|
113
|
+
type: DataType.STRING(60)
|
|
114
|
+
})
|
|
115
|
+
declare imageCover?: string;
|
|
116
|
+
|
|
117
|
+
@Column({
|
|
118
|
+
allowNull: true,
|
|
119
|
+
type: DataType.JSON
|
|
120
|
+
})
|
|
121
|
+
declare attachments?: object;
|
|
122
|
+
|
|
123
|
+
@Column({
|
|
124
|
+
allowNull: true,
|
|
125
|
+
type: DataType.INTEGER
|
|
126
|
+
})
|
|
127
|
+
declare highlight?: number;
|
|
128
|
+
|
|
129
|
+
@Column({
|
|
130
|
+
allowNull: true,
|
|
131
|
+
type: DataType.INTEGER
|
|
132
|
+
})
|
|
133
|
+
declare sort?: number;
|
|
134
|
+
|
|
135
|
+
@Column({
|
|
136
|
+
allowNull: true,
|
|
137
|
+
type: DataType.INTEGER
|
|
138
|
+
})
|
|
139
|
+
declare publish?: number;
|
|
140
|
+
|
|
141
|
+
@Column({
|
|
142
|
+
allowNull: true,
|
|
143
|
+
type: DataType.INTEGER
|
|
144
|
+
})
|
|
145
|
+
declare status?: number;
|
|
146
|
+
|
|
147
|
+
@Column({
|
|
148
|
+
field: "has_expire",
|
|
149
|
+
allowNull: true,
|
|
150
|
+
type: DataType.INTEGER
|
|
151
|
+
})
|
|
152
|
+
declare hasExpire?: number;
|
|
153
|
+
|
|
154
|
+
@Column({
|
|
155
|
+
field: "start_date",
|
|
156
|
+
allowNull: true,
|
|
157
|
+
type: DataType.DATE
|
|
158
|
+
})
|
|
159
|
+
declare startDate?: Date;
|
|
160
|
+
|
|
161
|
+
@Column({
|
|
162
|
+
field: "expire_date",
|
|
163
|
+
allowNull: true,
|
|
164
|
+
type: DataType.DATE
|
|
165
|
+
})
|
|
166
|
+
declare expireDate?: Date;
|
|
167
|
+
|
|
168
|
+
@Column({
|
|
169
|
+
field: "created_by",
|
|
170
|
+
allowNull: true,
|
|
171
|
+
type: DataType.STRING(60)
|
|
172
|
+
})
|
|
173
|
+
declare createdBy?: string;
|
|
174
|
+
|
|
175
|
+
@Column({
|
|
176
|
+
field: "created_date",
|
|
177
|
+
allowNull: true,
|
|
178
|
+
type: DataType.DATE
|
|
179
|
+
})
|
|
180
|
+
declare createdDate?: Date;
|
|
181
|
+
|
|
182
|
+
@Column({
|
|
183
|
+
field: "updated_by",
|
|
184
|
+
allowNull: true,
|
|
185
|
+
type: DataType.STRING(60)
|
|
186
|
+
})
|
|
187
|
+
declare updatedBy?: string;
|
|
188
|
+
|
|
189
|
+
@Column({
|
|
190
|
+
field: "updated_date",
|
|
191
|
+
allowNull: true,
|
|
192
|
+
type: DataType.DATE
|
|
193
|
+
})
|
|
194
|
+
declare updatedDate?: Date;
|
|
195
|
+
|
|
196
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Model, Table, Column, DataType, Index, Sequelize, ForeignKey
|
|
3
|
+
} from "sequelize-typescript";
|
|
4
|
+
|
|
5
|
+
export interface mdTranslateGroupAttributes {
|
|
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: "md_translate_group",
|
|
22
|
+
timestamps: false
|
|
23
|
+
})
|
|
24
|
+
export class mdTranslateGroup extends Model<mdTranslateGroupAttributes, mdTranslateGroupAttributes> implements mdTranslateGroupAttributes {
|
|
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
|
+
}
|
|
@@ -16,6 +16,8 @@ export { a as mdLink, m as mdLinkAttributes, c as mdLinkGroup, b as mdLinkGroupA
|
|
|
16
16
|
export { a as mdNews, m as mdNewsAttributes, c as mdNewsGroup, b as mdNewsGroupAttributes } from '../../mdNews-CqZ9kQ8-.js';
|
|
17
17
|
export { mdPopup, mdPopupAttributes } from './mdPopup.js';
|
|
18
18
|
export { mdSetting, mdSettingAttributes } from './mdSetting.js';
|
|
19
|
+
export { mdTranslate, mdTranslateAttributes } from './mdTranslate.js';
|
|
20
|
+
export { mdTranslateGroup, mdTranslateGroupAttributes } from './mdTranslateGroup.js';
|
|
19
21
|
export { mdWords, mdWordsAttributes } from './mdWords.js';
|
|
20
22
|
export { member, memberAttributes } from './member.js';
|
|
21
23
|
export { oauthAccessToken, oauthAccessTokenAttributes } from './oauthAccessToken.js';
|