@hed-hog/contact 0.0.16 → 0.0.19

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,22 +1,26 @@
1
1
  table: address
2
2
  columns:
3
- id: pk
4
- person_id:
3
+ - type: pk
4
+ - name: person_id
5
5
  type: fk
6
- table: person
7
- address_type_id:
6
+ references:
7
+ table: person
8
+ column: id
9
+ - name: address_type_id
8
10
  type: fk
9
- table: address_type
10
- country_code: varchar
11
- state: varchar
12
- city: varchar
13
- postal_code: varchar
14
- line1: varchar
15
- line2: varchar
16
- is_primary:
11
+ references:
12
+ table: address_type
13
+ column: id
14
+ - name: country_code
15
+ - name: state
16
+ - name: city
17
+ - name: postal_code
18
+ - name: line1
19
+ - name: line2
20
+ - name: is_primary
17
21
  type: boolean
18
22
  default: false
19
- created_at: created_at
23
+ - type: created_at
20
24
  indexes:
21
25
  - columns: [person_id, address_type_id, is_primary]
22
26
  unique: true
@@ -1,4 +1,4 @@
1
1
  table: address_type
2
2
  columns:
3
- id: pk
4
- code: varchar
3
+ - type: pk
4
+ - name: code
@@ -1,17 +1,21 @@
1
1
  table: contact
2
2
  columns:
3
- id: pk
4
- person_id:
3
+ - type: pk
4
+ - name: person_id
5
5
  type: fk
6
- table: person
7
- contact_type_id:
6
+ references:
7
+ table: person
8
+ column: id
9
+ - name: contact_type_id
8
10
  type: fk
9
- table: contact_type
10
- value: varchar
11
- is_primary:
11
+ references:
12
+ table: contact_type
13
+ column: id
14
+ - name: value
15
+ - name: is_primary
12
16
  type: boolean
13
17
  default: false
14
- created_at: created_at
18
+ - type: created_at
15
19
  indexes:
16
20
  - columns: [person_id, contact_type_id, is_primary]
17
21
  unique: true
@@ -1,5 +1,5 @@
1
1
  table: contact_type
2
2
  columns:
3
- id: pk
4
- code: varchar
5
- created_at: created_at
3
+ - type: pk
4
+ - name: code
5
+ - type: created_at
@@ -1,11 +1,15 @@
1
1
  table: document
2
2
  columns:
3
- id: pk
4
- person_id:
3
+ - type: pk
4
+ - name: person_id
5
5
  type: fk
6
- table: person
7
- document_type_id:
6
+ references:
7
+ table: person
8
+ column: id
9
+ - name: document_type_id
8
10
  type: fk
9
- table: document_type
10
- value: varchar
11
- created_at: created_at
11
+ references:
12
+ table: document_type
13
+ column: id
14
+ - name: value
15
+ - type: created_at
@@ -1,6 +1,7 @@
1
1
  table: document_type
2
2
  columns:
3
- id: pk
4
- code: varchar
5
- country_code: varchar
6
- is_unique: boolean
3
+ - type: pk
4
+ - name: code
5
+ - name: country_code
6
+ - name: is_unique
7
+ type: boolean
@@ -1,11 +1,11 @@
1
1
  table: person
2
2
  columns:
3
- id: pk
4
- type:
3
+ - type: pk
4
+ - name: type
5
5
  type: enum
6
6
  values: [individual, company]
7
- status:
7
+ - name: status
8
8
  type: enum
9
9
  values: [active, inactive]
10
- created_at: created_at
11
- updated_at: updated_at
10
+ - type: created_at
11
+ - type: updated_at
@@ -1,9 +1,9 @@
1
1
  table: person_company
2
2
  columns:
3
- id:
4
- type: pk
5
- fk:
3
+ - type: pk
4
+ references:
6
5
  table: person
7
6
  column: id
8
- foundation_date: date
9
- legal_nature: varchar
7
+ - name: foundation_date
8
+ type: date
9
+ - name: legal_nature
@@ -1,11 +1,11 @@
1
1
  table: person_individual
2
2
  columns:
3
- id:
4
- type: pk
5
- fk:
3
+ - type: pk
4
+ references:
6
5
  table: person
7
6
  column: id
8
- birth_date: date
9
- gender:
7
+ - name: birth_date
8
+ type: date
9
+ - name: gender
10
10
  type: enum
11
11
  values: [male, female, other]
@@ -1,9 +1,12 @@
1
1
  table: person_metadata
2
2
  columns:
3
- id: pk
4
- person_id:
3
+ - type: pk
4
+ - name: person_id
5
5
  type: fk
6
- table: person
7
- key: varchar
8
- value: json
9
- created_at: created_at
6
+ references:
7
+ table: person
8
+ column: id
9
+ - name: key
10
+ - name: value
11
+ type: json
12
+ - type: created_at
@@ -1,13 +1,19 @@
1
1
  table: person_relation
2
2
  columns:
3
- id: pk
4
- person_id:
3
+ - type: pk
4
+ - name: person_id
5
5
  type: fk
6
- table: person
7
- related_person_id:
6
+ references:
7
+ table: person
8
+ column: id
9
+ - name: related_person_id
8
10
  type: fk
9
- table: person
10
- relation_type_id:
11
+ references:
12
+ table: person
13
+ column: id
14
+ - name: relation_type_id
11
15
  type: fk
12
- table: person_relation_type
13
- created_at: created_at
16
+ references:
17
+ table: person_relation_type
18
+ column: id
19
+ - type: created_at
@@ -1,4 +1,4 @@
1
1
  table: person_relation_type
2
2
  columns:
3
- id: pk
4
- code: varchar
3
+ - type: pk
4
+ - name: code
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hed-hog/contact",
3
- "version": "0.0.16",
3
+ "version": "0.0.19",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "dependencies": {
@@ -11,10 +11,10 @@
11
11
  "@nestjs/mapped-types": "*",
12
12
  "@hed-hog/api": "0.0.3",
13
13
  "@hed-hog/country": "0.0.9",
14
- "@hed-hog/api-pagination": "0.0.3",
15
14
  "@hed-hog/api-locale": "0.0.10",
15
+ "@hed-hog/api-pagination": "0.0.3",
16
+ "@hed-hog/admin": "0.0.129",
16
17
  "@hed-hog/api-mail": "0.0.7",
17
- "@hed-hog/admin": "0.0.128",
18
18
  "@hed-hog/api-prisma": "0.0.4"
19
19
  },
20
20
  "exports": {