@natrave/shared-entities 1.2.12 → 1.2.14
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/app-auth/password-resets/password-reset.entity.d.ts.map +1 -1
- package/dist/app-auth/password-resets/password-reset.entity.js +27 -6
- package/dist/app-auth/refresh-tokens/refresh-token.entity.d.ts.map +1 -1
- package/dist/app-auth/refresh-tokens/refresh-token.entity.js +28 -6
- package/dist/app-auth/user-auth-providers/user-auth-provider.entity.d.ts.map +1 -1
- package/dist/app-auth/user-auth-providers/user-auth-provider.entity.js +34 -7
- package/dist/app-auth/user-verifications/user-verification.entity.d.ts.map +1 -1
- package/dist/app-auth/user-verifications/user-verification.entity.js +45 -9
- package/dist/app-auth/users/user.entity.d.ts.map +1 -1
- package/dist/app-auth/users/user.entity.js +66 -13
- package/dist/coupons/coupon-usages/coupon-usage.entity.d.ts +10 -0
- package/dist/coupons/coupon-usages/coupon-usage.entity.d.ts.map +1 -0
- package/dist/coupons/coupon-usages/coupon-usage.entity.js +61 -0
- package/dist/coupons/coupon-usages/index.d.ts +2 -0
- package/dist/coupons/coupon-usages/index.d.ts.map +1 -0
- package/dist/coupons/coupon-usages/index.js +4 -0
- package/dist/coupons/coupons/coupon.entity.d.ts +19 -0
- package/dist/coupons/coupons/coupon.entity.d.ts.map +1 -0
- package/dist/coupons/coupons/coupon.entity.js +107 -0
- package/dist/coupons/coupons/enums/coupon-discount-type.enum.d.ts +5 -0
- package/dist/coupons/coupons/enums/coupon-discount-type.enum.d.ts.map +1 -0
- package/dist/coupons/coupons/enums/coupon-discount-type.enum.js +8 -0
- package/dist/coupons/coupons/index.d.ts +3 -0
- package/dist/coupons/coupons/index.d.ts.map +1 -0
- package/dist/coupons/coupons/index.js +6 -0
- package/dist/coupons/index.d.ts +3 -0
- package/dist/coupons/index.d.ts.map +1 -0
- package/dist/coupons/index.js +2 -0
- package/dist/facilities/addresses/address.entity.d.ts.map +1 -1
- package/dist/facilities/addresses/address.entity.js +60 -13
- package/dist/facilities/facilities/facility.entity.d.ts.map +1 -1
- package/dist/facilities/facilities/facility.entity.js +52 -11
- package/dist/facilities/facility-images/facility-image.entity.d.ts.map +1 -1
- package/dist/facilities/facility-images/facility-image.entity.js +34 -7
- package/dist/facilities/facility-owners/facility-owner.entity.d.ts.map +1 -1
- package/dist/facilities/facility-owners/facility-owner.entity.js +38 -7
- package/dist/facilities/fields/field.entity.d.ts.map +1 -1
- package/dist/facilities/fields/field.entity.js +52 -10
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/payments/payment-providers/payment-provider.entity.d.ts.map +1 -1
- package/dist/payments/payment-providers/payment-provider.entity.js +12 -4
- package/dist/payments/payments/payment.entity.d.ts.map +1 -1
- package/dist/payments/payments/payment.entity.js +48 -11
- package/dist/payments/user-payment-providers/user-payment-provider.entity.d.ts.map +1 -1
- package/dist/payments/user-payment-providers/user-payment-provider.entity.js +28 -6
- package/dist/tournaments/index.d.ts +1 -0
- package/dist/tournaments/index.d.ts.map +1 -1
- package/dist/tournaments/index.js +1 -0
- package/dist/tournaments/tournament-coupons/index.d.ts +2 -0
- package/dist/tournaments/tournament-coupons/index.d.ts.map +1 -0
- package/dist/tournaments/tournament-coupons/index.js +4 -0
- package/dist/tournaments/tournament-coupons/tournament-coupon.entity.d.ts +13 -0
- package/dist/tournaments/tournament-coupons/tournament-coupon.entity.d.ts.map +1 -0
- package/dist/tournaments/tournament-coupons/tournament-coupon.entity.js +64 -0
- package/dist/tournaments/tournament-facilities/tournament-facility.entity.d.ts.map +1 -1
- package/dist/tournaments/tournament-facilities/tournament-facility.entity.js +29 -6
- package/dist/tournaments/tournament-format-configs/tournament-format-config.entity.d.ts.map +1 -1
- package/dist/tournaments/tournament-format-configs/tournament-format-config.entity.js +47 -9
- package/dist/tournaments/tournament-groups/tournament-group.entity.d.ts.map +1 -1
- package/dist/tournaments/tournament-groups/tournament-group.entity.js +23 -5
- package/dist/tournaments/tournament-match-cards/tournament-match-card.entity.d.ts.map +1 -1
- package/dist/tournaments/tournament-match-cards/tournament-match-card.entity.js +44 -9
- package/dist/tournaments/tournament-match-goals/tournament-match-goal.entity.d.ts.map +1 -1
- package/dist/tournaments/tournament-match-goals/tournament-match-goal.entity.js +49 -12
- package/dist/tournaments/tournament-match-schemas/tournament-match-schema.entity.d.ts.map +1 -1
- package/dist/tournaments/tournament-match-schemas/tournament-match-schema.entity.js +29 -6
- package/dist/tournaments/tournament-matches/tournament-match.entity.d.ts.map +1 -1
- package/dist/tournaments/tournament-matches/tournament-match.entity.js +54 -10
- package/dist/tournaments/tournament-payments/tournament-payment.entity.d.ts.map +1 -1
- package/dist/tournaments/tournament-payments/tournament-payment.entity.js +28 -6
- package/dist/tournaments/tournament-players/tournament-player.entity.d.ts.map +1 -1
- package/dist/tournaments/tournament-players/tournament-player.entity.js +29 -6
- package/dist/tournaments/tournament-prize-rules/tournament-prize-rule.entity.d.ts.map +1 -1
- package/dist/tournaments/tournament-prize-rules/tournament-prize-rule.entity.js +32 -7
- package/dist/tournaments/tournament-rules/tournament-rule.entity.d.ts.map +1 -1
- package/dist/tournaments/tournament-rules/tournament-rule.entity.js +44 -14
- package/dist/tournaments/tournament-teams/index.d.ts +0 -1
- package/dist/tournaments/tournament-teams/index.d.ts.map +1 -1
- package/dist/tournaments/tournament-teams/index.js +1 -3
- package/dist/tournaments/tournament-teams/tournament-team.entity.d.ts +1 -2
- package/dist/tournaments/tournament-teams/tournament-team.entity.d.ts.map +1 -1
- package/dist/tournaments/tournament-teams/tournament-team.entity.js +41 -14
- package/dist/tournaments/tournaments/tournament.entity.d.ts +4 -1
- package/dist/tournaments/tournaments/tournament.entity.d.ts.map +1 -1
- package/dist/tournaments/tournaments/tournament.entity.js +67 -21
- package/package.json +4 -4
- package/dist/tournaments/tournament-teams/enums/tournament-team-status.enum.d.ts +0 -5
- package/dist/tournaments/tournament-teams/enums/tournament-team-status.enum.d.ts.map +0 -1
- package/dist/tournaments/tournament-teams/enums/tournament-team-status.enum.js +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"password-reset.entity.d.ts","sourceRoot":"","sources":["../../../src/app-auth/password-resets/password-reset.entity.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAYhC,qBAEa,aAAa;IAExB,EAAE,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"password-reset.entity.d.ts","sourceRoot":"","sources":["../../../src/app-auth/password-resets/password-reset.entity.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAYhC,qBAEa,aAAa;IAExB,EAAE,EAAE,MAAM,CAAC;IAOX,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;IAOpB,MAAM,EAAE,MAAM,CAAC;IAOf,KAAK,EAAE,MAAM,CAAC;IASd,IAAI,EAAE,IAAI,CAAC;CACZ"}
|
|
@@ -21,22 +21,43 @@ import { User } from "../users/index.js";
|
|
|
21
21
|
let PasswordReset = class {
|
|
22
22
|
};
|
|
23
23
|
__decorateClass([
|
|
24
|
-
PrimaryGeneratedColumn()
|
|
24
|
+
PrimaryGeneratedColumn({ comment: "Identificador \xFAnico do reset de senha." })
|
|
25
25
|
], PasswordReset.prototype, "id", 2);
|
|
26
26
|
__decorateClass([
|
|
27
|
-
CreateDateColumn({
|
|
27
|
+
CreateDateColumn({
|
|
28
|
+
name: "created_at",
|
|
29
|
+
type: "timestamptz",
|
|
30
|
+
comment: "Data e hora em que o reset de senha foi criado."
|
|
31
|
+
})
|
|
28
32
|
], PasswordReset.prototype, "createdAt", 2);
|
|
29
33
|
__decorateClass([
|
|
30
|
-
Column({
|
|
34
|
+
Column({
|
|
35
|
+
name: "expires_at",
|
|
36
|
+
type: "timestamptz",
|
|
37
|
+
comment: "Data e hora em que o reset de senha expira."
|
|
38
|
+
})
|
|
31
39
|
], PasswordReset.prototype, "expiresAt", 2);
|
|
32
40
|
__decorateClass([
|
|
33
|
-
Column({
|
|
41
|
+
Column({
|
|
42
|
+
name: "used_at",
|
|
43
|
+
type: "timestamptz",
|
|
44
|
+
nullable: true,
|
|
45
|
+
comment: "Data e hora em que o reset de senha foi utilizado, se aplic\xE1vel."
|
|
46
|
+
})
|
|
34
47
|
], PasswordReset.prototype, "usedAt", 2);
|
|
35
48
|
__decorateClass([
|
|
36
|
-
Column({
|
|
49
|
+
Column({
|
|
50
|
+
name: "user_id",
|
|
51
|
+
type: "uuid",
|
|
52
|
+
comment: "Identificador do usu\xE1rio associado ao reset de senha."
|
|
53
|
+
})
|
|
37
54
|
], PasswordReset.prototype, "userId", 2);
|
|
38
55
|
__decorateClass([
|
|
39
|
-
Column({
|
|
56
|
+
Column({
|
|
57
|
+
type: "varchar",
|
|
58
|
+
length: 255,
|
|
59
|
+
comment: "Token \xFAnico utilizado para validar o reset de senha."
|
|
60
|
+
})
|
|
40
61
|
], PasswordReset.prototype, "token", 2);
|
|
41
62
|
__decorateClass([
|
|
42
63
|
ManyToOne(() => User, (user) => user.passwordResets, { onDelete: "CASCADE" }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refresh-token.entity.d.ts","sourceRoot":"","sources":["../../../src/app-auth/refresh-tokens/refresh-token.entity.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAYhC,qBAEa,YAAY;IAEvB,EAAE,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"refresh-token.entity.d.ts","sourceRoot":"","sources":["../../../src/app-auth/refresh-tokens/refresh-token.entity.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAYhC,qBAEa,YAAY;IAEvB,EAAE,EAAE,MAAM,CAAC;IAOX,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IAQvB,KAAK,EAAE,MAAM,CAAC;IAOd,MAAM,EAAE,MAAM,CAAC;IASf,IAAI,EAAE,IAAI,CAAC;CACZ"}
|
|
@@ -21,22 +21,44 @@ import { User } from "../users/index.js";
|
|
|
21
21
|
let RefreshToken = class {
|
|
22
22
|
};
|
|
23
23
|
__decorateClass([
|
|
24
|
-
PrimaryGeneratedColumn("uuid")
|
|
24
|
+
PrimaryGeneratedColumn("uuid", { comment: "Identificador \xFAnico do refresh token." })
|
|
25
25
|
], RefreshToken.prototype, "id", 2);
|
|
26
26
|
__decorateClass([
|
|
27
|
-
CreateDateColumn({
|
|
27
|
+
CreateDateColumn({
|
|
28
|
+
name: "created_at",
|
|
29
|
+
type: "timestamptz",
|
|
30
|
+
comment: "Data e hora em que o refresh token foi criado."
|
|
31
|
+
})
|
|
28
32
|
], RefreshToken.prototype, "createdAt", 2);
|
|
29
33
|
__decorateClass([
|
|
30
|
-
Column({
|
|
34
|
+
Column({
|
|
35
|
+
name: "expires_at",
|
|
36
|
+
type: "timestamptz",
|
|
37
|
+
comment: "Data e hora em que o refresh token expira."
|
|
38
|
+
})
|
|
31
39
|
], RefreshToken.prototype, "expiresAt", 2);
|
|
32
40
|
__decorateClass([
|
|
33
|
-
Column({
|
|
41
|
+
Column({
|
|
42
|
+
name: "revoked_at",
|
|
43
|
+
type: "timestamptz",
|
|
44
|
+
nullable: true,
|
|
45
|
+
comment: "Data e hora em que o refresh token foi revogado, se aplic\xE1vel."
|
|
46
|
+
})
|
|
34
47
|
], RefreshToken.prototype, "revokedAt", 2);
|
|
35
48
|
__decorateClass([
|
|
36
|
-
Column({
|
|
49
|
+
Column({
|
|
50
|
+
type: "varchar",
|
|
51
|
+
length: 255,
|
|
52
|
+
unique: true,
|
|
53
|
+
comment: "Token de atualiza\xE7\xE3o propriamente dito, utilizado para renovar a sess\xE3o."
|
|
54
|
+
})
|
|
37
55
|
], RefreshToken.prototype, "token", 2);
|
|
38
56
|
__decorateClass([
|
|
39
|
-
Column({
|
|
57
|
+
Column({
|
|
58
|
+
name: "user_id",
|
|
59
|
+
type: "uuid",
|
|
60
|
+
comment: "Identificador do usu\xE1rio associado ao refresh token."
|
|
61
|
+
})
|
|
40
62
|
], RefreshToken.prototype, "userId", 2);
|
|
41
63
|
__decorateClass([
|
|
42
64
|
ManyToOne(() => User, (user) => user.refreshTokens, { onDelete: "CASCADE" }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-auth-provider.entity.d.ts","sourceRoot":"","sources":["../../../src/app-auth/user-auth-providers/user-auth-provider.entity.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAY1D,qBAEa,gBAAgB;
|
|
1
|
+
{"version":3,"file":"user-auth-provider.entity.d.ts","sourceRoot":"","sources":["../../../src/app-auth/user-auth-providers/user-auth-provider.entity.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAY1D,qBAEa,gBAAgB;IAI3B,EAAE,EAAE,MAAM,CAAC;IAOX,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAOhB,MAAM,EAAE,MAAM,CAAC;IAOf,QAAQ,EAAE,YAAY,CAAC;IAOvB,cAAc,EAAE,MAAM,CAAC;IAQvB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAS7B,IAAI,EAAE,IAAI,CAAC;CACZ"}
|
|
@@ -23,25 +23,52 @@ import { AuthProvider } from "./enums/auth-provider.enum.js";
|
|
|
23
23
|
let UserAuthProvider = class {
|
|
24
24
|
};
|
|
25
25
|
__decorateClass([
|
|
26
|
-
PrimaryGeneratedColumn(
|
|
26
|
+
PrimaryGeneratedColumn({
|
|
27
|
+
comment: "Identificador \xFAnico da associa\xE7\xE3o com o provedor de autentica\xE7\xE3o."
|
|
28
|
+
})
|
|
27
29
|
], UserAuthProvider.prototype, "id", 2);
|
|
28
30
|
__decorateClass([
|
|
29
|
-
CreateDateColumn({
|
|
31
|
+
CreateDateColumn({
|
|
32
|
+
name: "created_at",
|
|
33
|
+
type: "timestamptz",
|
|
34
|
+
comment: "Data e hora em que a associa\xE7\xE3o foi criada."
|
|
35
|
+
})
|
|
30
36
|
], UserAuthProvider.prototype, "createdAt", 2);
|
|
31
37
|
__decorateClass([
|
|
32
|
-
UpdateDateColumn({
|
|
38
|
+
UpdateDateColumn({
|
|
39
|
+
name: "updated_at",
|
|
40
|
+
type: "timestamptz",
|
|
41
|
+
comment: "Data e hora da \xFAltima atualiza\xE7\xE3o da associa\xE7\xE3o."
|
|
42
|
+
})
|
|
33
43
|
], UserAuthProvider.prototype, "updatedAt", 2);
|
|
34
44
|
__decorateClass([
|
|
35
|
-
Column({
|
|
45
|
+
Column({
|
|
46
|
+
name: "user_id",
|
|
47
|
+
type: "uuid",
|
|
48
|
+
comment: "Identificador do usu\xE1rio associado ao provedor de autentica\xE7\xE3o."
|
|
49
|
+
})
|
|
36
50
|
], UserAuthProvider.prototype, "userId", 2);
|
|
37
51
|
__decorateClass([
|
|
38
|
-
Column({
|
|
52
|
+
Column({
|
|
53
|
+
type: "enum",
|
|
54
|
+
enum: AuthProvider,
|
|
55
|
+
comment: "Nome do provedor de autentica\xE7\xE3o (ex: google, facebook)."
|
|
56
|
+
})
|
|
39
57
|
], UserAuthProvider.prototype, "provider", 2);
|
|
40
58
|
__decorateClass([
|
|
41
|
-
Column({
|
|
59
|
+
Column({
|
|
60
|
+
name: "provider_user_id",
|
|
61
|
+
type: "text",
|
|
62
|
+
comment: "Identificador do usu\xE1rio no sistema do provedor de autentica\xE7\xE3o."
|
|
63
|
+
})
|
|
42
64
|
], UserAuthProvider.prototype, "providerUserId", 2);
|
|
43
65
|
__decorateClass([
|
|
44
|
-
Column({
|
|
66
|
+
Column({
|
|
67
|
+
name: "provider_token",
|
|
68
|
+
type: "text",
|
|
69
|
+
nullable: true,
|
|
70
|
+
comment: "Token do provedor de autentica\xE7\xE3o, se fornecido."
|
|
71
|
+
})
|
|
45
72
|
], UserAuthProvider.prototype, "providerToken", 2);
|
|
46
73
|
__decorateClass([
|
|
47
74
|
ManyToOne(() => User, (user) => user.userAuthProviders, { onDelete: "CASCADE" }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-verification.entity.d.ts","sourceRoot":"","sources":["../../../src/app-auth/user-verifications/user-verification.entity.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAYlE,qBACa,gBAAgB;
|
|
1
|
+
{"version":3,"file":"user-verification.entity.d.ts","sourceRoot":"","sources":["../../../src/app-auth/user-verifications/user-verification.entity.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAEhC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAYlE,qBACa,gBAAgB;IAI3B,EAAE,EAAE,MAAM,CAAC;IAOX,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IAOxB,SAAS,EAAE,OAAO,CAAC;IAQnB,KAAK,EAAE,MAAM,CAAC;IAOd,MAAM,EAAE,MAAM,CAAC;IAOf,IAAI,EAAE,gBAAgB,CAAC;IASvB,IAAI,EAAE,IAAI,CAAC;CACZ"}
|
|
@@ -22,31 +22,67 @@ import { VerificationType } from "./enums/verification-type.enum.js";
|
|
|
22
22
|
let UserVerification = class {
|
|
23
23
|
};
|
|
24
24
|
__decorateClass([
|
|
25
|
-
PrimaryGeneratedColumn(
|
|
25
|
+
PrimaryGeneratedColumn({
|
|
26
|
+
comment: "Identificador \xFAnico da verifica\xE7\xE3o."
|
|
27
|
+
})
|
|
26
28
|
], UserVerification.prototype, "id", 2);
|
|
27
29
|
__decorateClass([
|
|
28
|
-
CreateDateColumn({
|
|
30
|
+
CreateDateColumn({
|
|
31
|
+
name: "created_at",
|
|
32
|
+
type: "timestamptz",
|
|
33
|
+
comment: "Data e hora de cria\xE7\xE3o da verifica\xE7\xE3o."
|
|
34
|
+
})
|
|
29
35
|
], UserVerification.prototype, "createdAt", 2);
|
|
30
36
|
__decorateClass([
|
|
31
|
-
UpdateDateColumn({
|
|
37
|
+
UpdateDateColumn({
|
|
38
|
+
name: "updated_at",
|
|
39
|
+
type: "timestamptz",
|
|
40
|
+
comment: "Data e hora da \xFAltima atualiza\xE7\xE3o da verifica\xE7\xE3o."
|
|
41
|
+
})
|
|
32
42
|
], UserVerification.prototype, "updatedAt", 2);
|
|
33
43
|
__decorateClass([
|
|
34
|
-
Column({
|
|
44
|
+
Column({
|
|
45
|
+
name: "expires_at",
|
|
46
|
+
type: "timestamptz",
|
|
47
|
+
comment: "Data e hora em que a verifica\xE7\xE3o expira."
|
|
48
|
+
})
|
|
35
49
|
], UserVerification.prototype, "expiresAt", 2);
|
|
36
50
|
__decorateClass([
|
|
37
|
-
Column({
|
|
51
|
+
Column({
|
|
52
|
+
name: "verified_at",
|
|
53
|
+
type: "timestamptz",
|
|
54
|
+
nullable: true,
|
|
55
|
+
comment: "Data e hora em que a verifica\xE7\xE3o foi conclu\xEDda, se aplic\xE1vel."
|
|
56
|
+
})
|
|
38
57
|
], UserVerification.prototype, "verifiedAt", 2);
|
|
39
58
|
__decorateClass([
|
|
40
|
-
Column({
|
|
59
|
+
Column({
|
|
60
|
+
type: "boolean",
|
|
61
|
+
default: false,
|
|
62
|
+
comment: "Indica se o token de verifica\xE7\xE3o foi invalidado."
|
|
63
|
+
})
|
|
41
64
|
], UserVerification.prototype, "isInvalid", 2);
|
|
42
65
|
__decorateClass([
|
|
43
|
-
Column({
|
|
66
|
+
Column({
|
|
67
|
+
type: "varchar",
|
|
68
|
+
length: 255,
|
|
69
|
+
unique: true,
|
|
70
|
+
comment: "Token utilizado no processo de verifica\xE7\xE3o."
|
|
71
|
+
})
|
|
44
72
|
], UserVerification.prototype, "token", 2);
|
|
45
73
|
__decorateClass([
|
|
46
|
-
Column({
|
|
74
|
+
Column({
|
|
75
|
+
name: "user_id",
|
|
76
|
+
type: "uuid",
|
|
77
|
+
comment: "Identificador do usu\xE1rio associado \xE0 verifica\xE7\xE3o."
|
|
78
|
+
})
|
|
47
79
|
], UserVerification.prototype, "userId", 2);
|
|
48
80
|
__decorateClass([
|
|
49
|
-
Column({
|
|
81
|
+
Column({
|
|
82
|
+
type: "enum",
|
|
83
|
+
enum: VerificationType,
|
|
84
|
+
comment: "Tipo da verifica\xE7\xE3o (ex: email, telefone)."
|
|
85
|
+
})
|
|
50
86
|
], UserVerification.prototype, "type", 2);
|
|
51
87
|
__decorateClass([
|
|
52
88
|
ManyToOne(() => User, (user) => user.verifications, { onDelete: "CASCADE" }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.d.ts","sourceRoot":"","sources":["../../../src/app-auth/users/user.entity.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAczD,qBAKa,IAAI;
|
|
1
|
+
{"version":3,"file":"user.entity.d.ts","sourceRoot":"","sources":["../../../src/app-auth/users/user.entity.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAczD,qBAKa,IAAI;IAIf,EAAE,EAAE,MAAM,CAAC;IAUX,SAAS,EAAE,MAAM,CAAC;IAOlB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,CAAC,EAAE,IAAI,CAAC;IASjB,SAAS,CAAC,EAAE,MAAM,CAAC;IASnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAQlB,KAAK,EAAE,MAAM,CAAC;IASd,QAAQ,EAAE,MAAM,CAAC;IASjB,GAAG,CAAC,EAAE,MAAM,CAAC;IAUb,KAAK,CAAC,EAAE,MAAM,CAAC;IASf,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAS5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,aAAa,EAAE,YAAY,EAAE,CAAC;IAG9B,cAAc,EAAE,aAAa,EAAE,CAAC;IAGhC,aAAa,EAAE,gBAAgB,EAAE,CAAC;IAKlC,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;IAKtC,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;IAKtC,oBAAoB,EAAE,mBAAmB,EAAE,CAAC;IAM5C,WAAW,IAAI,IAAI;CAGpB"}
|
|
@@ -32,7 +32,9 @@ let User = class {
|
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
__decorateClass([
|
|
35
|
-
PrimaryGeneratedColumn("uuid"
|
|
35
|
+
PrimaryGeneratedColumn("uuid", {
|
|
36
|
+
comment: "Identificador \xFAnico do usu\xE1rio (UUID)."
|
|
37
|
+
})
|
|
36
38
|
], User.prototype, "id", 2);
|
|
37
39
|
__decorateClass([
|
|
38
40
|
Column({
|
|
@@ -40,32 +42,75 @@ __decorateClass([
|
|
|
40
42
|
type: "int",
|
|
41
43
|
unique: true,
|
|
42
44
|
nullable: false,
|
|
43
|
-
generated: "increment"
|
|
45
|
+
generated: "increment",
|
|
46
|
+
comment: "Identificador incremental \xFAnico para facilitar a visualiza\xE7\xE3o/administra\xE7\xE3o."
|
|
44
47
|
})
|
|
45
48
|
], User.prototype, "numericId", 2);
|
|
46
49
|
__decorateClass([
|
|
47
|
-
CreateDateColumn({
|
|
50
|
+
CreateDateColumn({
|
|
51
|
+
name: "created_at",
|
|
52
|
+
type: "timestamptz",
|
|
53
|
+
comment: "Data e hora em que o usu\xE1rio foi criado."
|
|
54
|
+
})
|
|
48
55
|
], User.prototype, "createdAt", 2);
|
|
49
56
|
__decorateClass([
|
|
50
|
-
UpdateDateColumn({
|
|
57
|
+
UpdateDateColumn({
|
|
58
|
+
name: "updated_at",
|
|
59
|
+
type: "timestamptz",
|
|
60
|
+
comment: "Data e hora da \xFAltima atualiza\xE7\xE3o dos dados do usu\xE1rio."
|
|
61
|
+
})
|
|
51
62
|
], User.prototype, "updatedAt", 2);
|
|
52
63
|
__decorateClass([
|
|
53
|
-
DeleteDateColumn({
|
|
64
|
+
DeleteDateColumn({
|
|
65
|
+
name: "deleted_at",
|
|
66
|
+
type: "timestamptz",
|
|
67
|
+
nullable: true,
|
|
68
|
+
comment: "Data e hora em que o usu\xE1rio foi deletado (soft delete), se aplic\xE1vel."
|
|
69
|
+
})
|
|
54
70
|
], User.prototype, "deletedAt", 2);
|
|
55
71
|
__decorateClass([
|
|
56
|
-
Column({
|
|
72
|
+
Column({
|
|
73
|
+
name: "first_name",
|
|
74
|
+
type: "varchar",
|
|
75
|
+
length: 255,
|
|
76
|
+
nullable: true,
|
|
77
|
+
comment: "Primeiro nome do usu\xE1rio."
|
|
78
|
+
})
|
|
57
79
|
], User.prototype, "firstName", 2);
|
|
58
80
|
__decorateClass([
|
|
59
|
-
Column({
|
|
81
|
+
Column({
|
|
82
|
+
name: "last_name",
|
|
83
|
+
type: "varchar",
|
|
84
|
+
length: 255,
|
|
85
|
+
nullable: true,
|
|
86
|
+
comment: "\xDAltimo nome do usu\xE1rio."
|
|
87
|
+
})
|
|
60
88
|
], User.prototype, "lastName", 2);
|
|
61
89
|
__decorateClass([
|
|
62
|
-
Column({
|
|
90
|
+
Column({
|
|
91
|
+
type: "varchar",
|
|
92
|
+
length: 255,
|
|
93
|
+
unique: true,
|
|
94
|
+
comment: "Endere\xE7o de email do usu\xE1rio."
|
|
95
|
+
})
|
|
63
96
|
], User.prototype, "email", 2);
|
|
64
97
|
__decorateClass([
|
|
65
|
-
Column({
|
|
98
|
+
Column({
|
|
99
|
+
type: "varchar",
|
|
100
|
+
length: 255,
|
|
101
|
+
unique: true,
|
|
102
|
+
nullable: true,
|
|
103
|
+
comment: "Nome de usu\xE1rio \xFAnico (username), usado para login ou exibi\xE7\xE3o p\xFAblica."
|
|
104
|
+
})
|
|
66
105
|
], User.prototype, "username", 2);
|
|
67
106
|
__decorateClass([
|
|
68
|
-
Column({
|
|
107
|
+
Column({
|
|
108
|
+
type: "varchar",
|
|
109
|
+
length: 14,
|
|
110
|
+
nullable: true,
|
|
111
|
+
unique: true,
|
|
112
|
+
comment: "N\xFAmero do CPF do usu\xE1rio, se fornecido."
|
|
113
|
+
})
|
|
69
114
|
], User.prototype, "cpf", 2);
|
|
70
115
|
__decorateClass([
|
|
71
116
|
Column({
|
|
@@ -73,7 +118,8 @@ __decorateClass([
|
|
|
73
118
|
type: "varchar",
|
|
74
119
|
length: 16,
|
|
75
120
|
unique: true,
|
|
76
|
-
nullable: true
|
|
121
|
+
nullable: true,
|
|
122
|
+
comment: "N\xFAmero de telefone do usu\xE1rio."
|
|
77
123
|
})
|
|
78
124
|
], User.prototype, "phone", 2);
|
|
79
125
|
__decorateClass([
|
|
@@ -81,11 +127,18 @@ __decorateClass([
|
|
|
81
127
|
name: "password_hash",
|
|
82
128
|
type: "varchar",
|
|
83
129
|
length: 255,
|
|
84
|
-
nullable: true
|
|
130
|
+
nullable: true,
|
|
131
|
+
comment: "Hash da senha do usu\xE1rio."
|
|
85
132
|
})
|
|
86
133
|
], User.prototype, "passwordHash", 2);
|
|
87
134
|
__decorateClass([
|
|
88
|
-
Column({
|
|
135
|
+
Column({
|
|
136
|
+
name: "image_url",
|
|
137
|
+
type: "varchar",
|
|
138
|
+
length: 500,
|
|
139
|
+
nullable: true,
|
|
140
|
+
comment: "URL da imagem de perfil do usu\xE1rio."
|
|
141
|
+
})
|
|
89
142
|
], User.prototype, "imageUrl", 2);
|
|
90
143
|
__decorateClass([
|
|
91
144
|
OneToMany(() => RefreshToken, (refreshToken) => refreshToken.user)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Coupon } from 'coupons/coupons/coupon.entity';
|
|
2
|
+
export declare class CouponUsage {
|
|
3
|
+
id: number;
|
|
4
|
+
couponId: number;
|
|
5
|
+
targetType: string;
|
|
6
|
+
targetId: number;
|
|
7
|
+
createdAt: Date;
|
|
8
|
+
coupon: Coupon;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=coupon-usage.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coupon-usage.entity.d.ts","sourceRoot":"","sources":["../../../src/coupons/coupon-usages/coupon-usage.entity.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAWvD,qBACa,WAAW;IAEtB,EAAE,EAAE,MAAM,CAAC;IAGX,QAAQ,EAAE,MAAM,CAAC;IAQjB,UAAU,EAAE,MAAM,CAAC;IAOnB,QAAQ,EAAE,MAAM,CAAC;IAOjB,SAAS,EAAE,IAAI,CAAC;IAQhB,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
4
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
5
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6
|
+
if (decorator = decorators[i])
|
|
7
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8
|
+
if (kind && result) __defProp(target, key, result);
|
|
9
|
+
return result;
|
|
10
|
+
};
|
|
11
|
+
import {
|
|
12
|
+
Column,
|
|
13
|
+
CreateDateColumn,
|
|
14
|
+
Entity,
|
|
15
|
+
JoinColumn,
|
|
16
|
+
ManyToOne,
|
|
17
|
+
PrimaryGeneratedColumn
|
|
18
|
+
} from "typeorm";
|
|
19
|
+
import { Coupon } from "coupons/coupons/coupon.entity";
|
|
20
|
+
let CouponUsage = class {
|
|
21
|
+
};
|
|
22
|
+
__decorateClass([
|
|
23
|
+
PrimaryGeneratedColumn({ comment: "Identificador \xFAnico do uso do cupom." })
|
|
24
|
+
], CouponUsage.prototype, "id", 2);
|
|
25
|
+
__decorateClass([
|
|
26
|
+
Column({ name: "coupon_id", type: "int", comment: "ID do cupom utilizado." })
|
|
27
|
+
], CouponUsage.prototype, "couponId", 2);
|
|
28
|
+
__decorateClass([
|
|
29
|
+
Column({
|
|
30
|
+
name: "target_type",
|
|
31
|
+
type: "varchar",
|
|
32
|
+
length: 50,
|
|
33
|
+
comment: "Tipo do objeto que utilizou o cupom (ex: tournament, subscription, etc)."
|
|
34
|
+
})
|
|
35
|
+
], CouponUsage.prototype, "targetType", 2);
|
|
36
|
+
__decorateClass([
|
|
37
|
+
Column({
|
|
38
|
+
name: "target_id",
|
|
39
|
+
type: "int",
|
|
40
|
+
comment: "Identificador do objeto que utilizou o cupom."
|
|
41
|
+
})
|
|
42
|
+
], CouponUsage.prototype, "targetId", 2);
|
|
43
|
+
__decorateClass([
|
|
44
|
+
CreateDateColumn({
|
|
45
|
+
name: "created_at",
|
|
46
|
+
type: "timestamptz",
|
|
47
|
+
comment: "Data em que o cupom foi utilizado."
|
|
48
|
+
})
|
|
49
|
+
], CouponUsage.prototype, "createdAt", 2);
|
|
50
|
+
__decorateClass([
|
|
51
|
+
ManyToOne(() => Coupon, (coupon) => coupon.couponUsages, {
|
|
52
|
+
onDelete: "CASCADE"
|
|
53
|
+
}),
|
|
54
|
+
JoinColumn({ name: "coupon_id" })
|
|
55
|
+
], CouponUsage.prototype, "coupon", 2);
|
|
56
|
+
CouponUsage = __decorateClass([
|
|
57
|
+
Entity("coupon_usages")
|
|
58
|
+
], CouponUsage);
|
|
59
|
+
export {
|
|
60
|
+
CouponUsage
|
|
61
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/coupons/coupon-usages/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CouponUsage } from 'coupons/coupon-usages/coupon-usage.entity';
|
|
2
|
+
import { TournamentCoupon } from 'tournaments/tournament-coupons/tournament-coupon.entity';
|
|
3
|
+
import { CouponDiscountType } from './enums/coupon-discount-type.enum';
|
|
4
|
+
export declare class Coupon {
|
|
5
|
+
id: number;
|
|
6
|
+
code: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
discountType: CouponDiscountType;
|
|
9
|
+
discountValue: number;
|
|
10
|
+
validFrom: Date;
|
|
11
|
+
validUntil: Date;
|
|
12
|
+
usageLimit?: number;
|
|
13
|
+
isActive: boolean;
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
updatedAt: Date;
|
|
16
|
+
couponUsages: CouponUsage[];
|
|
17
|
+
tournamentCoupons: TournamentCoupon[];
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=coupon.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coupon.entity.d.ts","sourceRoot":"","sources":["../../../src/coupons/coupons/coupon.entity.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yDAAyD,CAAC;AAE3F,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAWvE,qBAGa,MAAM;IAEjB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAQb,WAAW,CAAC,EAAE,MAAM,CAAC;IAQrB,YAAY,EAAE,kBAAkB,CAAC;IAMjC,aAAa,EAAE,MAAM,CAAC;IAOtB,SAAS,EAAE,IAAI,CAAC;IAGhB,UAAU,EAAE,IAAI,CAAC;IAQjB,UAAU,CAAC,EAAE,MAAM,CAAC;IAQpB,QAAQ,EAAE,OAAO,CAAC;IAOlB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAKhB,YAAY,EAAE,WAAW,EAAE,CAAC;IAG5B,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;CACvC"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
4
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
5
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6
|
+
if (decorator = decorators[i])
|
|
7
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8
|
+
if (kind && result) __defProp(target, key, result);
|
|
9
|
+
return result;
|
|
10
|
+
};
|
|
11
|
+
import {
|
|
12
|
+
Column,
|
|
13
|
+
CreateDateColumn,
|
|
14
|
+
Entity,
|
|
15
|
+
Index,
|
|
16
|
+
OneToMany,
|
|
17
|
+
PrimaryGeneratedColumn,
|
|
18
|
+
Unique,
|
|
19
|
+
UpdateDateColumn
|
|
20
|
+
} from "typeorm";
|
|
21
|
+
import { CouponUsage } from "coupons/coupon-usages/coupon-usage.entity";
|
|
22
|
+
import { TournamentCoupon } from "tournaments/tournament-coupons/tournament-coupon.entity";
|
|
23
|
+
import { CouponDiscountType } from "./enums/coupon-discount-type.enum.js";
|
|
24
|
+
let Coupon = class {
|
|
25
|
+
};
|
|
26
|
+
__decorateClass([
|
|
27
|
+
PrimaryGeneratedColumn({ comment: "Identificador \xFAnico do cupom." })
|
|
28
|
+
], Coupon.prototype, "id", 2);
|
|
29
|
+
__decorateClass([
|
|
30
|
+
Column({ type: "varchar", length: 100, comment: "C\xF3digo do cupom." })
|
|
31
|
+
], Coupon.prototype, "code", 2);
|
|
32
|
+
__decorateClass([
|
|
33
|
+
Column({
|
|
34
|
+
type: "varchar",
|
|
35
|
+
length: 255,
|
|
36
|
+
nullable: true,
|
|
37
|
+
comment: "Descri\xE7\xE3o do cupom (opcional)."
|
|
38
|
+
})
|
|
39
|
+
], Coupon.prototype, "description", 2);
|
|
40
|
+
__decorateClass([
|
|
41
|
+
Column({
|
|
42
|
+
type: "enum",
|
|
43
|
+
enum: CouponDiscountType,
|
|
44
|
+
default: CouponDiscountType.FIXED,
|
|
45
|
+
comment: "Tipo de desconto: valor fixo ou percentual."
|
|
46
|
+
})
|
|
47
|
+
], Coupon.prototype, "discountType", 2);
|
|
48
|
+
__decorateClass([
|
|
49
|
+
Column({
|
|
50
|
+
type: "int",
|
|
51
|
+
comment: "Valor do desconto (em centavos para FIXED ou percentual para PERCENTAGE)."
|
|
52
|
+
})
|
|
53
|
+
], Coupon.prototype, "discountValue", 2);
|
|
54
|
+
__decorateClass([
|
|
55
|
+
Column({
|
|
56
|
+
name: "valid_from",
|
|
57
|
+
type: "timestamptz",
|
|
58
|
+
comment: "Data de in\xEDcio de validade do cupom."
|
|
59
|
+
})
|
|
60
|
+
], Coupon.prototype, "validFrom", 2);
|
|
61
|
+
__decorateClass([
|
|
62
|
+
Column({ name: "valid_until", type: "timestamptz", comment: "Data final de validade do cupom." })
|
|
63
|
+
], Coupon.prototype, "validUntil", 2);
|
|
64
|
+
__decorateClass([
|
|
65
|
+
Column({
|
|
66
|
+
name: "usage_limit",
|
|
67
|
+
type: "int",
|
|
68
|
+
nullable: true,
|
|
69
|
+
comment: "N\xFAmero m\xE1ximo de usos permitidos (opcional)."
|
|
70
|
+
})
|
|
71
|
+
], Coupon.prototype, "usageLimit", 2);
|
|
72
|
+
__decorateClass([
|
|
73
|
+
Column({
|
|
74
|
+
name: "is_active",
|
|
75
|
+
type: "boolean",
|
|
76
|
+
default: true,
|
|
77
|
+
comment: "Indica se o cupom est\xE1 ativo."
|
|
78
|
+
})
|
|
79
|
+
], Coupon.prototype, "isActive", 2);
|
|
80
|
+
__decorateClass([
|
|
81
|
+
CreateDateColumn({
|
|
82
|
+
name: "created_at",
|
|
83
|
+
type: "timestamptz",
|
|
84
|
+
comment: "Data de cria\xE7\xE3o do cupom."
|
|
85
|
+
})
|
|
86
|
+
], Coupon.prototype, "createdAt", 2);
|
|
87
|
+
__decorateClass([
|
|
88
|
+
UpdateDateColumn({
|
|
89
|
+
name: "updated_at",
|
|
90
|
+
type: "timestamptz",
|
|
91
|
+
comment: "Data da \xFAltima atualiza\xE7\xE3o do cupom."
|
|
92
|
+
})
|
|
93
|
+
], Coupon.prototype, "updatedAt", 2);
|
|
94
|
+
__decorateClass([
|
|
95
|
+
OneToMany(() => CouponUsage, (couponUsage) => couponUsage.coupon)
|
|
96
|
+
], Coupon.prototype, "couponUsages", 2);
|
|
97
|
+
__decorateClass([
|
|
98
|
+
OneToMany(() => TournamentCoupon, (tournamentCoupon) => tournamentCoupon.coupon)
|
|
99
|
+
], Coupon.prototype, "tournamentCoupons", 2);
|
|
100
|
+
Coupon = __decorateClass([
|
|
101
|
+
Entity("coupons"),
|
|
102
|
+
Unique(["code"]),
|
|
103
|
+
Index("IDX_coupon_code", ["code"])
|
|
104
|
+
], Coupon);
|
|
105
|
+
export {
|
|
106
|
+
Coupon
|
|
107
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coupon-discount-type.enum.d.ts","sourceRoot":"","sources":["../../../../src/coupons/coupons/enums/coupon-discount-type.enum.ts"],"names":[],"mappings":"AASA,oBAAY,kBAAkB;IAI5B,KAAK,UAAU;IAKf,UAAU,eAAe;CAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/coupons/coupons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC"}
|