@natrave/shared-entities 1.2.12 → 1.2.13
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/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/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/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/tournament-team.entity.d.ts.map +1 -1
- package/dist/tournaments/tournament-teams/tournament-team.entity.js +40 -13
- package/dist/tournaments/tournaments/tournament.entity.d.ts +2 -1
- package/dist/tournaments/tournaments/tournament.entity.d.ts.map +1 -1
- package/dist/tournaments/tournaments/tournament.entity.js +63 -21
- package/package.json +3 -3
|
@@ -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)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address.entity.d.ts","sourceRoot":"","sources":["../../../src/facilities/addresses/address.entity.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,QAAQ,EAAE,MAAM,6CAA6C,CAAC;AAWvE,qBACa,OAAO;
|
|
1
|
+
{"version":3,"file":"address.entity.d.ts","sourceRoot":"","sources":["../../../src/facilities/addresses/address.entity.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,QAAQ,EAAE,MAAM,6CAA6C,CAAC;AAWvE,qBACa,OAAO;IAIlB,EAAE,EAAE,MAAM,CAAC;IAOX,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,aAAa,EAAE,MAAM,CAAC;IAOtB,MAAM,EAAE,MAAM,CAAC;IAQf,UAAU,CAAC,EAAE,MAAM,CAAC;IAOpB,YAAY,EAAE,MAAM,CAAC;IAOrB,IAAI,EAAE,MAAM,CAAC;IAOb,KAAK,EAAE,MAAM,CAAC;IAQd,UAAU,EAAE,MAAM,CAAC;IAOnB,OAAO,EAAE,MAAM,CAAC;IAShB,QAAQ,EAAE,MAAM,CAAC;IASjB,SAAS,EAAE,MAAM,CAAC;IAUlB,UAAU,EAAE,QAAQ,EAAE,CAAC;CACxB"}
|
|
@@ -21,44 +21,90 @@ import { Facility } from "../../facilities/facilities/facility.entity.js";
|
|
|
21
21
|
let Address = class {
|
|
22
22
|
};
|
|
23
23
|
__decorateClass([
|
|
24
|
-
PrimaryGeneratedColumn(
|
|
24
|
+
PrimaryGeneratedColumn({
|
|
25
|
+
comment: "Identificador \xFAnico do endere\xE7o."
|
|
26
|
+
})
|
|
25
27
|
], Address.prototype, "id", 2);
|
|
26
28
|
__decorateClass([
|
|
27
|
-
CreateDateColumn({
|
|
29
|
+
CreateDateColumn({
|
|
30
|
+
name: "created_at",
|
|
31
|
+
type: "timestamptz",
|
|
32
|
+
comment: "Data e hora de cria\xE7\xE3o do endere\xE7o."
|
|
33
|
+
})
|
|
28
34
|
], Address.prototype, "createdAt", 2);
|
|
29
35
|
__decorateClass([
|
|
30
|
-
UpdateDateColumn({
|
|
36
|
+
UpdateDateColumn({
|
|
37
|
+
name: "updated_at",
|
|
38
|
+
type: "timestamptz",
|
|
39
|
+
comment: "Data e hora da \xFAltima atualiza\xE7\xE3o do endere\xE7o."
|
|
40
|
+
})
|
|
31
41
|
], Address.prototype, "updatedAt", 2);
|
|
32
42
|
__decorateClass([
|
|
33
|
-
Column({
|
|
43
|
+
Column({
|
|
44
|
+
name: "street_address",
|
|
45
|
+
type: "varchar",
|
|
46
|
+
length: 255,
|
|
47
|
+
comment: "Nome da rua ou logradouro."
|
|
48
|
+
})
|
|
34
49
|
], Address.prototype, "streetAddress", 2);
|
|
35
50
|
__decorateClass([
|
|
36
|
-
Column({
|
|
51
|
+
Column({
|
|
52
|
+
type: "varchar",
|
|
53
|
+
length: 10,
|
|
54
|
+
comment: "N\xFAmero do endere\xE7o."
|
|
55
|
+
})
|
|
37
56
|
], Address.prototype, "number", 2);
|
|
38
57
|
__decorateClass([
|
|
39
|
-
Column({
|
|
58
|
+
Column({
|
|
59
|
+
type: "varchar",
|
|
60
|
+
length: 100,
|
|
61
|
+
nullable: true,
|
|
62
|
+
comment: "Complemento do endere\xE7o (ex: apto, bloco)."
|
|
63
|
+
})
|
|
40
64
|
], Address.prototype, "complement", 2);
|
|
41
65
|
__decorateClass([
|
|
42
|
-
Column({
|
|
66
|
+
Column({
|
|
67
|
+
type: "varchar",
|
|
68
|
+
length: 100,
|
|
69
|
+
comment: "Bairro do endere\xE7o."
|
|
70
|
+
})
|
|
43
71
|
], Address.prototype, "neighborhood", 2);
|
|
44
72
|
__decorateClass([
|
|
45
|
-
Column({
|
|
73
|
+
Column({
|
|
74
|
+
type: "varchar",
|
|
75
|
+
length: 100,
|
|
76
|
+
comment: "Cidade do endere\xE7o."
|
|
77
|
+
})
|
|
46
78
|
], Address.prototype, "city", 2);
|
|
47
79
|
__decorateClass([
|
|
48
|
-
Column({
|
|
80
|
+
Column({
|
|
81
|
+
type: "varchar",
|
|
82
|
+
length: 100,
|
|
83
|
+
comment: "Estado do endere\xE7o."
|
|
84
|
+
})
|
|
49
85
|
], Address.prototype, "state", 2);
|
|
50
86
|
__decorateClass([
|
|
51
|
-
Column({
|
|
87
|
+
Column({
|
|
88
|
+
name: "postal_code",
|
|
89
|
+
type: "varchar",
|
|
90
|
+
length: 20,
|
|
91
|
+
comment: "C\xF3digo postal (CEP)."
|
|
92
|
+
})
|
|
52
93
|
], Address.prototype, "postalCode", 2);
|
|
53
94
|
__decorateClass([
|
|
54
|
-
Column({
|
|
95
|
+
Column({
|
|
96
|
+
type: "varchar",
|
|
97
|
+
length: 100,
|
|
98
|
+
comment: "Pa\xEDs do endere\xE7o."
|
|
99
|
+
})
|
|
55
100
|
], Address.prototype, "country", 2);
|
|
56
101
|
__decorateClass([
|
|
57
102
|
Column({
|
|
58
103
|
type: "decimal",
|
|
59
104
|
precision: 10,
|
|
60
105
|
scale: 8,
|
|
61
|
-
transformer: DecimalTransformer
|
|
106
|
+
transformer: DecimalTransformer,
|
|
107
|
+
comment: "Coordenada geogr\xE1fica de latitude."
|
|
62
108
|
})
|
|
63
109
|
], Address.prototype, "latitude", 2);
|
|
64
110
|
__decorateClass([
|
|
@@ -66,7 +112,8 @@ __decorateClass([
|
|
|
66
112
|
type: "decimal",
|
|
67
113
|
precision: 11,
|
|
68
114
|
scale: 8,
|
|
69
|
-
transformer: DecimalTransformer
|
|
115
|
+
transformer: DecimalTransformer,
|
|
116
|
+
comment: "Coordenada geogr\xE1fica de longitude."
|
|
70
117
|
})
|
|
71
118
|
], Address.prototype, "longitude", 2);
|
|
72
119
|
__decorateClass([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"facility.entity.d.ts","sourceRoot":"","sources":["../../../src/facilities/facilities/facility.entity.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAElC,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAa9D,qBAKa,QAAQ;
|
|
1
|
+
{"version":3,"file":"facility.entity.d.ts","sourceRoot":"","sources":["../../../src/facilities/facilities/facility.entity.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAElC,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAa9D,qBAKa,QAAQ;IAInB,EAAE,EAAE,MAAM,CAAC;IAOX,eAAe,EAAE,MAAM,CAAC;IAOxB,SAAS,EAAE,MAAM,CAAC;IAOlB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,IAAI,EAAE,MAAM,CAAC;IASb,YAAY,CAAC,EAAE,MAAM,CAAC;IAQtB,YAAY,EAAE,MAAM,CAAC;IAQrB,MAAM,EAAE,cAAc,CAA0B;IAShD,IAAI,CAAC,EAAE,MAAM,CAAC;IAQd,SAAS,EAAE,IAAI,GAAG,IAAI,CAAQ;IAU9B,OAAO,EAAE,OAAO,CAAC;IAOjB,aAAa,EAAE,aAAa,CAAC;IAG7B,MAAM,EAAE,KAAK,EAAE,CAAC;IAGhB,cAAc,EAAE,aAAa,EAAE,CAAC;IAGhC,oBAAoB,EAAE,kBAAkB,EAAE,CAAC;IAO3C,cAAc,IAAI,IAAI;CAGvB"}
|
|
@@ -40,46 +40,87 @@ let Facility = class {
|
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
__decorateClass([
|
|
43
|
-
PrimaryGeneratedColumn(
|
|
43
|
+
PrimaryGeneratedColumn({
|
|
44
|
+
comment: "Identificador \xFAnico do estabelecimento."
|
|
45
|
+
})
|
|
44
46
|
], Facility.prototype, "id", 2);
|
|
45
47
|
__decorateClass([
|
|
46
|
-
Column({
|
|
48
|
+
Column({
|
|
49
|
+
name: "facility_owner_id",
|
|
50
|
+
type: "int",
|
|
51
|
+
comment: "Identificador do propriet\xE1rio do estabelecimento."
|
|
52
|
+
})
|
|
47
53
|
], Facility.prototype, "facilityOwnerId", 2);
|
|
48
54
|
__decorateClass([
|
|
49
|
-
Column({
|
|
55
|
+
Column({
|
|
56
|
+
name: "address_id",
|
|
57
|
+
type: "int",
|
|
58
|
+
comment: "Identificador do endere\xE7o associado ao estabelecimento."
|
|
59
|
+
})
|
|
50
60
|
], Facility.prototype, "addressId", 2);
|
|
51
61
|
__decorateClass([
|
|
52
|
-
CreateDateColumn({
|
|
62
|
+
CreateDateColumn({
|
|
63
|
+
name: "created_at",
|
|
64
|
+
type: "timestamptz",
|
|
65
|
+
comment: "Data e hora em que o estabelecimento foi criado."
|
|
66
|
+
})
|
|
53
67
|
], Facility.prototype, "createdAt", 2);
|
|
54
68
|
__decorateClass([
|
|
55
|
-
UpdateDateColumn({
|
|
69
|
+
UpdateDateColumn({
|
|
70
|
+
name: "updated_at",
|
|
71
|
+
type: "timestamptz",
|
|
72
|
+
comment: "Data e hora da \xFAltima atualiza\xE7\xE3o do estabelecimento."
|
|
73
|
+
})
|
|
56
74
|
], Facility.prototype, "updatedAt", 2);
|
|
57
75
|
__decorateClass([
|
|
58
|
-
Column({
|
|
76
|
+
Column({
|
|
77
|
+
name: "name",
|
|
78
|
+
type: "varchar",
|
|
79
|
+
length: 255,
|
|
80
|
+
comment: "Nome do estabelecimento."
|
|
81
|
+
})
|
|
59
82
|
], Facility.prototype, "name", 2);
|
|
60
83
|
__decorateClass([
|
|
61
84
|
Column({
|
|
62
85
|
name: "contact_email",
|
|
63
86
|
type: "varchar",
|
|
64
87
|
length: 255,
|
|
65
|
-
nullable: true
|
|
88
|
+
nullable: true,
|
|
89
|
+
comment: "Email de contato do estabelecimento."
|
|
66
90
|
})
|
|
67
91
|
], Facility.prototype, "contactEmail", 2);
|
|
68
92
|
__decorateClass([
|
|
69
|
-
Column({
|
|
93
|
+
Column({
|
|
94
|
+
name: "contact_phone",
|
|
95
|
+
type: "varchar",
|
|
96
|
+
length: 16,
|
|
97
|
+
comment: "Telefone de contato do estabelecimento."
|
|
98
|
+
})
|
|
70
99
|
], Facility.prototype, "contactPhone", 2);
|
|
71
100
|
__decorateClass([
|
|
72
101
|
Column({
|
|
73
102
|
type: "enum",
|
|
74
103
|
enum: FacilityStatus,
|
|
75
|
-
enumName: "facility_status"
|
|
104
|
+
enumName: "facility_status",
|
|
105
|
+
comment: "Status atual do estabelecimento (ex: PENDING, APPROVED)."
|
|
76
106
|
})
|
|
77
107
|
], Facility.prototype, "status", 2);
|
|
78
108
|
__decorateClass([
|
|
79
|
-
Column({
|
|
109
|
+
Column({
|
|
110
|
+
name: "cnpj",
|
|
111
|
+
type: "varchar",
|
|
112
|
+
length: 14,
|
|
113
|
+
nullable: true,
|
|
114
|
+
comment: "CNPJ do estabelecimento, se aplic\xE1vel."
|
|
115
|
+
})
|
|
80
116
|
], Facility.prototype, "cnpj", 2);
|
|
81
117
|
__decorateClass([
|
|
82
|
-
DeleteDateColumn({
|
|
118
|
+
DeleteDateColumn({
|
|
119
|
+
name: "deleted_at",
|
|
120
|
+
type: "timestamptz",
|
|
121
|
+
nullable: true,
|
|
122
|
+
comment: "Data de exclus\xE3o l\xF3gica (soft delete) do estabelecimento."
|
|
123
|
+
})
|
|
83
124
|
], Facility.prototype, "deletedAt", 2);
|
|
84
125
|
__decorateClass([
|
|
85
126
|
ManyToOne(() => Address, (address) => address.facilities, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"facility-image.entity.d.ts","sourceRoot":"","sources":["../../../src/facilities/facility-images/facility-image.entity.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAYzC,qBAOa,aAAa;
|
|
1
|
+
{"version":3,"file":"facility-image.entity.d.ts","sourceRoot":"","sources":["../../../src/facilities/facility-images/facility-image.entity.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAYzC,qBAOa,aAAa;IAIxB,EAAE,EAAE,MAAM,CAAC;IAOX,UAAU,EAAE,MAAM,CAAC;IAOnB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAMhB,GAAG,EAAE,MAAM,CAAC;IAQZ,WAAW,EAAE,MAAM,CAAC;IAQpB,SAAS,EAAE,OAAO,CAAC;IAWnB,QAAQ,EAAE,QAAQ,CAAC;CACpB"}
|