@admc-go-th/admc-library 1.0.32 → 1.0.33

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.
@@ -7,6 +7,7 @@ export * from "./files";
7
7
  export * from "./mdBanner";
8
8
  export * from "./mdContent";
9
9
  export * from "./mdContentGroup";
10
+ export * from "./mdContentSingle";
10
11
  export * from "./mdDocumentPdf";
11
12
  export * from "./mdDownload";
12
13
  export * from "./mdFaq";
@@ -0,0 +1,182 @@
1
+ import {
2
+ Model, Table, Column, DataType, Index, Sequelize, ForeignKey
3
+ } from "sequelize-typescript";
4
+
5
+ export interface mdContentSingleAttributes {
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?: object;
18
+ imageGallery?: object;
19
+ sort?: number;
20
+ status?: number;
21
+ hasExpire?: number;
22
+ startDate?: Date;
23
+ expireDate?: Date;
24
+ createdBy?: string;
25
+ createdDate?: Date;
26
+ updatedBy?: string;
27
+ updatedDate?: Date;
28
+ }
29
+
30
+ @Table({
31
+ tableName: "md_content_single",
32
+ timestamps: false
33
+ })
34
+ export class mdContentSingle extends Model<mdContentSingleAttributes, mdContentSingleAttributes> implements mdContentSingleAttributes {
35
+
36
+ @Column({
37
+ primaryKey: true,
38
+ autoIncrement: true,
39
+ type: DataType.INTEGER
40
+ })
41
+ declare id?: number;
42
+
43
+ @Column({
44
+ type: DataType.STRING(60)
45
+ })
46
+ declare uuid: string;
47
+
48
+ @Column({
49
+ field: "key_name",
50
+ allowNull: true,
51
+ type: DataType.STRING(100)
52
+ })
53
+ declare keyName?: string;
54
+
55
+ @Column({
56
+ field: "group_id",
57
+ allowNull: true,
58
+ type: DataType.INTEGER
59
+ })
60
+ declare groupId?: number;
61
+
62
+ @Column({
63
+ field: "user_id",
64
+ type: DataType.INTEGER
65
+ })
66
+ declare userId: number;
67
+
68
+ @Column({
69
+ allowNull: true,
70
+ type: DataType.STRING(255)
71
+ })
72
+ declare title?: string;
73
+
74
+ @Column({
75
+ allowNull: true,
76
+ type: DataType.STRING
77
+ })
78
+ declare description?: string;
79
+
80
+ @Column({
81
+ allowNull: true,
82
+ type: DataType.STRING
83
+ })
84
+ declare detail?: string;
85
+
86
+ @Column({
87
+ field: "meta_title",
88
+ allowNull: true,
89
+ type: DataType.STRING(255)
90
+ })
91
+ declare metaTitle?: string;
92
+
93
+ @Column({
94
+ field: "meta_keyword",
95
+ allowNull: true,
96
+ type: DataType.STRING(255)
97
+ })
98
+ declare metaKeyword?: string;
99
+
100
+ @Column({
101
+ field: "meta_description",
102
+ allowNull: true,
103
+ type: DataType.STRING(255)
104
+ })
105
+ declare metaDescription?: string;
106
+
107
+ @Column({
108
+ field: "image_cover",
109
+ allowNull: true,
110
+ type: DataType.JSON
111
+ })
112
+ declare imageCover?: object;
113
+
114
+ @Column({
115
+ field: "image_gallery",
116
+ allowNull: true,
117
+ type: DataType.JSON
118
+ })
119
+ declare imageGallery?: object;
120
+
121
+ @Column({
122
+ allowNull: true,
123
+ type: DataType.INTEGER
124
+ })
125
+ declare sort?: number;
126
+
127
+ @Column({
128
+ allowNull: true,
129
+ type: DataType.INTEGER
130
+ })
131
+ declare status?: number;
132
+
133
+ @Column({
134
+ field: "has_expire",
135
+ allowNull: true,
136
+ type: DataType.INTEGER
137
+ })
138
+ declare hasExpire?: number;
139
+
140
+ @Column({
141
+ field: "start_date",
142
+ allowNull: true,
143
+ type: DataType.DATE
144
+ })
145
+ declare startDate?: Date;
146
+
147
+ @Column({
148
+ field: "expire_date",
149
+ allowNull: true,
150
+ type: DataType.DATE
151
+ })
152
+ declare expireDate?: Date;
153
+
154
+ @Column({
155
+ field: "created_by",
156
+ allowNull: true,
157
+ type: DataType.STRING(60)
158
+ })
159
+ declare createdBy?: string;
160
+
161
+ @Column({
162
+ field: "created_date",
163
+ allowNull: true,
164
+ type: DataType.DATE
165
+ })
166
+ declare createdDate?: Date;
167
+
168
+ @Column({
169
+ field: "updated_by",
170
+ allowNull: true,
171
+ type: DataType.STRING(60)
172
+ })
173
+ declare updatedBy?: string;
174
+
175
+ @Column({
176
+ field: "updated_date",
177
+ allowNull: true,
178
+ type: DataType.DATE
179
+ })
180
+ declare updatedDate?: Date;
181
+
182
+ }
@@ -1,6 +1,7 @@
1
1
  export { b as authAssignment, a as authAssignmentAttributes, d as authRole, c as authRoleAttributes, f as authRoleChild, e as authRoleChildAttributes, h as files, g as filesAttributes, i as mdContent, m as mdContentAttributes, k as mdContentGroup, j as mdContentGroupAttributes, n as mdQuestionnaire, l as mdQuestionnaireAttributes, o as users, u as usersAttributes } from '../../authAssignment-D3CPnPWj.js';
2
2
  export { b as authItem, a as authItemAttributes, d as authItemChild, c as authItemChildAttributes, e as menu, m as menuAttributes, g as msModule, f as msModuleAttributes } from '../../authItem-CLwL7pX_.js';
3
3
  export { mdBanner, mdBannerAttributes } from './mdBanner.js';
4
+ export { mdContentSingle, mdContentSingleAttributes } from './mdContentSingle.js';
4
5
  export { mdDocumentPdf, mdDocumentPdfAttributes } from './mdDocumentPdf.js';
5
6
  export { mdDownload, mdDownloadAttributes } from './mdDownload.js';
6
7
  export { mdFaq, mdFaqAttributes } from './mdFaq.js';