@natrave/shared-entities 1.4.35 → 1.4.37
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":"AAaA,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,
|
|
1
|
+
{"version":3,"file":"user.entity.d.ts","sourceRoot":"","sources":["../../../src/app-auth/users/user.entity.ts"],"names":[],"mappings":"AAaA,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,qBAaa,IAAI;IAIf,EAAE,EAAE,MAAM,CAAC;IAUX,SAAS,EAAE,MAAM,CAAC;IAOlB,SAAS,EAAE,IAAI,CAAC;IAOhB,SAAS,EAAE,IAAI,CAAC;IAShB,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,8 +12,8 @@ import {
|
|
|
12
12
|
BeforeInsert,
|
|
13
13
|
Column,
|
|
14
14
|
CreateDateColumn,
|
|
15
|
-
DeleteDateColumn,
|
|
16
15
|
Entity,
|
|
16
|
+
Index,
|
|
17
17
|
OneToMany,
|
|
18
18
|
OneToOne,
|
|
19
19
|
PrimaryGeneratedColumn,
|
|
@@ -60,14 +60,6 @@ __decorateClass([
|
|
|
60
60
|
comment: "Data e hora da \xFAltima atualiza\xE7\xE3o dos dados do usu\xE1rio."
|
|
61
61
|
})
|
|
62
62
|
], User.prototype, "updatedAt", 2);
|
|
63
|
-
__decorateClass([
|
|
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
|
-
})
|
|
70
|
-
], User.prototype, "deletedAt", 2);
|
|
71
63
|
__decorateClass([
|
|
72
64
|
Column({
|
|
73
65
|
name: "name",
|
|
@@ -160,7 +152,16 @@ User = __decorateClass([
|
|
|
160
152
|
Entity("users"),
|
|
161
153
|
Unique(["email"]),
|
|
162
154
|
Unique(["phone"]),
|
|
163
|
-
Unique(["cpf"])
|
|
155
|
+
Unique(["cpf"]),
|
|
156
|
+
Index("IDX_users_id", ["id"]),
|
|
157
|
+
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"]),
|
|
161
|
+
Index("IDX_users_created_at", ["createdAt"]),
|
|
162
|
+
Index("IDX_users_updated_at", ["updatedAt"]),
|
|
163
|
+
Index("IDX_users_name", ["name"]),
|
|
164
|
+
Index("IDX_users_gender", ["gender"])
|
|
164
165
|
], User);
|
|
165
166
|
export {
|
|
166
167
|
User
|