@admc-go-th/admc-library 1.0.119 → 1.0.120

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.
@@ -15,6 +15,7 @@ export * from "./contentGuidelinesTour";
15
15
  export * from "./files";
16
16
  export * from "./helper";
17
17
  export * from "./logs";
18
+ export * from "./mdApplication";
18
19
  export * from "./mdBanner";
19
20
  export * from "./mdCmsSingle";
20
21
  export * from "./mdConfiguration";
@@ -0,0 +1,208 @@
1
+ import {
2
+ Model, Table, Column, DataType, Index, Sequelize, ForeignKey
3
+ } from "sequelize-typescript";
4
+
5
+ export interface mdApplicationAttributes {
6
+ id?: number;
7
+ uuid?: string;
8
+ keyName?: string;
9
+ title?: string;
10
+ description?: string;
11
+ imageCover?: string;
12
+ fileUuid?: string;
13
+ attachments?: object;
14
+ url1?: string;
15
+ target1?: string;
16
+ url2?: string;
17
+ target2?: any;
18
+ url3?: string;
19
+ target3?: string;
20
+ url4?: string;
21
+ target4?: string;
22
+ sort?: number;
23
+ status?: number;
24
+ view?: 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: "md_application",
36
+ timestamps: false
37
+ })
38
+ export class mdApplication extends Model<mdApplicationAttributes, mdApplicationAttributes> implements mdApplicationAttributes {
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
+ allowNull: true,
62
+ type: DataType.STRING(255)
63
+ })
64
+ declare title?: string;
65
+
66
+ @Column({
67
+ allowNull: true,
68
+ type: DataType.STRING
69
+ })
70
+ declare description?: string;
71
+
72
+ @Column({
73
+ field: "image_cover",
74
+ allowNull: true,
75
+ type: DataType.STRING(255)
76
+ })
77
+ declare imageCover?: string;
78
+
79
+ @Column({
80
+ field: "file_uuid",
81
+ allowNull: true,
82
+ type: DataType.STRING(60)
83
+ })
84
+ declare fileUuid?: string;
85
+
86
+ @Column({
87
+ allowNull: true,
88
+ type: DataType.JSON
89
+ })
90
+ declare attachments?: object;
91
+
92
+ @Column({
93
+ allowNull: true,
94
+ type: DataType.STRING(255),
95
+ comment: "google play"
96
+ })
97
+ declare url1?: string;
98
+
99
+ @Column({
100
+ allowNull: true,
101
+ type: DataType.STRING(10)
102
+ })
103
+ declare target1?: string;
104
+
105
+ @Column({
106
+ allowNull: true,
107
+ type: DataType.STRING(255),
108
+ comment: "app store"
109
+ })
110
+ declare url2?: string;
111
+
112
+ @Column({
113
+ allowNull: true
114
+ })
115
+ declare target2?: any;
116
+
117
+ @Column({
118
+ allowNull: true,
119
+ type: DataType.STRING(255)
120
+ })
121
+ declare url3?: string;
122
+
123
+ @Column({
124
+ allowNull: true,
125
+ type: DataType.STRING(10)
126
+ })
127
+ declare target3?: string;
128
+
129
+ @Column({
130
+ allowNull: true,
131
+ type: DataType.STRING(255)
132
+ })
133
+ declare url4?: string;
134
+
135
+ @Column({
136
+ allowNull: true,
137
+ type: DataType.STRING(10)
138
+ })
139
+ declare target4?: string;
140
+
141
+ @Column({
142
+ allowNull: true,
143
+ type: DataType.INTEGER
144
+ })
145
+ declare sort?: number;
146
+
147
+ @Column({
148
+ allowNull: true,
149
+ type: DataType.INTEGER
150
+ })
151
+ declare status?: number;
152
+
153
+ @Column({
154
+ allowNull: true,
155
+ type: DataType.INTEGER
156
+ })
157
+ declare view?: number;
158
+
159
+ @Column({
160
+ field: "has_expire",
161
+ allowNull: true,
162
+ type: DataType.INTEGER
163
+ })
164
+ declare hasExpire?: number;
165
+
166
+ @Column({
167
+ field: "start_date",
168
+ allowNull: true,
169
+ type: DataType.DATE
170
+ })
171
+ declare startDate?: Date;
172
+
173
+ @Column({
174
+ field: "expire_date",
175
+ allowNull: true,
176
+ type: DataType.DATE
177
+ })
178
+ declare expireDate?: Date;
179
+
180
+ @Column({
181
+ field: "created_by",
182
+ allowNull: true,
183
+ type: DataType.STRING(60)
184
+ })
185
+ declare createdBy?: string;
186
+
187
+ @Column({
188
+ field: "created_date",
189
+ allowNull: true,
190
+ type: DataType.DATE
191
+ })
192
+ declare createdDate?: Date;
193
+
194
+ @Column({
195
+ field: "updated_by",
196
+ allowNull: true,
197
+ type: DataType.STRING(60)
198
+ })
199
+ declare updatedBy?: string;
200
+
201
+ @Column({
202
+ field: "updated_date",
203
+ allowNull: true,
204
+ type: DataType.DATE
205
+ })
206
+ declare updatedDate?: Date;
207
+
208
+ }
@@ -10,6 +10,7 @@ export { contentGuidelinesTour, contentGuidelinesTourAttributes } from './conten
10
10
  export { a as files, f as filesAttributes, b as mdBanner, m as mdBannerAttributes } from '../../files-Dp2zDQAj.js';
11
11
  export { helper, helperAttributes } from './helper.js';
12
12
  export { logs, logsAttributes } from './logs.js';
13
+ export { mdApplication, mdApplicationAttributes } from './mdApplication.js';
13
14
  export { mdCmsSingle, mdCmsSingleAttributes } from './mdCmsSingle.js';
14
15
  export { mdConfiguration, mdConfigurationAttributes } from './mdConfiguration.js';
15
16
  export { mdDocumentPdf, mdDocumentPdfAttributes } from './mdDocumentPdf.js';