@lukiteam/luki-be-general 0.1.0
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/dist/index.d.ts +9 -0
- package/dist/index.js +27 -0
- package/dist/index.js.map +1 -0
- package/dist/models/enum/index.d.ts +221 -0
- package/dist/models/enum/index.js +289 -0
- package/dist/models/enum/index.js.map +1 -0
- package/dist/mongo/index.d.ts +90 -0
- package/dist/mongo/index.js +101 -0
- package/dist/mongo/index.js.map +1 -0
- package/dist/mongo/interfaces/repository.interface.d.ts +11 -0
- package/dist/mongo/interfaces/repository.interface.js +3 -0
- package/dist/mongo/interfaces/repository.interface.js.map +1 -0
- package/dist/mongo/repositories/base.repository.d.ts +50 -0
- package/dist/mongo/repositories/base.repository.js +161 -0
- package/dist/mongo/repositories/base.repository.js.map +1 -0
- package/dist/mongo/repositories/repository.factory.d.ts +5 -0
- package/dist/mongo/repositories/repository.factory.js +25 -0
- package/dist/mongo/repositories/repository.factory.js.map +1 -0
- package/dist/mongo/schema/agency-publishers.entity.d.ts +38 -0
- package/dist/mongo/schema/agency-publishers.entity.js +58 -0
- package/dist/mongo/schema/agency-publishers.entity.js.map +1 -0
- package/dist/mongo/schema/agency.entity.d.ts +34 -0
- package/dist/mongo/schema/agency.entity.js +41 -0
- package/dist/mongo/schema/agency.entity.js.map +1 -0
- package/dist/mongo/schema/contents.entity.d.ts +32 -0
- package/dist/mongo/schema/contents.entity.js +36 -0
- package/dist/mongo/schema/contents.entity.js.map +1 -0
- package/dist/mongo/schema/defined-texts.entity.d.ts +33 -0
- package/dist/mongo/schema/defined-texts.entity.js +37 -0
- package/dist/mongo/schema/defined-texts.entity.js.map +1 -0
- package/dist/mongo/schema/filter.dto.d.ts +6 -0
- package/dist/mongo/schema/filter.dto.js +7 -0
- package/dist/mongo/schema/filter.dto.js.map +1 -0
- package/dist/mongo/schema/highlights.entity.d.ts +35 -0
- package/dist/mongo/schema/highlights.entity.js +48 -0
- package/dist/mongo/schema/highlights.entity.js.map +1 -0
- package/dist/mongo/schema/language.entity.d.ts +31 -0
- package/dist/mongo/schema/language.entity.js +32 -0
- package/dist/mongo/schema/language.entity.js.map +1 -0
- package/dist/mongo/schema/member-config.entity.d.ts +42 -0
- package/dist/mongo/schema/member-config.entity.js +77 -0
- package/dist/mongo/schema/member-config.entity.js.map +1 -0
- package/dist/mongo/schema/member-roles.entity.d.ts +33 -0
- package/dist/mongo/schema/member-roles.entity.js +38 -0
- package/dist/mongo/schema/member-roles.entity.js.map +1 -0
- package/dist/mongo/schema/member.entity.d.ts +64 -0
- package/dist/mongo/schema/member.entity.js +163 -0
- package/dist/mongo/schema/member.entity.js.map +1 -0
- package/dist/mongo/schema/notification.entity.d.ts +44 -0
- package/dist/mongo/schema/notification.entity.js +73 -0
- package/dist/mongo/schema/notification.entity.js.map +1 -0
- package/dist/mongo/schema/post-comments.entity.d.ts +34 -0
- package/dist/mongo/schema/post-comments.entity.js +43 -0
- package/dist/mongo/schema/post-comments.entity.js.map +1 -0
- package/dist/mongo/schema/post-likes.entity.d.ts +32 -0
- package/dist/mongo/schema/post-likes.entity.js +35 -0
- package/dist/mongo/schema/post-likes.entity.js.map +1 -0
- package/dist/mongo/schema/posts.entity.d.ts +39 -0
- package/dist/mongo/schema/posts.entity.js +65 -0
- package/dist/mongo/schema/posts.entity.js.map +1 -0
- package/dist/mongo/schema/rights.entity.d.ts +33 -0
- package/dist/mongo/schema/rights.entity.js +37 -0
- package/dist/mongo/schema/rights.entity.js.map +1 -0
- package/dist/mongo/schema/roles-rights.entity.d.ts +33 -0
- package/dist/mongo/schema/roles-rights.entity.js +38 -0
- package/dist/mongo/schema/roles-rights.entity.js.map +1 -0
- package/dist/mongo/schema/roles.entity.d.ts +32 -0
- package/dist/mongo/schema/roles.entity.js +33 -0
- package/dist/mongo/schema/roles.entity.js.map +1 -0
- package/dist/mongo/schema/spend-log.entity.d.ts +35 -0
- package/dist/mongo/schema/spend-log.entity.js +45 -0
- package/dist/mongo/schema/spend-log.entity.js.map +1 -0
- package/dist/mongo/schema/story-priority-log.entity.d.ts +32 -0
- package/dist/mongo/schema/story-priority-log.entity.js +33 -0
- package/dist/mongo/schema/story-priority-log.entity.js.map +1 -0
- package/dist/mongo/schema/story-seen-by.entity.d.ts +32 -0
- package/dist/mongo/schema/story-seen-by.entity.js +36 -0
- package/dist/mongo/schema/story-seen-by.entity.js.map +1 -0
- package/dist/mongo/schema/story.entity.d.ts +41 -0
- package/dist/mongo/schema/story.entity.js +54 -0
- package/dist/mongo/schema/story.entity.js.map +1 -0
- package/dist/mongo/schema/system-log.entity.d.ts +37 -0
- package/dist/mongo/schema/system-log.entity.js +53 -0
- package/dist/mongo/schema/system-log.entity.js.map +1 -0
- package/dist/mongo/schema/system-logs.entity.d.ts +36 -0
- package/dist/mongo/schema/system-logs.entity.js +46 -0
- package/dist/mongo/schema/system-logs.entity.js.map +1 -0
- package/dist/mongo/unit-of-work/unit-of-work.interface.d.ts +7 -0
- package/dist/mongo/unit-of-work/unit-of-work.interface.js +3 -0
- package/dist/mongo/unit-of-work/unit-of-work.interface.js.map +1 -0
- package/dist/mongo/unit-of-work/unit-of-work.module.d.ts +2 -0
- package/dist/mongo/unit-of-work/unit-of-work.module.js +29 -0
- package/dist/mongo/unit-of-work/unit-of-work.module.js.map +1 -0
- package/dist/mongo/unit-of-work/unit-of-work.service.d.ts +19 -0
- package/dist/mongo/unit-of-work/unit-of-work.service.js +104 -0
- package/dist/mongo/unit-of-work/unit-of-work.service.js.map +1 -0
- package/dist/postgresql/entity/banners.entity.d.ts +18 -0
- package/dist/postgresql/entity/banners.entity.js +86 -0
- package/dist/postgresql/entity/banners.entity.js.map +1 -0
- package/dist/postgresql/entity/blocked-phone.entity.d.ts +9 -0
- package/dist/postgresql/entity/blocked-phone.entity.js +44 -0
- package/dist/postgresql/entity/blocked-phone.entity.js.map +1 -0
- package/dist/postgresql/entity/call-history-detail.entity.d.ts +9 -0
- package/dist/postgresql/entity/call-history-detail.entity.js +44 -0
- package/dist/postgresql/entity/call-history-detail.entity.js.map +1 -0
- package/dist/postgresql/entity/call-history.entity.d.ts +19 -0
- package/dist/postgresql/entity/call-history.entity.js +88 -0
- package/dist/postgresql/entity/call-history.entity.js.map +1 -0
- package/dist/postgresql/entity/coins-definition.entity.d.ts +14 -0
- package/dist/postgresql/entity/coins-definition.entity.js +60 -0
- package/dist/postgresql/entity/coins-definition.entity.js.map +1 -0
- package/dist/postgresql/entity/feedback-and-complaint.entity.d.ts +14 -0
- package/dist/postgresql/entity/feedback-and-complaint.entity.js +64 -0
- package/dist/postgresql/entity/feedback-and-complaint.entity.js.map +1 -0
- package/dist/postgresql/entity/member-bank-account.entity.d.ts +8 -0
- package/dist/postgresql/entity/member-bank-account.entity.js +43 -0
- package/dist/postgresql/entity/member-bank-account.entity.js.map +1 -0
- package/dist/postgresql/entity/member-blocked.entity.d.ts +11 -0
- package/dist/postgresql/entity/member-blocked.entity.js +58 -0
- package/dist/postgresql/entity/member-blocked.entity.js.map +1 -0
- package/dist/postgresql/entity/member-config.entity.d.ts +22 -0
- package/dist/postgresql/entity/member-config.entity.js +119 -0
- package/dist/postgresql/entity/member-config.entity.js.map +1 -0
- package/dist/postgresql/entity/member-connections.entity.d.ts +7 -0
- package/dist/postgresql/entity/member-connections.entity.js +39 -0
- package/dist/postgresql/entity/member-connections.entity.js.map +1 -0
- package/dist/postgresql/entity/member-friends.entity.d.ts +11 -0
- package/dist/postgresql/entity/member-friends.entity.js +58 -0
- package/dist/postgresql/entity/member-friends.entity.js.map +1 -0
- package/dist/postgresql/entity/member-liked.entity.d.ts +9 -0
- package/dist/postgresql/entity/member-liked.entity.js +50 -0
- package/dist/postgresql/entity/member-liked.entity.js.map +1 -0
- package/dist/postgresql/entity/member-mission.entity.d.ts +9 -0
- package/dist/postgresql/entity/member-mission.entity.js +48 -0
- package/dist/postgresql/entity/member-mission.entity.js.map +1 -0
- package/dist/postgresql/entity/member-reminder.entity.d.ts +11 -0
- package/dist/postgresql/entity/member-reminder.entity.js +65 -0
- package/dist/postgresql/entity/member-reminder.entity.js.map +1 -0
- package/dist/postgresql/entity/member-verification.entity.d.ts +8 -0
- package/dist/postgresql/entity/member-verification.entity.js +42 -0
- package/dist/postgresql/entity/member-verification.entity.js.map +1 -0
- package/dist/postgresql/entity/member.entity.d.ts +44 -0
- package/dist/postgresql/entity/member.entity.js +195 -0
- package/dist/postgresql/entity/member.entity.js.map +1 -0
- package/dist/postgresql/entity/message.entity.d.ts +13 -0
- package/dist/postgresql/entity/message.entity.js +73 -0
- package/dist/postgresql/entity/message.entity.js.map +1 -0
- package/dist/postgresql/entity/mission.entity.d.ts +12 -0
- package/dist/postgresql/entity/mission.entity.js +60 -0
- package/dist/postgresql/entity/mission.entity.js.map +1 -0
- package/dist/postgresql/entity/notification.entity.d.ts +8 -0
- package/dist/postgresql/entity/notification.entity.js +42 -0
- package/dist/postgresql/entity/notification.entity.js.map +1 -0
- package/dist/postgresql/entity/payment.entity.d.ts +14 -0
- package/dist/postgresql/entity/payment.entity.js +96 -0
- package/dist/postgresql/entity/payment.entity.js.map +1 -0
- package/dist/postgresql/entity/product-purchase.entity.d.ts +12 -0
- package/dist/postgresql/entity/product-purchase.entity.js +54 -0
- package/dist/postgresql/entity/product-purchase.entity.js.map +1 -0
- package/dist/postgresql/entity/purchase.entity.d.ts +15 -0
- package/dist/postgresql/entity/purchase.entity.js +73 -0
- package/dist/postgresql/entity/purchase.entity.js.map +1 -0
- package/dist/postgresql/entity/swipe-countries.entity.d.ts +8 -0
- package/dist/postgresql/entity/swipe-countries.entity.js +36 -0
- package/dist/postgresql/entity/swipe-countries.entity.js.map +1 -0
- package/dist/postgresql/entity/system-logs.entity.d.ts +12 -0
- package/dist/postgresql/entity/system-logs.entity.js +74 -0
- package/dist/postgresql/entity/system-logs.entity.js.map +1 -0
- package/dist/postgresql/entity/system-settings.entity.d.ts +8 -0
- package/dist/postgresql/entity/system-settings.entity.js +38 -0
- package/dist/postgresql/entity/system-settings.entity.js.map +1 -0
- package/dist/postgresql/entity/wallet-detail.entity.d.ts +10 -0
- package/dist/postgresql/entity/wallet-detail.entity.js +50 -0
- package/dist/postgresql/entity/wallet-detail.entity.js.map +1 -0
- package/dist/postgresql/entity/wallet.entity.d.ts +10 -0
- package/dist/postgresql/entity/wallet.entity.js +52 -0
- package/dist/postgresql/entity/wallet.entity.js.map +1 -0
- package/dist/postgresql/index.d.ts +28 -0
- package/dist/postgresql/index.js +63 -0
- package/dist/postgresql/index.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +27 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
13
|
+
let Notification = class Notification extends sequelize_typescript_1.Model {
|
|
14
|
+
};
|
|
15
|
+
__decorate([
|
|
16
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.STRING),
|
|
17
|
+
__metadata("design:type", String)
|
|
18
|
+
], Notification.prototype, "topic", void 0);
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.STRING),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], Notification.prototype, "title", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.STRING),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], Notification.prototype, "description", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.BOOLEAN),
|
|
29
|
+
__metadata("design:type", Boolean)
|
|
30
|
+
], Notification.prototype, "save_db", void 0);
|
|
31
|
+
Notification = __decorate([
|
|
32
|
+
(0, sequelize_typescript_1.Table)({
|
|
33
|
+
timestamps: true,
|
|
34
|
+
freezeTableName: true,
|
|
35
|
+
tableName: 'Notification',
|
|
36
|
+
indexes: [
|
|
37
|
+
{ fields: ['id'], unique: true, name: 'indexes_notification_001' }
|
|
38
|
+
]
|
|
39
|
+
})
|
|
40
|
+
], Notification);
|
|
41
|
+
exports.default = Notification;
|
|
42
|
+
//# sourceMappingURL=notification.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.entity.js","sourceRoot":"","sources":["../../../src/postgresql/entity/notification.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAsE;AAUtE,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,4BAAK;CAa/B,CAAA;AAXG;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC;;2CACT;AAEf;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC;;2CACT;AAEf;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC;;iDACH;AAErB;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,OAAO,CAAC;;6CACP;AAZhB,YAAY;IARjB,IAAA,4BAAK,EAAC;QACH,UAAU,EAAE,IAAI;QAChB,eAAe,EAAE,IAAI;QACrB,SAAS,EAAE,cAAc;QACzB,OAAO,EAAE;YACL,EAAE,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,0BAA0B,EAAE;SACrE;KACJ,CAAC;GACI,YAAY,CAajB;AAED,kBAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { EnumPaymentType, EnumStatus } from '../../models/enum/index';
|
|
3
|
+
export default class Payment extends Model<Payment> {
|
|
4
|
+
id: number;
|
|
5
|
+
order_id: string;
|
|
6
|
+
amount_tl: number;
|
|
7
|
+
amount_kurus: number;
|
|
8
|
+
type: EnumPaymentType;
|
|
9
|
+
signature: string;
|
|
10
|
+
status: EnumStatus;
|
|
11
|
+
member_id: number;
|
|
12
|
+
product_id: string;
|
|
13
|
+
payment_id: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
13
|
+
const index_1 = require("../../models/enum/index");
|
|
14
|
+
let Payment = class Payment extends sequelize_typescript_1.Model {
|
|
15
|
+
};
|
|
16
|
+
__decorate([
|
|
17
|
+
sequelize_typescript_1.PrimaryKey,
|
|
18
|
+
sequelize_typescript_1.AutoIncrement,
|
|
19
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.INTEGER),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], Payment.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, sequelize_typescript_1.Column)({
|
|
24
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
25
|
+
allowNull: true,
|
|
26
|
+
}),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], Payment.prototype, "order_id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, sequelize_typescript_1.Column)({
|
|
31
|
+
type: sequelize_typescript_1.DataType.INTEGER,
|
|
32
|
+
allowNull: false,
|
|
33
|
+
}),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], Payment.prototype, "amount_tl", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, sequelize_typescript_1.Column)({
|
|
38
|
+
type: sequelize_typescript_1.DataType.INTEGER,
|
|
39
|
+
allowNull: false,
|
|
40
|
+
}),
|
|
41
|
+
__metadata("design:type", Number)
|
|
42
|
+
], Payment.prototype, "amount_kurus", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, sequelize_typescript_1.Column)({
|
|
45
|
+
type: sequelize_typescript_1.DataType.ENUM(...Object.values(index_1.EnumPaymentType)),
|
|
46
|
+
allowNull: true,
|
|
47
|
+
}),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], Payment.prototype, "type", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, sequelize_typescript_1.Column)({
|
|
52
|
+
type: sequelize_typescript_1.DataType.TEXT,
|
|
53
|
+
allowNull: true,
|
|
54
|
+
}),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], Payment.prototype, "signature", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, sequelize_typescript_1.Column)({
|
|
59
|
+
type: sequelize_typescript_1.DataType.ENUM(...Object.values(index_1.EnumStatus)),
|
|
60
|
+
allowNull: false,
|
|
61
|
+
defaultValue: index_1.EnumStatus.P,
|
|
62
|
+
}),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], Payment.prototype, "status", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
sequelize_typescript_1.Index,
|
|
67
|
+
(0, sequelize_typescript_1.Column)({
|
|
68
|
+
type: sequelize_typescript_1.DataType.INTEGER,
|
|
69
|
+
allowNull: false,
|
|
70
|
+
}),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], Payment.prototype, "member_id", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, sequelize_typescript_1.Column)({
|
|
75
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
76
|
+
allowNull: false,
|
|
77
|
+
}),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], Payment.prototype, "product_id", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
sequelize_typescript_1.Index,
|
|
82
|
+
(0, sequelize_typescript_1.Column)({
|
|
83
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
84
|
+
allowNull: false,
|
|
85
|
+
}),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], Payment.prototype, "payment_id", void 0);
|
|
88
|
+
Payment = __decorate([
|
|
89
|
+
(0, sequelize_typescript_1.Table)({
|
|
90
|
+
tableName: 'Payment',
|
|
91
|
+
timestamps: true,
|
|
92
|
+
underscored: true,
|
|
93
|
+
})
|
|
94
|
+
], Payment);
|
|
95
|
+
exports.default = Payment;
|
|
96
|
+
//# sourceMappingURL=payment.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment.entity.js","sourceRoot":"","sources":["../../../src/postgresql/entity/payment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAQ8B;AAC9B,mDAAsE;AAOvD,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,4BAAc;CA8DlD,CAAA;AA7DG;IAAC,iCAAU;IACV,oCAAa;IACb,IAAA,6BAAM,EAAC,+BAAQ,CAAC,OAAO,CAAC;;mCACd;AAEX;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,MAAM;QACrB,SAAS,EAAE,IAAI;KAClB,CAAC;;yCACe;AAEjB;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,OAAO;QACtB,SAAS,EAAE,KAAK;KACnB,CAAC;;0CACgB;AAElB;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,OAAO;QACtB,SAAS,EAAE,KAAK;KACnB,CAAC;;6CACmB;AAErB;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,uBAAe,CAAC,CAAC;QACtD,SAAS,EAAE,IAAI;KAClB,CAAC;;qCACoB;AAEtB;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,IAAI;QACnB,SAAS,EAAE,IAAI;KAClB,CAAC;;0CACgB;AAElB;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,kBAAU,CAAC,CAAC;QACjD,SAAS,EAAE,KAAK;QAChB,YAAY,EAAE,kBAAU,CAAC,CAAC;KAC7B,CAAC;;uCACiB;AAEnB;IAAC,4BAAK;IACL,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,OAAO;QACtB,SAAS,EAAE,KAAK;KACnB,CAAC;;0CACgB;AAElB;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,MAAM;QACrB,SAAS,EAAE,KAAK;KACnB,CAAC;;2CACiB;AAEnB;IAAC,4BAAK;IACL,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,MAAM;QACrB,SAAS,EAAE,KAAK;KACnB,CAAC;;2CACiB;AA7DF,OAAO;IAL3B,IAAA,4BAAK,EAAC;QACH,SAAS,EAAE,SAAS;QACpB,UAAU,EAAE,IAAI;QAChB,WAAW,EAAE,IAAI;KACpB,CAAC;GACmB,OAAO,CA8D3B;kBA9DoB,OAAO"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { EnumProductPurchaseStatus } from '../../models/enum/index';
|
|
3
|
+
declare class ProductPurchase extends Model {
|
|
4
|
+
name: string;
|
|
5
|
+
profit: number;
|
|
6
|
+
raw_amount: number;
|
|
7
|
+
amount: number;
|
|
8
|
+
type: string;
|
|
9
|
+
status: EnumProductPurchaseStatus;
|
|
10
|
+
payment_platform: string;
|
|
11
|
+
}
|
|
12
|
+
export default ProductPurchase;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
13
|
+
const index_1 = require("../../models/enum/index");
|
|
14
|
+
let ProductPurchase = class ProductPurchase extends sequelize_typescript_1.Model {
|
|
15
|
+
};
|
|
16
|
+
__decorate([
|
|
17
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.STRING),
|
|
18
|
+
__metadata("design:type", String)
|
|
19
|
+
], ProductPurchase.prototype, "name", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.NUMBER),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], ProductPurchase.prototype, "profit", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.DOUBLE),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], ProductPurchase.prototype, "raw_amount", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.DOUBLE),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], ProductPurchase.prototype, "amount", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.STRING),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], ProductPurchase.prototype, "type", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, sequelize_typescript_1.Column)({ type: index_1.enums.product_purchase }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], ProductPurchase.prototype, "status", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.STRING),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], ProductPurchase.prototype, "payment_platform", void 0);
|
|
44
|
+
ProductPurchase = __decorate([
|
|
45
|
+
(0, sequelize_typescript_1.Table)({
|
|
46
|
+
timestamps: true,
|
|
47
|
+
freezeTableName: true,
|
|
48
|
+
tableName: 'ProductPurchase',
|
|
49
|
+
createdAt: 'created_at',
|
|
50
|
+
updatedAt: 'updated_at',
|
|
51
|
+
})
|
|
52
|
+
], ProductPurchase);
|
|
53
|
+
exports.default = ProductPurchase;
|
|
54
|
+
//# sourceMappingURL=product-purchase.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-purchase.entity.js","sourceRoot":"","sources":["../../../src/postgresql/entity/product-purchase.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAsE;AACtE,mDAA2E;AAS3E,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,4BAAK;CAsBlC,CAAA;AApBG;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC;;6CACX;AAEb;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC;;+CACT;AAEf;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC;;mDACJ;AAEpB;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC;;+CACR;AAEhB;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC;;6CACV;AAEd;IAAC,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,aAAK,CAAC,gBAAgB,EAAE,CAAC;;+CACN;AAEnC;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC;;yDACE;AArBxB,eAAe;IAPpB,IAAA,4BAAK,EAAC;QACH,UAAU,EAAE,IAAI;QAChB,eAAe,EAAE,IAAI;QACrB,SAAS,EAAE,iBAAiB;QAC5B,SAAS,EAAE,YAAY;QACvB,SAAS,EAAE,YAAY;KAC1B,CAAC;GACI,eAAe,CAsBpB;AAED,kBAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Model } from "sequelize-typescript";
|
|
2
|
+
import Member from "./member.entity";
|
|
3
|
+
import { EnumPurchaseStatus } from '../../models/enum/index';
|
|
4
|
+
declare class Purchase extends Model {
|
|
5
|
+
transaction_id: string;
|
|
6
|
+
member_id: number;
|
|
7
|
+
transaction_date: string;
|
|
8
|
+
product_id: string;
|
|
9
|
+
payment_platform?: string;
|
|
10
|
+
receipt?: string;
|
|
11
|
+
purchase_status: EnumPurchaseStatus;
|
|
12
|
+
purchase_error?: string;
|
|
13
|
+
member?: Member;
|
|
14
|
+
}
|
|
15
|
+
export default Purchase;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
16
|
+
const member_entity_1 = __importDefault(require("./member.entity"));
|
|
17
|
+
const index_1 = require("../../models/enum/index");
|
|
18
|
+
let Purchase = class Purchase extends sequelize_typescript_1.Model {
|
|
19
|
+
};
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.STRING),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], Purchase.prototype, "transaction_id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.INTEGER),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], Purchase.prototype, "member_id", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.STRING),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], Purchase.prototype, "transaction_date", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.STRING),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], Purchase.prototype, "product_id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.STRING),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], Purchase.prototype, "payment_platform", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.STRING(15000)),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], Purchase.prototype, "receipt", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, sequelize_typescript_1.Column)({
|
|
46
|
+
type: index_1.enums.purchase_status,
|
|
47
|
+
defaultValue: 'P'
|
|
48
|
+
}),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], Purchase.prototype, "purchase_status", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.STRING),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], Purchase.prototype, "purchase_error", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, sequelize_typescript_1.BelongsTo)(() => member_entity_1.default, { foreignKey: 'member_id', as: 'member' }),
|
|
57
|
+
__metadata("design:type", member_entity_1.default)
|
|
58
|
+
], Purchase.prototype, "member", void 0);
|
|
59
|
+
Purchase = __decorate([
|
|
60
|
+
(0, sequelize_typescript_1.Table)({
|
|
61
|
+
timestamps: true,
|
|
62
|
+
freezeTableName: true,
|
|
63
|
+
underscored: true,
|
|
64
|
+
tableName: 'Purchase',
|
|
65
|
+
indexes: [
|
|
66
|
+
{ fields: ['id'], unique: true, name: 'indexes_purchase_001' },
|
|
67
|
+
{ fields: ['member_id'], unique: true, name: 'indexes_purchase_002' },
|
|
68
|
+
{ fields: ['transaction_id'], unique: true, name: 'indexes_purchase_003' }
|
|
69
|
+
]
|
|
70
|
+
})
|
|
71
|
+
], Purchase);
|
|
72
|
+
exports.default = Purchase;
|
|
73
|
+
//# sourceMappingURL=purchase.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"purchase.entity.js","sourceRoot":"","sources":["../../../src/postgresql/entity/purchase.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+DAAiF;AACjF,oEAAqC;AACrC,mDAAoE;AAYpE,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,4BAAK;CA+B3B,CAAA;AA7BC;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC;;gDACA;AAExB;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,OAAO,CAAC;;2CACN;AAEnB;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC;;kDACE;AAE1B;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC;;4CACJ;AAEpB;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC;;kDACE;AAE1B;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;yCACd;AAEjB;IAAC,IAAA,6BAAM,EAAC;QACN,IAAI,EAAE,aAAK,CAAC,eAAe;QAC3B,YAAY,EAAE,GAAG;KAClB,CAAC;;iDACmC;AAErC;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC;;gDACA;AAExB;IAAC,IAAA,gCAAS,EAAC,GAAG,EAAE,CAAC,uBAAM,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC;8BAC1D,uBAAM;wCAAC;AA9BZ,QAAQ;IAXb,IAAA,4BAAK,EAAC;QACL,UAAU,EAAE,IAAI;QAChB,eAAe,EAAE,IAAI;QACrB,WAAW,EAAE,IAAI;QACjB,SAAS,EAAE,UAAU;QACrB,OAAO,EAAE;YACP,EAAE,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,sBAAsB,EAAE;YAC9D,EAAE,MAAM,EAAE,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,sBAAsB,EAAE;YACrE,EAAE,MAAM,EAAE,CAAC,gBAAgB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,sBAAsB,EAAE;SAC3E;KACF,CAAC;GACI,QAAQ,CA+Bb;AAED,kBAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
13
|
+
const index_1 = require("../../models/enum/index");
|
|
14
|
+
let SwipeCountries = class SwipeCountries extends sequelize_typescript_1.Model {
|
|
15
|
+
};
|
|
16
|
+
__decorate([
|
|
17
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.STRING),
|
|
18
|
+
__metadata("design:type", String)
|
|
19
|
+
], SwipeCountries.prototype, "code", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, sequelize_typescript_1.Column)({ type: sequelize_typescript_1.DataType.NUMBER, defaultValue: 0 }),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], SwipeCountries.prototype, "sort", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, sequelize_typescript_1.Column)({ type: index_1.enums.status, defaultValue: index_1.EnumStatus.A }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], SwipeCountries.prototype, "status", void 0);
|
|
28
|
+
SwipeCountries = __decorate([
|
|
29
|
+
(0, sequelize_typescript_1.Table)({
|
|
30
|
+
timestamps: true,
|
|
31
|
+
freezeTableName: true,
|
|
32
|
+
tableName: 'SwipeCountries',
|
|
33
|
+
})
|
|
34
|
+
], SwipeCountries);
|
|
35
|
+
exports.default = SwipeCountries;
|
|
36
|
+
//# sourceMappingURL=swipe-countries.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swipe-countries.entity.js","sourceRoot":"","sources":["../../../src/postgresql/entity/swipe-countries.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAsE;AACtE,mDAA4D;AAO5D,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,4BAAK;CAUjC,CAAA;AARG;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC;;4CACX;AAEb;IAAC,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,+BAAQ,CAAC,MAAM,EAAE,YAAY,EAAE,CAAC,EAAE,CAAC;;4CACtC;AAEb;IAAC,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,aAAK,CAAC,MAAM,EAAE,YAAY,EAAE,kBAAU,CAAC,CAAC,EAAE,CAAC;;8CACxC;AATjB,cAAc;IALnB,IAAA,4BAAK,EAAC;QACH,UAAU,EAAE,IAAI;QAChB,eAAe,EAAE,IAAI;QACrB,SAAS,EAAE,gBAAgB;KAC9B,CAAC;GACI,cAAc,CAUnB;AAED,kBAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Model } from 'sequelize-typescript';
|
|
2
|
+
import { EnumSystemLevel } from '../../models/enum/index';
|
|
3
|
+
declare class SystemLogs extends Model {
|
|
4
|
+
level: EnumSystemLevel;
|
|
5
|
+
process_name: string;
|
|
6
|
+
operation: string;
|
|
7
|
+
message: string;
|
|
8
|
+
context: string;
|
|
9
|
+
error_stack: string;
|
|
10
|
+
member_id: number;
|
|
11
|
+
}
|
|
12
|
+
export default SystemLogs;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
13
|
+
const index_1 = require("../../models/enum/index");
|
|
14
|
+
let SystemLogs = class SystemLogs extends sequelize_typescript_1.Model {
|
|
15
|
+
};
|
|
16
|
+
__decorate([
|
|
17
|
+
(0, sequelize_typescript_1.Column)({
|
|
18
|
+
type: index_1.enums.sys_level,
|
|
19
|
+
defaultValue: "INFO",
|
|
20
|
+
allowNull: false,
|
|
21
|
+
}),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], SystemLogs.prototype, "level", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, sequelize_typescript_1.Column)({
|
|
26
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
27
|
+
allowNull: false
|
|
28
|
+
}),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], SystemLogs.prototype, "process_name", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, sequelize_typescript_1.Column)({
|
|
33
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
34
|
+
allowNull: false,
|
|
35
|
+
}),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], SystemLogs.prototype, "operation", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, sequelize_typescript_1.Column)({
|
|
40
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
41
|
+
allowNull: true,
|
|
42
|
+
}),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], SystemLogs.prototype, "message", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, sequelize_typescript_1.Column)({
|
|
47
|
+
type: sequelize_typescript_1.DataType.STRING(1000),
|
|
48
|
+
allowNull: true,
|
|
49
|
+
}),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], SystemLogs.prototype, "context", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, sequelize_typescript_1.Column)({
|
|
54
|
+
type: sequelize_typescript_1.DataType.STRING,
|
|
55
|
+
allowNull: true,
|
|
56
|
+
}),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], SystemLogs.prototype, "error_stack", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, sequelize_typescript_1.Column)({
|
|
61
|
+
type: sequelize_typescript_1.DataType.INTEGER,
|
|
62
|
+
allowNull: true,
|
|
63
|
+
}),
|
|
64
|
+
__metadata("design:type", Number)
|
|
65
|
+
], SystemLogs.prototype, "member_id", void 0);
|
|
66
|
+
SystemLogs = __decorate([
|
|
67
|
+
(0, sequelize_typescript_1.Table)({
|
|
68
|
+
timestamps: true,
|
|
69
|
+
freezeTableName: true,
|
|
70
|
+
tableName: 'SystemLogs',
|
|
71
|
+
})
|
|
72
|
+
], SystemLogs);
|
|
73
|
+
exports.default = SystemLogs;
|
|
74
|
+
//# sourceMappingURL=system-logs.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system-logs.entity.js","sourceRoot":"","sources":["../../../src/postgresql/entity/system-logs.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAuE;AACvE,mDAAiE;AAOjE,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,4BAAK;CA6C7B,CAAA;AA3CG;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,aAAK,CAAC,SAAS;QACrB,YAAY,EAAE,MAAM;QACpB,SAAS,EAAE,KAAK;KACnB,CAAC;;yCACqB;AAEvB;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,MAAM;QACrB,SAAS,EAAE,KAAK;KACnB,CAAC;;gDACoB;AAEtB;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,MAAM;QACrB,SAAS,EAAE,KAAK;KACnB,CAAC;;6CACgB;AAElB;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,MAAM;QACrB,SAAS,EAAE,IAAI;KAClB,CAAC;;2CACc;AAEhB;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,MAAM,CAAC,IAAI,CAAC;QAC3B,SAAS,EAAE,IAAI;KAElB,CAAC;;2CACc;AAEhB;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,MAAM;QACrB,SAAS,EAAE,IAAI;KAClB,CAAC;;+CACkB;AAEpB;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,+BAAQ,CAAC,OAAO;QACtB,SAAS,EAAE,IAAI;KAClB,CAAC;;6CACgB;AA5ChB,UAAU;IALf,IAAA,4BAAK,EAAC;QACH,UAAU,EAAE,IAAI;QAChB,eAAe,EAAE,IAAI;QACrB,SAAS,EAAE,YAAY;KAC1B,CAAC;GACI,UAAU,CA6Cf;AAED,kBAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
13
|
+
const index_1 = require("../../models/enum/index");
|
|
14
|
+
let SystemSettings = class SystemSettings extends sequelize_typescript_1.Model {
|
|
15
|
+
};
|
|
16
|
+
__decorate([
|
|
17
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.STRING),
|
|
18
|
+
__metadata("design:type", String)
|
|
19
|
+
], SystemSettings.prototype, "parameter_key", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.STRING),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], SystemSettings.prototype, "paramater_value", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, sequelize_typescript_1.Column)({
|
|
26
|
+
type: index_1.enums.status
|
|
27
|
+
}),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], SystemSettings.prototype, "status", void 0);
|
|
30
|
+
SystemSettings = __decorate([
|
|
31
|
+
(0, sequelize_typescript_1.Table)({
|
|
32
|
+
timestamps: true,
|
|
33
|
+
freezeTableName: true,
|
|
34
|
+
tableName: 'SystemSettings',
|
|
35
|
+
})
|
|
36
|
+
], SystemSettings);
|
|
37
|
+
exports.default = SystemSettings;
|
|
38
|
+
//# sourceMappingURL=system-settings.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system-settings.entity.js","sourceRoot":"","sources":["../../../src/postgresql/entity/system-settings.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAsE;AACtE,mDAA4D;AAO5D,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,4BAAK;CAYjC,CAAA;AAVG;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC;;qDACD;AAEvB;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC;;uDACC;AAEzB;IAAC,IAAA,6BAAM,EAAC;QACJ,IAAI,EAAE,aAAK,CAAC,MAAM;KACrB,CAAC;;8CACkB;AAXlB,cAAc;IALnB,IAAA,4BAAK,EAAC;QACH,UAAU,EAAE,IAAI;QAChB,eAAe,EAAE,IAAI;QACrB,SAAS,EAAE,gBAAgB;KAC9B,CAAC;GACI,cAAc,CAYnB;AAED,kBAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Model } from "sequelize-typescript";
|
|
2
|
+
import { EnumTransactionType, EnumWalletType } from '../../models/enum/index';
|
|
3
|
+
declare class WalletDetail extends Model {
|
|
4
|
+
wallet_id?: number;
|
|
5
|
+
wallet_type?: EnumWalletType;
|
|
6
|
+
transaction_type?: EnumTransactionType;
|
|
7
|
+
transaction_value?: string;
|
|
8
|
+
coins?: number;
|
|
9
|
+
}
|
|
10
|
+
export default WalletDetail;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
13
|
+
const index_1 = require("../../models/enum/index");
|
|
14
|
+
let WalletDetail = class WalletDetail extends sequelize_typescript_1.Model {
|
|
15
|
+
};
|
|
16
|
+
__decorate([
|
|
17
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.INTEGER),
|
|
18
|
+
__metadata("design:type", Number)
|
|
19
|
+
], WalletDetail.prototype, "wallet_id", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, sequelize_typescript_1.Column)({ type: index_1.enums.wallet_type }),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], WalletDetail.prototype, "wallet_type", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, sequelize_typescript_1.Column)({ type: index_1.enums.transaction_type }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], WalletDetail.prototype, "transaction_type", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.STRING(10000)),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], WalletDetail.prototype, "transaction_value", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, sequelize_typescript_1.Column)(sequelize_typescript_1.DataType.FLOAT),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], WalletDetail.prototype, "coins", void 0);
|
|
36
|
+
WalletDetail = __decorate([
|
|
37
|
+
(0, sequelize_typescript_1.Table)({
|
|
38
|
+
timestamps: true,
|
|
39
|
+
freezeTableName: true,
|
|
40
|
+
underscored: true,
|
|
41
|
+
tableName: 'WalletDetail',
|
|
42
|
+
indexes: [
|
|
43
|
+
{ fields: ['id'], unique: true, name: 'indexes_walletdetail_001' },
|
|
44
|
+
{ fields: ['wallet_id'], unique: true, name: 'indexes_walletdetail_002' },
|
|
45
|
+
{ fields: ['created_at'], unique: true, name: 'indexes_walletdetail_003' }
|
|
46
|
+
]
|
|
47
|
+
})
|
|
48
|
+
], WalletDetail);
|
|
49
|
+
exports.default = WalletDetail;
|
|
50
|
+
//# sourceMappingURL=wallet-detail.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-detail.entity.js","sourceRoot":"","sources":["../../../src/postgresql/entity/wallet-detail.entity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,+DAAsE;AACtE,mDAAqF;AAarF,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,4BAAK;CAe/B,CAAA;AAdG;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,OAAO,CAAC;;+CACN;AAEnB;IAAC,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,aAAK,CAAC,WAAW,EAAE,CAAC;;iDACP;AAE7B;IAAC,IAAA,6BAAM,EAAC,EAAE,IAAI,EAAE,aAAK,CAAC,gBAAgB,EAAE,CAAC;;sDACF;AAEvC;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;uDACJ;AAE3B;IAAC,IAAA,6BAAM,EAAC,+BAAQ,CAAC,KAAK,CAAC;;2CACR;AAdb,YAAY;IAXjB,IAAA,4BAAK,EAAC;QACH,UAAU,EAAE,IAAI;QAChB,eAAe,EAAE,IAAI;QACrB,WAAW,EAAE,IAAI;QACjB,SAAS,EAAE,cAAc;QACzB,OAAO,EAAE;YACL,EAAE,MAAM,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,0BAA0B,EAAE;YAClE,EAAE,MAAM,EAAE,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,0BAA0B,EAAE;YACzE,EAAE,MAAM,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,0BAA0B,EAAE;SAC7E;KACJ,CAAC;GACI,YAAY,CAejB;AAED,kBAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Model } from "sequelize-typescript";
|
|
2
|
+
import { EnumStatus } from '../../models/enum/index';
|
|
3
|
+
declare class Wallet extends Model {
|
|
4
|
+
member_id?: number;
|
|
5
|
+
total_coins?: number;
|
|
6
|
+
used_coins: number;
|
|
7
|
+
remain_coins: number;
|
|
8
|
+
status?: EnumStatus;
|
|
9
|
+
}
|
|
10
|
+
export default Wallet;
|