@admc-go-th/admc-library 1.0.71 → 1.0.72

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.
@@ -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,189 @@
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
+ sort?: number;
20
+ publish?: number;
21
+ status?: number;
22
+ hasExpire?: number;
23
+ startDate?: Date;
24
+ expireDate?: Date;
25
+ createdBy?: string;
26
+ createdDate?: Date;
27
+ updatedBy?: string;
28
+ updatedDate?: Date;
29
+ }
30
+
31
+ @Table({
32
+ tableName: "md_translate",
33
+ timestamps: false
34
+ })
35
+ export class mdTranslate extends Model<mdTranslateAttributes, mdTranslateAttributes> implements mdTranslateAttributes {
36
+
37
+ @Column({
38
+ primaryKey: true,
39
+ autoIncrement: true,
40
+ type: DataType.INTEGER
41
+ })
42
+ declare id?: number;
43
+
44
+ @Column({
45
+ allowNull: true,
46
+ type: DataType.STRING(60)
47
+ })
48
+ declare uuid?: string;
49
+
50
+ @Column({
51
+ field: "key_name",
52
+ allowNull: true,
53
+ type: DataType.STRING(100)
54
+ })
55
+ declare keyName?: string;
56
+
57
+ @Column({
58
+ field: "group_id",
59
+ allowNull: true,
60
+ type: DataType.INTEGER
61
+ })
62
+ declare groupId?: number;
63
+
64
+ @Column({
65
+ field: "user_id",
66
+ type: DataType.INTEGER
67
+ })
68
+ declare userId: number;
69
+
70
+ @Column({
71
+ allowNull: true,
72
+ type: DataType.STRING(255)
73
+ })
74
+ declare title?: string;
75
+
76
+ @Column({
77
+ allowNull: true,
78
+ type: DataType.STRING
79
+ })
80
+ declare description?: string;
81
+
82
+ @Column({
83
+ allowNull: true,
84
+ type: DataType.STRING
85
+ })
86
+ declare detail?: string;
87
+
88
+ @Column({
89
+ field: "meta_title",
90
+ allowNull: true,
91
+ type: DataType.STRING(255)
92
+ })
93
+ declare metaTitle?: string;
94
+
95
+ @Column({
96
+ field: "meta_keyword",
97
+ allowNull: true,
98
+ type: DataType.STRING(255)
99
+ })
100
+ declare metaKeyword?: string;
101
+
102
+ @Column({
103
+ field: "meta_description",
104
+ allowNull: true,
105
+ type: DataType.STRING(255)
106
+ })
107
+ declare metaDescription?: string;
108
+
109
+ @Column({
110
+ field: "image_cover",
111
+ allowNull: true,
112
+ type: DataType.STRING(60)
113
+ })
114
+ declare imageCover?: string;
115
+
116
+ @Column({
117
+ allowNull: true,
118
+ type: DataType.JSON
119
+ })
120
+ declare attachments?: object;
121
+
122
+ @Column({
123
+ allowNull: true,
124
+ type: DataType.INTEGER
125
+ })
126
+ declare sort?: number;
127
+
128
+ @Column({
129
+ allowNull: true,
130
+ type: DataType.INTEGER
131
+ })
132
+ declare publish?: number;
133
+
134
+ @Column({
135
+ allowNull: true,
136
+ type: DataType.INTEGER
137
+ })
138
+ declare status?: number;
139
+
140
+ @Column({
141
+ field: "has_expire",
142
+ allowNull: true,
143
+ type: DataType.INTEGER
144
+ })
145
+ declare hasExpire?: number;
146
+
147
+ @Column({
148
+ field: "start_date",
149
+ allowNull: true,
150
+ type: DataType.DATE
151
+ })
152
+ declare startDate?: Date;
153
+
154
+ @Column({
155
+ field: "expire_date",
156
+ allowNull: true,
157
+ type: DataType.DATE
158
+ })
159
+ declare expireDate?: Date;
160
+
161
+ @Column({
162
+ field: "created_by",
163
+ allowNull: true,
164
+ type: DataType.STRING(60)
165
+ })
166
+ declare createdBy?: string;
167
+
168
+ @Column({
169
+ field: "created_date",
170
+ allowNull: true,
171
+ type: DataType.DATE
172
+ })
173
+ declare createdDate?: Date;
174
+
175
+ @Column({
176
+ field: "updated_by",
177
+ allowNull: true,
178
+ type: DataType.STRING(60)
179
+ })
180
+ declare updatedBy?: string;
181
+
182
+ @Column({
183
+ field: "updated_date",
184
+ allowNull: true,
185
+ type: DataType.DATE
186
+ })
187
+ declare updatedDate?: Date;
188
+
189
+ }
@@ -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';