@admc-go-th/admc-library 1.0.77 → 1.0.78
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/appBlessings-peNBIrhQ.d.ts +61 -0
- package/databases/schema/appBlessings.ts +7 -1
- package/databases/schema/appBlessingsTransaction.ts +6 -1
- package/databases/tables/appBlessings.d.ts +2 -34
- package/databases/tables/appBlessings.js +113 -24
- package/databases/tables/appBlessingsTransaction.d.ts +2 -28
- package/databases/tables/appBlessingsTransaction.js +124 -16
- package/databases/tables/index.d.ts +1 -2
- package/databases/tables/index.js +70 -59
- package/package.json +1 -1
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
|
|
3
|
+
interface appBlessingsTransactionAttributes {
|
|
4
|
+
id?: number;
|
|
5
|
+
blessingsId?: number;
|
|
6
|
+
fullname?: string;
|
|
7
|
+
words?: string;
|
|
8
|
+
ipAddress?: string;
|
|
9
|
+
status?: number;
|
|
10
|
+
createdBy?: string;
|
|
11
|
+
createdDate?: Date;
|
|
12
|
+
updatedBy?: string;
|
|
13
|
+
updatedDate?: Date;
|
|
14
|
+
}
|
|
15
|
+
declare class appBlessingsTransaction extends Model<appBlessingsTransactionAttributes, appBlessingsTransactionAttributes> implements appBlessingsTransactionAttributes {
|
|
16
|
+
id?: number;
|
|
17
|
+
blessingsId?: number;
|
|
18
|
+
fullname?: string;
|
|
19
|
+
words?: string;
|
|
20
|
+
ipAddress?: string;
|
|
21
|
+
status?: number;
|
|
22
|
+
createdBy?: string;
|
|
23
|
+
createdDate?: Date;
|
|
24
|
+
updatedBy?: string;
|
|
25
|
+
updatedDate?: Date;
|
|
26
|
+
appBlessing?: appBlessings;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
interface appBlessingsAttributes {
|
|
30
|
+
id?: number;
|
|
31
|
+
uuid?: string;
|
|
32
|
+
title?: string;
|
|
33
|
+
detail?: string;
|
|
34
|
+
words?: string;
|
|
35
|
+
status?: number;
|
|
36
|
+
hasExpire?: number;
|
|
37
|
+
startDate?: Date;
|
|
38
|
+
expireDate?: Date;
|
|
39
|
+
createdBy?: string;
|
|
40
|
+
createdDate?: Date;
|
|
41
|
+
updatedBy?: string;
|
|
42
|
+
updatedDate?: Date;
|
|
43
|
+
}
|
|
44
|
+
declare class appBlessings extends Model<appBlessingsAttributes, appBlessingsAttributes> implements appBlessingsAttributes {
|
|
45
|
+
id?: number;
|
|
46
|
+
uuid?: string;
|
|
47
|
+
title?: string;
|
|
48
|
+
detail?: string;
|
|
49
|
+
words?: string;
|
|
50
|
+
status?: number;
|
|
51
|
+
hasExpire?: number;
|
|
52
|
+
startDate?: Date;
|
|
53
|
+
expireDate?: Date;
|
|
54
|
+
createdBy?: string;
|
|
55
|
+
createdDate?: Date;
|
|
56
|
+
updatedBy?: string;
|
|
57
|
+
updatedDate?: Date;
|
|
58
|
+
appBlessingsTransactions?: appBlessingsTransaction[];
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export { type appBlessingsAttributes as a, appBlessings as b, type appBlessingsTransactionAttributes as c, appBlessingsTransaction as d };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Model, Table, Column, DataType, Index, Sequelize, ForeignKey
|
|
2
|
+
Model, Table, Column, DataType, Index, Sequelize, ForeignKey, HasMany
|
|
3
3
|
} from "sequelize-typescript";
|
|
4
|
+
import { appBlessingsTransaction } from "./appBlessingsTransaction";
|
|
4
5
|
|
|
5
6
|
export interface appBlessingsAttributes {
|
|
6
7
|
id?: number;
|
|
@@ -110,4 +111,9 @@ export class appBlessings extends Model<appBlessingsAttributes, appBlessingsAttr
|
|
|
110
111
|
})
|
|
111
112
|
declare updatedDate?: Date;
|
|
112
113
|
|
|
114
|
+
@HasMany(() => appBlessingsTransaction, {
|
|
115
|
+
sourceKey: "id"
|
|
116
|
+
})
|
|
117
|
+
declare appBlessingsTransactions?: appBlessingsTransaction[];
|
|
118
|
+
|
|
113
119
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Model, Table, Column, DataType, Index, Sequelize, ForeignKey
|
|
2
|
+
Model, Table, Column, DataType, Index, Sequelize, ForeignKey, BelongsTo
|
|
3
3
|
} from "sequelize-typescript";
|
|
4
|
+
import { appBlessings } from "./appBlessings";
|
|
4
5
|
|
|
5
6
|
export interface appBlessingsTransactionAttributes {
|
|
6
7
|
id?: number;
|
|
@@ -28,6 +29,7 @@ export class appBlessingsTransaction extends Model<appBlessingsTransactionAttrib
|
|
|
28
29
|
})
|
|
29
30
|
declare id?: number;
|
|
30
31
|
|
|
32
|
+
@ForeignKey(() => appBlessings)
|
|
31
33
|
@Column({
|
|
32
34
|
field: "blessings_id",
|
|
33
35
|
allowNull: true,
|
|
@@ -88,4 +90,7 @@ export class appBlessingsTransaction extends Model<appBlessingsTransactionAttrib
|
|
|
88
90
|
})
|
|
89
91
|
declare updatedDate?: Date;
|
|
90
92
|
|
|
93
|
+
@BelongsTo(() => appBlessings)
|
|
94
|
+
declare appBlessing?: appBlessings;
|
|
95
|
+
|
|
91
96
|
}
|
|
@@ -1,34 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
interface appBlessingsAttributes {
|
|
4
|
-
id?: number;
|
|
5
|
-
uuid?: string;
|
|
6
|
-
title?: string;
|
|
7
|
-
detail?: string;
|
|
8
|
-
words?: string;
|
|
9
|
-
status?: number;
|
|
10
|
-
hasExpire?: number;
|
|
11
|
-
startDate?: Date;
|
|
12
|
-
expireDate?: Date;
|
|
13
|
-
createdBy?: string;
|
|
14
|
-
createdDate?: Date;
|
|
15
|
-
updatedBy?: string;
|
|
16
|
-
updatedDate?: Date;
|
|
17
|
-
}
|
|
18
|
-
declare class appBlessings extends Model<appBlessingsAttributes, appBlessingsAttributes> implements appBlessingsAttributes {
|
|
19
|
-
id?: number;
|
|
20
|
-
uuid?: string;
|
|
21
|
-
title?: string;
|
|
22
|
-
detail?: string;
|
|
23
|
-
words?: string;
|
|
24
|
-
status?: 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
|
-
export { appBlessings, type appBlessingsAttributes };
|
|
1
|
+
import 'sequelize-typescript';
|
|
2
|
+
export { b as appBlessings, a as appBlessingsAttributes } from '../../appBlessings-peNBIrhQ.js';
|
|
@@ -31,8 +31,11 @@ __export(appBlessings_exports, {
|
|
|
31
31
|
appBlessings: () => appBlessings
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(appBlessings_exports);
|
|
34
|
+
var import_sequelize_typescript2 = require("sequelize-typescript");
|
|
35
|
+
|
|
36
|
+
// src/databases/tables/appBlessingsTransaction.ts
|
|
34
37
|
var import_sequelize_typescript = require("sequelize-typescript");
|
|
35
|
-
var
|
|
38
|
+
var appBlessingsTransaction = class extends import_sequelize_typescript.Model {
|
|
36
39
|
};
|
|
37
40
|
__decorateClass([
|
|
38
41
|
(0, import_sequelize_typescript.Column)({
|
|
@@ -40,88 +43,174 @@ __decorateClass([
|
|
|
40
43
|
autoIncrement: true,
|
|
41
44
|
type: import_sequelize_typescript.DataType.INTEGER
|
|
42
45
|
})
|
|
43
|
-
],
|
|
46
|
+
], appBlessingsTransaction.prototype, "id", 2);
|
|
44
47
|
__decorateClass([
|
|
48
|
+
(0, import_sequelize_typescript.ForeignKey)(() => appBlessings),
|
|
45
49
|
(0, import_sequelize_typescript.Column)({
|
|
50
|
+
field: "blessings_id",
|
|
46
51
|
allowNull: true,
|
|
47
|
-
type: import_sequelize_typescript.DataType.
|
|
52
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
48
53
|
})
|
|
49
|
-
],
|
|
54
|
+
], appBlessingsTransaction.prototype, "blessingsId", 2);
|
|
50
55
|
__decorateClass([
|
|
51
56
|
(0, import_sequelize_typescript.Column)({
|
|
52
57
|
allowNull: true,
|
|
53
58
|
type: import_sequelize_typescript.DataType.STRING(255)
|
|
54
59
|
})
|
|
55
|
-
],
|
|
60
|
+
], appBlessingsTransaction.prototype, "fullname", 2);
|
|
56
61
|
__decorateClass([
|
|
57
62
|
(0, import_sequelize_typescript.Column)({
|
|
58
63
|
allowNull: true,
|
|
59
|
-
type: import_sequelize_typescript.DataType.STRING
|
|
64
|
+
type: import_sequelize_typescript.DataType.STRING(255)
|
|
60
65
|
})
|
|
61
|
-
],
|
|
66
|
+
], appBlessingsTransaction.prototype, "words", 2);
|
|
62
67
|
__decorateClass([
|
|
63
68
|
(0, import_sequelize_typescript.Column)({
|
|
69
|
+
field: "ip_address",
|
|
64
70
|
allowNull: true,
|
|
65
|
-
type: import_sequelize_typescript.DataType.STRING
|
|
71
|
+
type: import_sequelize_typescript.DataType.STRING(30)
|
|
66
72
|
})
|
|
67
|
-
],
|
|
73
|
+
], appBlessingsTransaction.prototype, "ipAddress", 2);
|
|
68
74
|
__decorateClass([
|
|
69
75
|
(0, import_sequelize_typescript.Column)({
|
|
70
76
|
allowNull: true,
|
|
71
77
|
type: import_sequelize_typescript.DataType.INTEGER
|
|
72
78
|
})
|
|
73
|
-
],
|
|
79
|
+
], appBlessingsTransaction.prototype, "status", 2);
|
|
74
80
|
__decorateClass([
|
|
75
81
|
(0, import_sequelize_typescript.Column)({
|
|
82
|
+
field: "created_by",
|
|
83
|
+
allowNull: true,
|
|
84
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
85
|
+
})
|
|
86
|
+
], appBlessingsTransaction.prototype, "createdBy", 2);
|
|
87
|
+
__decorateClass([
|
|
88
|
+
(0, import_sequelize_typescript.Column)({
|
|
89
|
+
field: "created_date",
|
|
90
|
+
allowNull: true,
|
|
91
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
92
|
+
})
|
|
93
|
+
], appBlessingsTransaction.prototype, "createdDate", 2);
|
|
94
|
+
__decorateClass([
|
|
95
|
+
(0, import_sequelize_typescript.Column)({
|
|
96
|
+
field: "updated_by",
|
|
97
|
+
allowNull: true,
|
|
98
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
99
|
+
})
|
|
100
|
+
], appBlessingsTransaction.prototype, "updatedBy", 2);
|
|
101
|
+
__decorateClass([
|
|
102
|
+
(0, import_sequelize_typescript.Column)({
|
|
103
|
+
field: "updated_date",
|
|
104
|
+
allowNull: true,
|
|
105
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
106
|
+
})
|
|
107
|
+
], appBlessingsTransaction.prototype, "updatedDate", 2);
|
|
108
|
+
__decorateClass([
|
|
109
|
+
(0, import_sequelize_typescript.BelongsTo)(() => appBlessings)
|
|
110
|
+
], appBlessingsTransaction.prototype, "appBlessing", 2);
|
|
111
|
+
appBlessingsTransaction = __decorateClass([
|
|
112
|
+
(0, import_sequelize_typescript.Table)({
|
|
113
|
+
tableName: "app_blessings_transaction",
|
|
114
|
+
timestamps: false
|
|
115
|
+
})
|
|
116
|
+
], appBlessingsTransaction);
|
|
117
|
+
|
|
118
|
+
// src/databases/tables/appBlessings.ts
|
|
119
|
+
var appBlessings = class extends import_sequelize_typescript2.Model {
|
|
120
|
+
};
|
|
121
|
+
__decorateClass([
|
|
122
|
+
(0, import_sequelize_typescript2.Column)({
|
|
123
|
+
primaryKey: true,
|
|
124
|
+
autoIncrement: true,
|
|
125
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
126
|
+
})
|
|
127
|
+
], appBlessings.prototype, "id", 2);
|
|
128
|
+
__decorateClass([
|
|
129
|
+
(0, import_sequelize_typescript2.Column)({
|
|
130
|
+
allowNull: true,
|
|
131
|
+
type: import_sequelize_typescript2.DataType.STRING(60)
|
|
132
|
+
})
|
|
133
|
+
], appBlessings.prototype, "uuid", 2);
|
|
134
|
+
__decorateClass([
|
|
135
|
+
(0, import_sequelize_typescript2.Column)({
|
|
136
|
+
allowNull: true,
|
|
137
|
+
type: import_sequelize_typescript2.DataType.STRING(255)
|
|
138
|
+
})
|
|
139
|
+
], appBlessings.prototype, "title", 2);
|
|
140
|
+
__decorateClass([
|
|
141
|
+
(0, import_sequelize_typescript2.Column)({
|
|
142
|
+
allowNull: true,
|
|
143
|
+
type: import_sequelize_typescript2.DataType.STRING
|
|
144
|
+
})
|
|
145
|
+
], appBlessings.prototype, "detail", 2);
|
|
146
|
+
__decorateClass([
|
|
147
|
+
(0, import_sequelize_typescript2.Column)({
|
|
148
|
+
allowNull: true,
|
|
149
|
+
type: import_sequelize_typescript2.DataType.STRING
|
|
150
|
+
})
|
|
151
|
+
], appBlessings.prototype, "words", 2);
|
|
152
|
+
__decorateClass([
|
|
153
|
+
(0, import_sequelize_typescript2.Column)({
|
|
154
|
+
allowNull: true,
|
|
155
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
156
|
+
})
|
|
157
|
+
], appBlessings.prototype, "status", 2);
|
|
158
|
+
__decorateClass([
|
|
159
|
+
(0, import_sequelize_typescript2.Column)({
|
|
76
160
|
field: "has_expire",
|
|
77
161
|
allowNull: true,
|
|
78
|
-
type:
|
|
162
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
79
163
|
})
|
|
80
164
|
], appBlessings.prototype, "hasExpire", 2);
|
|
81
165
|
__decorateClass([
|
|
82
|
-
(0,
|
|
166
|
+
(0, import_sequelize_typescript2.Column)({
|
|
83
167
|
field: "start_date",
|
|
84
168
|
allowNull: true,
|
|
85
|
-
type:
|
|
169
|
+
type: import_sequelize_typescript2.DataType.DATE
|
|
86
170
|
})
|
|
87
171
|
], appBlessings.prototype, "startDate", 2);
|
|
88
172
|
__decorateClass([
|
|
89
|
-
(0,
|
|
173
|
+
(0, import_sequelize_typescript2.Column)({
|
|
90
174
|
field: "expire_date",
|
|
91
175
|
allowNull: true,
|
|
92
|
-
type:
|
|
176
|
+
type: import_sequelize_typescript2.DataType.DATE
|
|
93
177
|
})
|
|
94
178
|
], appBlessings.prototype, "expireDate", 2);
|
|
95
179
|
__decorateClass([
|
|
96
|
-
(0,
|
|
180
|
+
(0, import_sequelize_typescript2.Column)({
|
|
97
181
|
field: "created_by",
|
|
98
182
|
allowNull: true,
|
|
99
|
-
type:
|
|
183
|
+
type: import_sequelize_typescript2.DataType.STRING(60)
|
|
100
184
|
})
|
|
101
185
|
], appBlessings.prototype, "createdBy", 2);
|
|
102
186
|
__decorateClass([
|
|
103
|
-
(0,
|
|
187
|
+
(0, import_sequelize_typescript2.Column)({
|
|
104
188
|
field: "created_date",
|
|
105
189
|
allowNull: true,
|
|
106
|
-
type:
|
|
190
|
+
type: import_sequelize_typescript2.DataType.DATE
|
|
107
191
|
})
|
|
108
192
|
], appBlessings.prototype, "createdDate", 2);
|
|
109
193
|
__decorateClass([
|
|
110
|
-
(0,
|
|
194
|
+
(0, import_sequelize_typescript2.Column)({
|
|
111
195
|
field: "updated_by",
|
|
112
196
|
allowNull: true,
|
|
113
|
-
type:
|
|
197
|
+
type: import_sequelize_typescript2.DataType.STRING(60)
|
|
114
198
|
})
|
|
115
199
|
], appBlessings.prototype, "updatedBy", 2);
|
|
116
200
|
__decorateClass([
|
|
117
|
-
(0,
|
|
201
|
+
(0, import_sequelize_typescript2.Column)({
|
|
118
202
|
field: "updated_date",
|
|
119
203
|
allowNull: true,
|
|
120
|
-
type:
|
|
204
|
+
type: import_sequelize_typescript2.DataType.DATE
|
|
121
205
|
})
|
|
122
206
|
], appBlessings.prototype, "updatedDate", 2);
|
|
207
|
+
__decorateClass([
|
|
208
|
+
(0, import_sequelize_typescript2.HasMany)(() => appBlessingsTransaction, {
|
|
209
|
+
sourceKey: "id"
|
|
210
|
+
})
|
|
211
|
+
], appBlessings.prototype, "appBlessingsTransactions", 2);
|
|
123
212
|
appBlessings = __decorateClass([
|
|
124
|
-
(0,
|
|
213
|
+
(0, import_sequelize_typescript2.Table)({
|
|
125
214
|
tableName: "app_blessings",
|
|
126
215
|
timestamps: false
|
|
127
216
|
})
|
|
@@ -1,28 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
interface appBlessingsTransactionAttributes {
|
|
4
|
-
id?: number;
|
|
5
|
-
blessingsId?: number;
|
|
6
|
-
fullname?: string;
|
|
7
|
-
words?: string;
|
|
8
|
-
ipAddress?: string;
|
|
9
|
-
status?: number;
|
|
10
|
-
createdBy?: string;
|
|
11
|
-
createdDate?: Date;
|
|
12
|
-
updatedBy?: string;
|
|
13
|
-
updatedDate?: Date;
|
|
14
|
-
}
|
|
15
|
-
declare class appBlessingsTransaction extends Model<appBlessingsTransactionAttributes, appBlessingsTransactionAttributes> implements appBlessingsTransactionAttributes {
|
|
16
|
-
id?: number;
|
|
17
|
-
blessingsId?: number;
|
|
18
|
-
fullname?: string;
|
|
19
|
-
words?: string;
|
|
20
|
-
ipAddress?: string;
|
|
21
|
-
status?: number;
|
|
22
|
-
createdBy?: string;
|
|
23
|
-
createdDate?: Date;
|
|
24
|
-
updatedBy?: string;
|
|
25
|
-
updatedDate?: Date;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export { appBlessingsTransaction, type appBlessingsTransactionAttributes };
|
|
1
|
+
import 'sequelize-typescript';
|
|
2
|
+
export { d as appBlessingsTransaction, c as appBlessingsTransactionAttributes } from '../../appBlessings-peNBIrhQ.js';
|
|
@@ -31,8 +31,11 @@ __export(appBlessingsTransaction_exports, {
|
|
|
31
31
|
appBlessingsTransaction: () => appBlessingsTransaction
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(appBlessingsTransaction_exports);
|
|
34
|
+
var import_sequelize_typescript2 = require("sequelize-typescript");
|
|
35
|
+
|
|
36
|
+
// src/databases/tables/appBlessings.ts
|
|
34
37
|
var import_sequelize_typescript = require("sequelize-typescript");
|
|
35
|
-
var
|
|
38
|
+
var appBlessings = class extends import_sequelize_typescript.Model {
|
|
36
39
|
};
|
|
37
40
|
__decorateClass([
|
|
38
41
|
(0, import_sequelize_typescript.Column)({
|
|
@@ -40,69 +43,174 @@ __decorateClass([
|
|
|
40
43
|
autoIncrement: true,
|
|
41
44
|
type: import_sequelize_typescript.DataType.INTEGER
|
|
42
45
|
})
|
|
43
|
-
],
|
|
46
|
+
], appBlessings.prototype, "id", 2);
|
|
44
47
|
__decorateClass([
|
|
45
48
|
(0, import_sequelize_typescript.Column)({
|
|
46
|
-
field: "blessings_id",
|
|
47
49
|
allowNull: true,
|
|
48
|
-
type: import_sequelize_typescript.DataType.
|
|
50
|
+
type: import_sequelize_typescript.DataType.STRING(60)
|
|
49
51
|
})
|
|
50
|
-
],
|
|
52
|
+
], appBlessings.prototype, "uuid", 2);
|
|
51
53
|
__decorateClass([
|
|
52
54
|
(0, import_sequelize_typescript.Column)({
|
|
53
55
|
allowNull: true,
|
|
54
56
|
type: import_sequelize_typescript.DataType.STRING(255)
|
|
55
57
|
})
|
|
56
|
-
],
|
|
58
|
+
], appBlessings.prototype, "title", 2);
|
|
57
59
|
__decorateClass([
|
|
58
60
|
(0, import_sequelize_typescript.Column)({
|
|
59
61
|
allowNull: true,
|
|
60
|
-
type: import_sequelize_typescript.DataType.STRING
|
|
62
|
+
type: import_sequelize_typescript.DataType.STRING
|
|
61
63
|
})
|
|
62
|
-
],
|
|
64
|
+
], appBlessings.prototype, "detail", 2);
|
|
63
65
|
__decorateClass([
|
|
64
66
|
(0, import_sequelize_typescript.Column)({
|
|
65
|
-
field: "ip_address",
|
|
66
67
|
allowNull: true,
|
|
67
|
-
type: import_sequelize_typescript.DataType.STRING
|
|
68
|
+
type: import_sequelize_typescript.DataType.STRING
|
|
68
69
|
})
|
|
69
|
-
],
|
|
70
|
+
], appBlessings.prototype, "words", 2);
|
|
70
71
|
__decorateClass([
|
|
71
72
|
(0, import_sequelize_typescript.Column)({
|
|
72
73
|
allowNull: true,
|
|
73
74
|
type: import_sequelize_typescript.DataType.INTEGER
|
|
74
75
|
})
|
|
75
|
-
],
|
|
76
|
+
], appBlessings.prototype, "status", 2);
|
|
77
|
+
__decorateClass([
|
|
78
|
+
(0, import_sequelize_typescript.Column)({
|
|
79
|
+
field: "has_expire",
|
|
80
|
+
allowNull: true,
|
|
81
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
82
|
+
})
|
|
83
|
+
], appBlessings.prototype, "hasExpire", 2);
|
|
84
|
+
__decorateClass([
|
|
85
|
+
(0, import_sequelize_typescript.Column)({
|
|
86
|
+
field: "start_date",
|
|
87
|
+
allowNull: true,
|
|
88
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
89
|
+
})
|
|
90
|
+
], appBlessings.prototype, "startDate", 2);
|
|
91
|
+
__decorateClass([
|
|
92
|
+
(0, import_sequelize_typescript.Column)({
|
|
93
|
+
field: "expire_date",
|
|
94
|
+
allowNull: true,
|
|
95
|
+
type: import_sequelize_typescript.DataType.DATE
|
|
96
|
+
})
|
|
97
|
+
], appBlessings.prototype, "expireDate", 2);
|
|
76
98
|
__decorateClass([
|
|
77
99
|
(0, import_sequelize_typescript.Column)({
|
|
78
100
|
field: "created_by",
|
|
79
101
|
allowNull: true,
|
|
80
102
|
type: import_sequelize_typescript.DataType.STRING(60)
|
|
81
103
|
})
|
|
82
|
-
],
|
|
104
|
+
], appBlessings.prototype, "createdBy", 2);
|
|
83
105
|
__decorateClass([
|
|
84
106
|
(0, import_sequelize_typescript.Column)({
|
|
85
107
|
field: "created_date",
|
|
86
108
|
allowNull: true,
|
|
87
109
|
type: import_sequelize_typescript.DataType.DATE
|
|
88
110
|
})
|
|
89
|
-
],
|
|
111
|
+
], appBlessings.prototype, "createdDate", 2);
|
|
90
112
|
__decorateClass([
|
|
91
113
|
(0, import_sequelize_typescript.Column)({
|
|
92
114
|
field: "updated_by",
|
|
93
115
|
allowNull: true,
|
|
94
116
|
type: import_sequelize_typescript.DataType.STRING(60)
|
|
95
117
|
})
|
|
96
|
-
],
|
|
118
|
+
], appBlessings.prototype, "updatedBy", 2);
|
|
97
119
|
__decorateClass([
|
|
98
120
|
(0, import_sequelize_typescript.Column)({
|
|
99
121
|
field: "updated_date",
|
|
100
122
|
allowNull: true,
|
|
101
123
|
type: import_sequelize_typescript.DataType.DATE
|
|
102
124
|
})
|
|
125
|
+
], appBlessings.prototype, "updatedDate", 2);
|
|
126
|
+
__decorateClass([
|
|
127
|
+
(0, import_sequelize_typescript.HasMany)(() => appBlessingsTransaction, {
|
|
128
|
+
sourceKey: "id"
|
|
129
|
+
})
|
|
130
|
+
], appBlessings.prototype, "appBlessingsTransactions", 2);
|
|
131
|
+
appBlessings = __decorateClass([
|
|
132
|
+
(0, import_sequelize_typescript.Table)({
|
|
133
|
+
tableName: "app_blessings",
|
|
134
|
+
timestamps: false
|
|
135
|
+
})
|
|
136
|
+
], appBlessings);
|
|
137
|
+
|
|
138
|
+
// src/databases/tables/appBlessingsTransaction.ts
|
|
139
|
+
var appBlessingsTransaction = class extends import_sequelize_typescript2.Model {
|
|
140
|
+
};
|
|
141
|
+
__decorateClass([
|
|
142
|
+
(0, import_sequelize_typescript2.Column)({
|
|
143
|
+
primaryKey: true,
|
|
144
|
+
autoIncrement: true,
|
|
145
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
146
|
+
})
|
|
147
|
+
], appBlessingsTransaction.prototype, "id", 2);
|
|
148
|
+
__decorateClass([
|
|
149
|
+
(0, import_sequelize_typescript2.ForeignKey)(() => appBlessings),
|
|
150
|
+
(0, import_sequelize_typescript2.Column)({
|
|
151
|
+
field: "blessings_id",
|
|
152
|
+
allowNull: true,
|
|
153
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
154
|
+
})
|
|
155
|
+
], appBlessingsTransaction.prototype, "blessingsId", 2);
|
|
156
|
+
__decorateClass([
|
|
157
|
+
(0, import_sequelize_typescript2.Column)({
|
|
158
|
+
allowNull: true,
|
|
159
|
+
type: import_sequelize_typescript2.DataType.STRING(255)
|
|
160
|
+
})
|
|
161
|
+
], appBlessingsTransaction.prototype, "fullname", 2);
|
|
162
|
+
__decorateClass([
|
|
163
|
+
(0, import_sequelize_typescript2.Column)({
|
|
164
|
+
allowNull: true,
|
|
165
|
+
type: import_sequelize_typescript2.DataType.STRING(255)
|
|
166
|
+
})
|
|
167
|
+
], appBlessingsTransaction.prototype, "words", 2);
|
|
168
|
+
__decorateClass([
|
|
169
|
+
(0, import_sequelize_typescript2.Column)({
|
|
170
|
+
field: "ip_address",
|
|
171
|
+
allowNull: true,
|
|
172
|
+
type: import_sequelize_typescript2.DataType.STRING(30)
|
|
173
|
+
})
|
|
174
|
+
], appBlessingsTransaction.prototype, "ipAddress", 2);
|
|
175
|
+
__decorateClass([
|
|
176
|
+
(0, import_sequelize_typescript2.Column)({
|
|
177
|
+
allowNull: true,
|
|
178
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
179
|
+
})
|
|
180
|
+
], appBlessingsTransaction.prototype, "status", 2);
|
|
181
|
+
__decorateClass([
|
|
182
|
+
(0, import_sequelize_typescript2.Column)({
|
|
183
|
+
field: "created_by",
|
|
184
|
+
allowNull: true,
|
|
185
|
+
type: import_sequelize_typescript2.DataType.STRING(60)
|
|
186
|
+
})
|
|
187
|
+
], appBlessingsTransaction.prototype, "createdBy", 2);
|
|
188
|
+
__decorateClass([
|
|
189
|
+
(0, import_sequelize_typescript2.Column)({
|
|
190
|
+
field: "created_date",
|
|
191
|
+
allowNull: true,
|
|
192
|
+
type: import_sequelize_typescript2.DataType.DATE
|
|
193
|
+
})
|
|
194
|
+
], appBlessingsTransaction.prototype, "createdDate", 2);
|
|
195
|
+
__decorateClass([
|
|
196
|
+
(0, import_sequelize_typescript2.Column)({
|
|
197
|
+
field: "updated_by",
|
|
198
|
+
allowNull: true,
|
|
199
|
+
type: import_sequelize_typescript2.DataType.STRING(60)
|
|
200
|
+
})
|
|
201
|
+
], appBlessingsTransaction.prototype, "updatedBy", 2);
|
|
202
|
+
__decorateClass([
|
|
203
|
+
(0, import_sequelize_typescript2.Column)({
|
|
204
|
+
field: "updated_date",
|
|
205
|
+
allowNull: true,
|
|
206
|
+
type: import_sequelize_typescript2.DataType.DATE
|
|
207
|
+
})
|
|
103
208
|
], appBlessingsTransaction.prototype, "updatedDate", 2);
|
|
209
|
+
__decorateClass([
|
|
210
|
+
(0, import_sequelize_typescript2.BelongsTo)(() => appBlessings)
|
|
211
|
+
], appBlessingsTransaction.prototype, "appBlessing", 2);
|
|
104
212
|
appBlessingsTransaction = __decorateClass([
|
|
105
|
-
(0,
|
|
213
|
+
(0, import_sequelize_typescript2.Table)({
|
|
106
214
|
tableName: "app_blessings_transaction",
|
|
107
215
|
timestamps: false
|
|
108
216
|
})
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export { appBlessings, appBlessingsAttributes } from '
|
|
2
|
-
export { appBlessingsTransaction, appBlessingsTransactionAttributes } from './appBlessingsTransaction.js';
|
|
1
|
+
export { b as appBlessings, a as appBlessingsAttributes, d as appBlessingsTransaction, c as appBlessingsTransactionAttributes } from '../../appBlessings-peNBIrhQ.js';
|
|
3
2
|
export { b as authAssignment, a as authAssignmentAttributes, d as authRole, c as authRoleAttributes, f as authRoleChild, e as authRoleChildAttributes, g as mdContent, m as mdContentAttributes, i as mdContentGroup, h as mdContentGroupAttributes, k as mdQuestionnaire, j as mdQuestionnaireAttributes, l as users, u as usersAttributes, o as usersVerify, n as usersVerifyAttributes } from '../../authAssignment-CcMPKnNv.js';
|
|
4
3
|
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-DBSkCaSi.js';
|
|
5
4
|
export { a as files, f as filesAttributes, b as mdBanner, m as mdBannerAttributes } from '../../files-C1bgSUjy.js';
|
|
@@ -79,8 +79,11 @@ __export(tables_exports, {
|
|
|
79
79
|
module.exports = __toCommonJS(tables_exports);
|
|
80
80
|
|
|
81
81
|
// src/databases/tables/appBlessings.ts
|
|
82
|
+
var import_sequelize_typescript2 = require("sequelize-typescript");
|
|
83
|
+
|
|
84
|
+
// src/databases/tables/appBlessingsTransaction.ts
|
|
82
85
|
var import_sequelize_typescript = require("sequelize-typescript");
|
|
83
|
-
var
|
|
86
|
+
var appBlessingsTransaction = class extends import_sequelize_typescript.Model {
|
|
84
87
|
};
|
|
85
88
|
__decorateClass([
|
|
86
89
|
(0, import_sequelize_typescript.Column)({
|
|
@@ -88,96 +91,80 @@ __decorateClass([
|
|
|
88
91
|
autoIncrement: true,
|
|
89
92
|
type: import_sequelize_typescript.DataType.INTEGER
|
|
90
93
|
})
|
|
91
|
-
],
|
|
94
|
+
], appBlessingsTransaction.prototype, "id", 2);
|
|
92
95
|
__decorateClass([
|
|
96
|
+
(0, import_sequelize_typescript.ForeignKey)(() => appBlessings),
|
|
93
97
|
(0, import_sequelize_typescript.Column)({
|
|
98
|
+
field: "blessings_id",
|
|
94
99
|
allowNull: true,
|
|
95
|
-
type: import_sequelize_typescript.DataType.
|
|
100
|
+
type: import_sequelize_typescript.DataType.INTEGER
|
|
96
101
|
})
|
|
97
|
-
],
|
|
102
|
+
], appBlessingsTransaction.prototype, "blessingsId", 2);
|
|
98
103
|
__decorateClass([
|
|
99
104
|
(0, import_sequelize_typescript.Column)({
|
|
100
105
|
allowNull: true,
|
|
101
106
|
type: import_sequelize_typescript.DataType.STRING(255)
|
|
102
107
|
})
|
|
103
|
-
],
|
|
104
|
-
__decorateClass([
|
|
105
|
-
(0, import_sequelize_typescript.Column)({
|
|
106
|
-
allowNull: true,
|
|
107
|
-
type: import_sequelize_typescript.DataType.STRING
|
|
108
|
-
})
|
|
109
|
-
], appBlessings.prototype, "detail", 2);
|
|
108
|
+
], appBlessingsTransaction.prototype, "fullname", 2);
|
|
110
109
|
__decorateClass([
|
|
111
110
|
(0, import_sequelize_typescript.Column)({
|
|
112
111
|
allowNull: true,
|
|
113
|
-
type: import_sequelize_typescript.DataType.STRING
|
|
112
|
+
type: import_sequelize_typescript.DataType.STRING(255)
|
|
114
113
|
})
|
|
115
|
-
],
|
|
114
|
+
], appBlessingsTransaction.prototype, "words", 2);
|
|
116
115
|
__decorateClass([
|
|
117
116
|
(0, import_sequelize_typescript.Column)({
|
|
117
|
+
field: "ip_address",
|
|
118
118
|
allowNull: true,
|
|
119
|
-
type: import_sequelize_typescript.DataType.
|
|
119
|
+
type: import_sequelize_typescript.DataType.STRING(30)
|
|
120
120
|
})
|
|
121
|
-
],
|
|
121
|
+
], appBlessingsTransaction.prototype, "ipAddress", 2);
|
|
122
122
|
__decorateClass([
|
|
123
123
|
(0, import_sequelize_typescript.Column)({
|
|
124
|
-
field: "has_expire",
|
|
125
124
|
allowNull: true,
|
|
126
125
|
type: import_sequelize_typescript.DataType.INTEGER
|
|
127
126
|
})
|
|
128
|
-
],
|
|
129
|
-
__decorateClass([
|
|
130
|
-
(0, import_sequelize_typescript.Column)({
|
|
131
|
-
field: "start_date",
|
|
132
|
-
allowNull: true,
|
|
133
|
-
type: import_sequelize_typescript.DataType.DATE
|
|
134
|
-
})
|
|
135
|
-
], appBlessings.prototype, "startDate", 2);
|
|
136
|
-
__decorateClass([
|
|
137
|
-
(0, import_sequelize_typescript.Column)({
|
|
138
|
-
field: "expire_date",
|
|
139
|
-
allowNull: true,
|
|
140
|
-
type: import_sequelize_typescript.DataType.DATE
|
|
141
|
-
})
|
|
142
|
-
], appBlessings.prototype, "expireDate", 2);
|
|
127
|
+
], appBlessingsTransaction.prototype, "status", 2);
|
|
143
128
|
__decorateClass([
|
|
144
129
|
(0, import_sequelize_typescript.Column)({
|
|
145
130
|
field: "created_by",
|
|
146
131
|
allowNull: true,
|
|
147
132
|
type: import_sequelize_typescript.DataType.STRING(60)
|
|
148
133
|
})
|
|
149
|
-
],
|
|
134
|
+
], appBlessingsTransaction.prototype, "createdBy", 2);
|
|
150
135
|
__decorateClass([
|
|
151
136
|
(0, import_sequelize_typescript.Column)({
|
|
152
137
|
field: "created_date",
|
|
153
138
|
allowNull: true,
|
|
154
139
|
type: import_sequelize_typescript.DataType.DATE
|
|
155
140
|
})
|
|
156
|
-
],
|
|
141
|
+
], appBlessingsTransaction.prototype, "createdDate", 2);
|
|
157
142
|
__decorateClass([
|
|
158
143
|
(0, import_sequelize_typescript.Column)({
|
|
159
144
|
field: "updated_by",
|
|
160
145
|
allowNull: true,
|
|
161
146
|
type: import_sequelize_typescript.DataType.STRING(60)
|
|
162
147
|
})
|
|
163
|
-
],
|
|
148
|
+
], appBlessingsTransaction.prototype, "updatedBy", 2);
|
|
164
149
|
__decorateClass([
|
|
165
150
|
(0, import_sequelize_typescript.Column)({
|
|
166
151
|
field: "updated_date",
|
|
167
152
|
allowNull: true,
|
|
168
153
|
type: import_sequelize_typescript.DataType.DATE
|
|
169
154
|
})
|
|
170
|
-
],
|
|
171
|
-
|
|
155
|
+
], appBlessingsTransaction.prototype, "updatedDate", 2);
|
|
156
|
+
__decorateClass([
|
|
157
|
+
(0, import_sequelize_typescript.BelongsTo)(() => appBlessings)
|
|
158
|
+
], appBlessingsTransaction.prototype, "appBlessing", 2);
|
|
159
|
+
appBlessingsTransaction = __decorateClass([
|
|
172
160
|
(0, import_sequelize_typescript.Table)({
|
|
173
|
-
tableName: "
|
|
161
|
+
tableName: "app_blessings_transaction",
|
|
174
162
|
timestamps: false
|
|
175
163
|
})
|
|
176
|
-
],
|
|
164
|
+
], appBlessingsTransaction);
|
|
177
165
|
|
|
178
|
-
// src/databases/tables/
|
|
179
|
-
var
|
|
180
|
-
var appBlessingsTransaction = class extends import_sequelize_typescript2.Model {
|
|
166
|
+
// src/databases/tables/appBlessings.ts
|
|
167
|
+
var appBlessings = class extends import_sequelize_typescript2.Model {
|
|
181
168
|
};
|
|
182
169
|
__decorateClass([
|
|
183
170
|
(0, import_sequelize_typescript2.Column)({
|
|
@@ -185,73 +172,97 @@ __decorateClass([
|
|
|
185
172
|
autoIncrement: true,
|
|
186
173
|
type: import_sequelize_typescript2.DataType.INTEGER
|
|
187
174
|
})
|
|
188
|
-
],
|
|
175
|
+
], appBlessings.prototype, "id", 2);
|
|
189
176
|
__decorateClass([
|
|
190
177
|
(0, import_sequelize_typescript2.Column)({
|
|
191
|
-
field: "blessings_id",
|
|
192
178
|
allowNull: true,
|
|
193
|
-
type: import_sequelize_typescript2.DataType.
|
|
179
|
+
type: import_sequelize_typescript2.DataType.STRING(60)
|
|
194
180
|
})
|
|
195
|
-
],
|
|
181
|
+
], appBlessings.prototype, "uuid", 2);
|
|
196
182
|
__decorateClass([
|
|
197
183
|
(0, import_sequelize_typescript2.Column)({
|
|
198
184
|
allowNull: true,
|
|
199
185
|
type: import_sequelize_typescript2.DataType.STRING(255)
|
|
200
186
|
})
|
|
201
|
-
],
|
|
187
|
+
], appBlessings.prototype, "title", 2);
|
|
202
188
|
__decorateClass([
|
|
203
189
|
(0, import_sequelize_typescript2.Column)({
|
|
204
190
|
allowNull: true,
|
|
205
|
-
type: import_sequelize_typescript2.DataType.STRING
|
|
191
|
+
type: import_sequelize_typescript2.DataType.STRING
|
|
206
192
|
})
|
|
207
|
-
],
|
|
193
|
+
], appBlessings.prototype, "detail", 2);
|
|
208
194
|
__decorateClass([
|
|
209
195
|
(0, import_sequelize_typescript2.Column)({
|
|
210
|
-
field: "ip_address",
|
|
211
196
|
allowNull: true,
|
|
212
|
-
type: import_sequelize_typescript2.DataType.STRING
|
|
197
|
+
type: import_sequelize_typescript2.DataType.STRING
|
|
213
198
|
})
|
|
214
|
-
],
|
|
199
|
+
], appBlessings.prototype, "words", 2);
|
|
215
200
|
__decorateClass([
|
|
216
201
|
(0, import_sequelize_typescript2.Column)({
|
|
217
202
|
allowNull: true,
|
|
218
203
|
type: import_sequelize_typescript2.DataType.INTEGER
|
|
219
204
|
})
|
|
220
|
-
],
|
|
205
|
+
], appBlessings.prototype, "status", 2);
|
|
206
|
+
__decorateClass([
|
|
207
|
+
(0, import_sequelize_typescript2.Column)({
|
|
208
|
+
field: "has_expire",
|
|
209
|
+
allowNull: true,
|
|
210
|
+
type: import_sequelize_typescript2.DataType.INTEGER
|
|
211
|
+
})
|
|
212
|
+
], appBlessings.prototype, "hasExpire", 2);
|
|
213
|
+
__decorateClass([
|
|
214
|
+
(0, import_sequelize_typescript2.Column)({
|
|
215
|
+
field: "start_date",
|
|
216
|
+
allowNull: true,
|
|
217
|
+
type: import_sequelize_typescript2.DataType.DATE
|
|
218
|
+
})
|
|
219
|
+
], appBlessings.prototype, "startDate", 2);
|
|
220
|
+
__decorateClass([
|
|
221
|
+
(0, import_sequelize_typescript2.Column)({
|
|
222
|
+
field: "expire_date",
|
|
223
|
+
allowNull: true,
|
|
224
|
+
type: import_sequelize_typescript2.DataType.DATE
|
|
225
|
+
})
|
|
226
|
+
], appBlessings.prototype, "expireDate", 2);
|
|
221
227
|
__decorateClass([
|
|
222
228
|
(0, import_sequelize_typescript2.Column)({
|
|
223
229
|
field: "created_by",
|
|
224
230
|
allowNull: true,
|
|
225
231
|
type: import_sequelize_typescript2.DataType.STRING(60)
|
|
226
232
|
})
|
|
227
|
-
],
|
|
233
|
+
], appBlessings.prototype, "createdBy", 2);
|
|
228
234
|
__decorateClass([
|
|
229
235
|
(0, import_sequelize_typescript2.Column)({
|
|
230
236
|
field: "created_date",
|
|
231
237
|
allowNull: true,
|
|
232
238
|
type: import_sequelize_typescript2.DataType.DATE
|
|
233
239
|
})
|
|
234
|
-
],
|
|
240
|
+
], appBlessings.prototype, "createdDate", 2);
|
|
235
241
|
__decorateClass([
|
|
236
242
|
(0, import_sequelize_typescript2.Column)({
|
|
237
243
|
field: "updated_by",
|
|
238
244
|
allowNull: true,
|
|
239
245
|
type: import_sequelize_typescript2.DataType.STRING(60)
|
|
240
246
|
})
|
|
241
|
-
],
|
|
247
|
+
], appBlessings.prototype, "updatedBy", 2);
|
|
242
248
|
__decorateClass([
|
|
243
249
|
(0, import_sequelize_typescript2.Column)({
|
|
244
250
|
field: "updated_date",
|
|
245
251
|
allowNull: true,
|
|
246
252
|
type: import_sequelize_typescript2.DataType.DATE
|
|
247
253
|
})
|
|
248
|
-
],
|
|
249
|
-
|
|
254
|
+
], appBlessings.prototype, "updatedDate", 2);
|
|
255
|
+
__decorateClass([
|
|
256
|
+
(0, import_sequelize_typescript2.HasMany)(() => appBlessingsTransaction, {
|
|
257
|
+
sourceKey: "id"
|
|
258
|
+
})
|
|
259
|
+
], appBlessings.prototype, "appBlessingsTransactions", 2);
|
|
260
|
+
appBlessings = __decorateClass([
|
|
250
261
|
(0, import_sequelize_typescript2.Table)({
|
|
251
|
-
tableName: "
|
|
262
|
+
tableName: "app_blessings",
|
|
252
263
|
timestamps: false
|
|
253
264
|
})
|
|
254
|
-
],
|
|
265
|
+
], appBlessings);
|
|
255
266
|
|
|
256
267
|
// src/databases/tables/authAssignment.ts
|
|
257
268
|
var import_sequelize_typescript10 = require("sequelize-typescript");
|