@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.
- package/hedhog/table/address.yaml +17 -13
- package/hedhog/table/address_type.yaml +2 -2
- package/hedhog/table/contact.yaml +12 -8
- package/hedhog/table/contact_type.yaml +3 -3
- package/hedhog/table/document.yaml +11 -7
- package/hedhog/table/document_type.yaml +5 -4
- package/hedhog/table/person.yaml +5 -5
- package/hedhog/table/person_company.yaml +5 -5
- package/hedhog/table/person_individual.yaml +5 -5
- package/hedhog/table/person_metadata.yaml +9 -6
- package/hedhog/table/person_relation.yaml +14 -8
- package/hedhog/table/person_relation_type.yaml +2 -2
- package/package.json +3 -3
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
table: address
|
|
2
2
|
columns:
|
|
3
|
-
|
|
4
|
-
person_id
|
|
3
|
+
- type: pk
|
|
4
|
+
- name: person_id
|
|
5
5
|
type: fk
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
references:
|
|
7
|
+
table: person
|
|
8
|
+
column: id
|
|
9
|
+
- name: address_type_id
|
|
8
10
|
type: fk
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
23
|
+
- type: created_at
|
|
20
24
|
indexes:
|
|
21
25
|
- columns: [person_id, address_type_id, is_primary]
|
|
22
26
|
unique: true
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
table: contact
|
|
2
2
|
columns:
|
|
3
|
-
|
|
4
|
-
person_id
|
|
3
|
+
- type: pk
|
|
4
|
+
- name: person_id
|
|
5
5
|
type: fk
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
references:
|
|
7
|
+
table: person
|
|
8
|
+
column: id
|
|
9
|
+
- name: contact_type_id
|
|
8
10
|
type: fk
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
18
|
+
- type: created_at
|
|
15
19
|
indexes:
|
|
16
20
|
- columns: [person_id, contact_type_id, is_primary]
|
|
17
21
|
unique: true
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
table: document
|
|
2
2
|
columns:
|
|
3
|
-
|
|
4
|
-
person_id
|
|
3
|
+
- type: pk
|
|
4
|
+
- name: person_id
|
|
5
5
|
type: fk
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
references:
|
|
7
|
+
table: person
|
|
8
|
+
column: id
|
|
9
|
+
- name: document_type_id
|
|
8
10
|
type: fk
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
references:
|
|
12
|
+
table: document_type
|
|
13
|
+
column: id
|
|
14
|
+
- name: value
|
|
15
|
+
- type: created_at
|
package/hedhog/table/person.yaml
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
table: person
|
|
2
2
|
columns:
|
|
3
|
-
|
|
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
|
-
|
|
11
|
-
|
|
10
|
+
- type: created_at
|
|
11
|
+
- type: updated_at
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
table: person_metadata
|
|
2
2
|
columns:
|
|
3
|
-
|
|
4
|
-
person_id
|
|
3
|
+
- type: pk
|
|
4
|
+
- name: person_id
|
|
5
5
|
type: fk
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
4
|
-
person_id
|
|
3
|
+
- type: pk
|
|
4
|
+
- name: person_id
|
|
5
5
|
type: fk
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
references:
|
|
7
|
+
table: person
|
|
8
|
+
column: id
|
|
9
|
+
- name: related_person_id
|
|
8
10
|
type: fk
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
references:
|
|
12
|
+
table: person
|
|
13
|
+
column: id
|
|
14
|
+
- name: relation_type_id
|
|
11
15
|
type: fk
|
|
12
|
-
|
|
13
|
-
|
|
16
|
+
references:
|
|
17
|
+
table: person_relation_type
|
|
18
|
+
column: id
|
|
19
|
+
- type: created_at
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hed-hog/contact",
|
|
3
|
-
"version": "0.0.
|
|
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": {
|