@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.
@@ -0,0 +1,60 @@
1
+ import { Model } from 'sequelize-typescript';
2
+
3
+ interface mdApplicationAttributes {
4
+ id?: number;
5
+ uuid?: string;
6
+ keyName?: string;
7
+ title?: string;
8
+ description?: string;
9
+ imageCover?: string;
10
+ fileUuid?: string;
11
+ attachments?: object;
12
+ url1?: string;
13
+ target1?: string;
14
+ url2?: string;
15
+ target2?: any;
16
+ url3?: string;
17
+ target3?: string;
18
+ url4?: string;
19
+ target4?: string;
20
+ sort?: number;
21
+ status?: number;
22
+ view?: 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 mdApplication extends Model<mdApplicationAttributes, mdApplicationAttributes> implements mdApplicationAttributes {
32
+ id?: number;
33
+ uuid?: string;
34
+ keyName?: string;
35
+ title?: string;
36
+ description?: string;
37
+ imageCover?: string;
38
+ fileUuid?: string;
39
+ attachments?: object;
40
+ url1?: string;
41
+ target1?: string;
42
+ url2?: string;
43
+ target2?: any;
44
+ url3?: string;
45
+ target3?: string;
46
+ url4?: string;
47
+ target4?: string;
48
+ sort?: number;
49
+ status?: number;
50
+ view?: 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 { mdApplication, type mdApplicationAttributes };
@@ -0,0 +1,214 @@
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/mdApplication.ts
29
+ var mdApplication_exports = {};
30
+ __export(mdApplication_exports, {
31
+ mdApplication: () => mdApplication
32
+ });
33
+ module.exports = __toCommonJS(mdApplication_exports);
34
+ var import_sequelize_typescript = require("sequelize-typescript");
35
+ var mdApplication = 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
+ ], mdApplication.prototype, "id", 2);
44
+ __decorateClass([
45
+ (0, import_sequelize_typescript.Column)({
46
+ allowNull: true,
47
+ type: import_sequelize_typescript.DataType.STRING(60)
48
+ })
49
+ ], mdApplication.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
+ ], mdApplication.prototype, "keyName", 2);
57
+ __decorateClass([
58
+ (0, import_sequelize_typescript.Column)({
59
+ allowNull: true,
60
+ type: import_sequelize_typescript.DataType.STRING(255)
61
+ })
62
+ ], mdApplication.prototype, "title", 2);
63
+ __decorateClass([
64
+ (0, import_sequelize_typescript.Column)({
65
+ allowNull: true,
66
+ type: import_sequelize_typescript.DataType.STRING
67
+ })
68
+ ], mdApplication.prototype, "description", 2);
69
+ __decorateClass([
70
+ (0, import_sequelize_typescript.Column)({
71
+ field: "image_cover",
72
+ allowNull: true,
73
+ type: import_sequelize_typescript.DataType.STRING(255)
74
+ })
75
+ ], mdApplication.prototype, "imageCover", 2);
76
+ __decorateClass([
77
+ (0, import_sequelize_typescript.Column)({
78
+ field: "file_uuid",
79
+ allowNull: true,
80
+ type: import_sequelize_typescript.DataType.STRING(60)
81
+ })
82
+ ], mdApplication.prototype, "fileUuid", 2);
83
+ __decorateClass([
84
+ (0, import_sequelize_typescript.Column)({
85
+ allowNull: true,
86
+ type: import_sequelize_typescript.DataType.JSON
87
+ })
88
+ ], mdApplication.prototype, "attachments", 2);
89
+ __decorateClass([
90
+ (0, import_sequelize_typescript.Column)({
91
+ allowNull: true,
92
+ type: import_sequelize_typescript.DataType.STRING(255),
93
+ comment: "google play"
94
+ })
95
+ ], mdApplication.prototype, "url1", 2);
96
+ __decorateClass([
97
+ (0, import_sequelize_typescript.Column)({
98
+ allowNull: true,
99
+ type: import_sequelize_typescript.DataType.STRING(10)
100
+ })
101
+ ], mdApplication.prototype, "target1", 2);
102
+ __decorateClass([
103
+ (0, import_sequelize_typescript.Column)({
104
+ allowNull: true,
105
+ type: import_sequelize_typescript.DataType.STRING(255),
106
+ comment: "app store"
107
+ })
108
+ ], mdApplication.prototype, "url2", 2);
109
+ __decorateClass([
110
+ (0, import_sequelize_typescript.Column)({
111
+ allowNull: true
112
+ })
113
+ ], mdApplication.prototype, "target2", 2);
114
+ __decorateClass([
115
+ (0, import_sequelize_typescript.Column)({
116
+ allowNull: true,
117
+ type: import_sequelize_typescript.DataType.STRING(255)
118
+ })
119
+ ], mdApplication.prototype, "url3", 2);
120
+ __decorateClass([
121
+ (0, import_sequelize_typescript.Column)({
122
+ allowNull: true,
123
+ type: import_sequelize_typescript.DataType.STRING(10)
124
+ })
125
+ ], mdApplication.prototype, "target3", 2);
126
+ __decorateClass([
127
+ (0, import_sequelize_typescript.Column)({
128
+ allowNull: true,
129
+ type: import_sequelize_typescript.DataType.STRING(255)
130
+ })
131
+ ], mdApplication.prototype, "url4", 2);
132
+ __decorateClass([
133
+ (0, import_sequelize_typescript.Column)({
134
+ allowNull: true,
135
+ type: import_sequelize_typescript.DataType.STRING(10)
136
+ })
137
+ ], mdApplication.prototype, "target4", 2);
138
+ __decorateClass([
139
+ (0, import_sequelize_typescript.Column)({
140
+ allowNull: true,
141
+ type: import_sequelize_typescript.DataType.INTEGER
142
+ })
143
+ ], mdApplication.prototype, "sort", 2);
144
+ __decorateClass([
145
+ (0, import_sequelize_typescript.Column)({
146
+ allowNull: true,
147
+ type: import_sequelize_typescript.DataType.INTEGER
148
+ })
149
+ ], mdApplication.prototype, "status", 2);
150
+ __decorateClass([
151
+ (0, import_sequelize_typescript.Column)({
152
+ allowNull: true,
153
+ type: import_sequelize_typescript.DataType.INTEGER
154
+ })
155
+ ], mdApplication.prototype, "view", 2);
156
+ __decorateClass([
157
+ (0, import_sequelize_typescript.Column)({
158
+ field: "has_expire",
159
+ allowNull: true,
160
+ type: import_sequelize_typescript.DataType.INTEGER
161
+ })
162
+ ], mdApplication.prototype, "hasExpire", 2);
163
+ __decorateClass([
164
+ (0, import_sequelize_typescript.Column)({
165
+ field: "start_date",
166
+ allowNull: true,
167
+ type: import_sequelize_typescript.DataType.DATE
168
+ })
169
+ ], mdApplication.prototype, "startDate", 2);
170
+ __decorateClass([
171
+ (0, import_sequelize_typescript.Column)({
172
+ field: "expire_date",
173
+ allowNull: true,
174
+ type: import_sequelize_typescript.DataType.DATE
175
+ })
176
+ ], mdApplication.prototype, "expireDate", 2);
177
+ __decorateClass([
178
+ (0, import_sequelize_typescript.Column)({
179
+ field: "created_by",
180
+ allowNull: true,
181
+ type: import_sequelize_typescript.DataType.STRING(60)
182
+ })
183
+ ], mdApplication.prototype, "createdBy", 2);
184
+ __decorateClass([
185
+ (0, import_sequelize_typescript.Column)({
186
+ field: "created_date",
187
+ allowNull: true,
188
+ type: import_sequelize_typescript.DataType.DATE
189
+ })
190
+ ], mdApplication.prototype, "createdDate", 2);
191
+ __decorateClass([
192
+ (0, import_sequelize_typescript.Column)({
193
+ field: "updated_by",
194
+ allowNull: true,
195
+ type: import_sequelize_typescript.DataType.STRING(60)
196
+ })
197
+ ], mdApplication.prototype, "updatedBy", 2);
198
+ __decorateClass([
199
+ (0, import_sequelize_typescript.Column)({
200
+ field: "updated_date",
201
+ allowNull: true,
202
+ type: import_sequelize_typescript.DataType.DATE
203
+ })
204
+ ], mdApplication.prototype, "updatedDate", 2);
205
+ mdApplication = __decorateClass([
206
+ (0, import_sequelize_typescript.Table)({
207
+ tableName: "md_application",
208
+ timestamps: false
209
+ })
210
+ ], mdApplication);
211
+ // Annotate the CommonJS export names for ESM import in node:
212
+ 0 && (module.exports = {
213
+ mdApplication
214
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@admc-go-th/admc-library",
3
- "version": "1.0.119",
3
+ "version": "1.0.120",
4
4
  "description": "",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",