mfance-shark-v1 1.0.70 → 1.0.72
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.
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { AuditableEntity } from "../../auditable/auditable.entity";
|
|
2
|
-
import {
|
|
3
|
-
import { Distributor } from "./users/distributor.entity";
|
|
2
|
+
import { User } from "./user.entity";
|
|
4
3
|
export declare class PaymentCode extends AuditableEntity {
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
sender: User;
|
|
5
|
+
receiver: User;
|
|
7
6
|
code: string;
|
|
8
7
|
amount: number;
|
|
9
8
|
isUsed: boolean;
|
|
@@ -12,25 +12,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.PaymentCode = void 0;
|
|
13
13
|
const auditable_entity_1 = require("../../auditable/auditable.entity");
|
|
14
14
|
const typeorm_1 = require("typeorm");
|
|
15
|
-
const
|
|
16
|
-
const distributor_entity_1 = require("./users/distributor.entity");
|
|
15
|
+
const user_entity_1 = require("./user.entity");
|
|
17
16
|
let PaymentCode = class PaymentCode extends auditable_entity_1.AuditableEntity {
|
|
18
17
|
};
|
|
19
18
|
exports.PaymentCode = PaymentCode;
|
|
20
19
|
__decorate([
|
|
21
|
-
(0, typeorm_1.ManyToOne)(() =>
|
|
22
|
-
nullable:
|
|
20
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, (user) => user.id, {
|
|
21
|
+
nullable: true,
|
|
23
22
|
}),
|
|
24
|
-
(0, typeorm_1.JoinColumn)({ name: "
|
|
25
|
-
__metadata("design:type",
|
|
26
|
-
], PaymentCode.prototype, "
|
|
23
|
+
(0, typeorm_1.JoinColumn)({ name: "sender_id" }),
|
|
24
|
+
__metadata("design:type", user_entity_1.User)
|
|
25
|
+
], PaymentCode.prototype, "sender", void 0);
|
|
27
26
|
__decorate([
|
|
28
|
-
(0, typeorm_1.ManyToOne)(() =>
|
|
29
|
-
nullable:
|
|
27
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, (user) => user.id, {
|
|
28
|
+
nullable: true,
|
|
30
29
|
}),
|
|
31
|
-
(0, typeorm_1.JoinColumn)({ name: "
|
|
32
|
-
__metadata("design:type",
|
|
33
|
-
], PaymentCode.prototype, "
|
|
30
|
+
(0, typeorm_1.JoinColumn)({ name: "receiver_id" }),
|
|
31
|
+
__metadata("design:type", user_entity_1.User)
|
|
32
|
+
], PaymentCode.prototype, "receiver", void 0);
|
|
34
33
|
__decorate([
|
|
35
34
|
(0, typeorm_1.Column)({
|
|
36
35
|
unique: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-code.entity.js","sourceRoot":"","sources":["../../../src/common/entities/payment-code.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uEAAmE;AACnE,qCAAgE;
|
|
1
|
+
{"version":3,"file":"payment-code.entity.js","sourceRoot":"","sources":["../../../src/common/entities/payment-code.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uEAAmE;AACnE,qCAAgE;AAGhE,+CAAqC;AAK9B,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,kCAAe;CA8C/C,CAAA;AA9CY,kCAAW;AAKtB;IAJC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE;QACxC,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;8BAC1B,kBAAI;2CAAC;AAMb;IAJC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE;QACxC,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAC1B,kBAA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