@natrave/shared-entities 1.4.37 → 1.4.38
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.d.ts","sourceRoot":"","sources":["../../../src/app-auth/users/user.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"user.entity.d.ts","sourceRoot":"","sources":["../../../src/app-auth/users/user.entity.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAa7C,qBAea,IAAI;IAIf,EAAE,EAAE,MAAM,CAAC;IAUX,SAAS,EAAE,MAAM,CAAC;IAOlB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAQhB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IASvB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAQpB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAQzB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAQ3B,KAAK,EAAE,MAAM,CAAC;IAQd,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAStB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAUnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IASrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAKxB,aAAa,EAAE,YAAY,EAAE,CAAC;IAK9B,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;IAKtC,MAAM,EAAE,MAAM,CAAC;IAGf,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IAMxC,WAAW,IAAI,IAAI;CAGpB"}
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
BeforeInsert,
|
|
13
13
|
Column,
|
|
14
14
|
CreateDateColumn,
|
|
15
|
+
DeleteDateColumn,
|
|
15
16
|
Entity,
|
|
16
17
|
Index,
|
|
17
18
|
OneToMany,
|
|
@@ -60,6 +61,14 @@ __decorateClass([
|
|
|
60
61
|
comment: "Data e hora da \xFAltima atualiza\xE7\xE3o dos dados do usu\xE1rio."
|
|
61
62
|
})
|
|
62
63
|
], User.prototype, "updatedAt", 2);
|
|
64
|
+
__decorateClass([
|
|
65
|
+
DeleteDateColumn({
|
|
66
|
+
name: "deleted_at",
|
|
67
|
+
type: "timestamptz",
|
|
68
|
+
nullable: true,
|
|
69
|
+
comment: "Data e hora em que o usu\xE1rio foi deletado (soft delete), se aplic\xE1vel."
|
|
70
|
+
})
|
|
71
|
+
], User.prototype, "deletedAt", 2);
|
|
63
72
|
__decorateClass([
|
|
64
73
|
Column({
|
|
65
74
|
name: "name",
|
|
@@ -155,13 +164,15 @@ User = __decorateClass([
|
|
|
155
164
|
Unique(["cpf"]),
|
|
156
165
|
Index("IDX_users_id", ["id"]),
|
|
157
166
|
Index("IDX_users_numeric_id", ["numericId"]),
|
|
158
|
-
Index("IDX_users_email_lookup", ["email"]),
|
|
159
|
-
Index("IDX_users_phone_lookup", ["phone"]),
|
|
160
|
-
Index("IDX_users_cpf_lookup", ["cpf"]),
|
|
167
|
+
Index("IDX_users_email_lookup", ["email"], { where: '"deletedAt" IS NULL' }),
|
|
168
|
+
Index("IDX_users_phone_lookup", ["phone"], { where: '"deletedAt" IS NULL' }),
|
|
169
|
+
Index("IDX_users_cpf_lookup", ["cpf"], { where: '"deletedAt" IS NULL' }),
|
|
170
|
+
Index("IDX_users_deleted_at", ["deletedAt"]),
|
|
171
|
+
Index("IDX_users_id_deleted", ["id", "deletedAt"]),
|
|
161
172
|
Index("IDX_users_created_at", ["createdAt"]),
|
|
162
173
|
Index("IDX_users_updated_at", ["updatedAt"]),
|
|
163
|
-
Index("IDX_users_name", ["name"]),
|
|
164
|
-
Index("IDX_users_gender", ["gender"])
|
|
174
|
+
Index("IDX_users_name", ["name"], { where: '"deletedAt" IS NULL' }),
|
|
175
|
+
Index("IDX_users_gender", ["gender"], { where: '"deletedAt" IS NULL' })
|
|
165
176
|
], User);
|
|
166
177
|
export {
|
|
167
178
|
User
|