@hed-hog/operations 0.0.298 → 0.0.300
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/operations.service.js +1193 -1193
- package/hedhog/data/menu.yaml +198 -198
- package/hedhog/data/role.yaml +23 -23
- package/hedhog/data/route.yaml +317 -317
- package/hedhog/table/operations_approval.yaml +49 -49
- package/hedhog/table/operations_approval_history.yaml +29 -29
- package/hedhog/table/operations_collaborator.yaml +67 -67
- package/hedhog/table/operations_collaborator_schedule_day.yaml +34 -34
- package/hedhog/table/operations_contract.yaml +100 -100
- package/hedhog/table/operations_contract_document.yaml +39 -39
- package/hedhog/table/operations_contract_financial_term.yaml +40 -40
- package/hedhog/table/operations_contract_history.yaml +27 -27
- package/hedhog/table/operations_contract_party.yaml +46 -46
- package/hedhog/table/operations_contract_revision.yaml +38 -38
- package/hedhog/table/operations_contract_signature.yaml +38 -38
- package/hedhog/table/operations_project.yaml +54 -54
- package/hedhog/table/operations_project_assignment.yaml +55 -55
- package/hedhog/table/operations_schedule_adjustment_day.yaml +34 -34
- package/hedhog/table/operations_schedule_adjustment_request.yaml +53 -53
- package/hedhog/table/operations_time_off_request.yaml +57 -57
- package/hedhog/table/operations_timesheet.yaml +41 -41
- package/hedhog/table/operations_timesheet_entry.yaml +40 -40
- package/package.json +4 -4
- package/src/operations.controller.ts +182 -182
- package/src/operations.module.ts +22 -22
- package/src/operations.service.ts +3595 -3595
- package/dist/operations-data.controller.d.ts +0 -139
- package/dist/operations-data.controller.d.ts.map +0 -1
- package/dist/operations-data.controller.js +0 -113
- package/dist/operations-data.controller.js.map +0 -1
- package/dist/operations-growth.controller.d.ts +0 -48
- package/dist/operations-growth.controller.d.ts.map +0 -1
- package/dist/operations-growth.controller.js +0 -90
- package/dist/operations-growth.controller.js.map +0 -1
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
columns:
|
|
2
|
-
- type: pk
|
|
3
|
-
- name: target_type
|
|
4
|
-
type: enum
|
|
5
|
-
values: [timesheet, time_off_request, schedule_adjustment_request]
|
|
6
|
-
- name: target_id
|
|
7
|
-
type: int
|
|
8
|
-
- name: requester_collaborator_id
|
|
9
|
-
type: fk
|
|
10
|
-
references:
|
|
11
|
-
table: operations_collaborator
|
|
12
|
-
column: id
|
|
13
|
-
onDelete: CASCADE
|
|
14
|
-
onUpdate: CASCADE
|
|
15
|
-
- name: approver_collaborator_id
|
|
16
|
-
type: fk
|
|
17
|
-
isNullable: true
|
|
18
|
-
references:
|
|
19
|
-
table: operations_collaborator
|
|
20
|
-
column: id
|
|
21
|
-
onDelete: SET NULL
|
|
22
|
-
onUpdate: CASCADE
|
|
23
|
-
- name: status
|
|
24
|
-
type: enum
|
|
25
|
-
values: [pending, approved, rejected, cancelled]
|
|
26
|
-
default: pending
|
|
27
|
-
- name: submitted_at
|
|
28
|
-
type: datetime
|
|
29
|
-
- name: decided_at
|
|
30
|
-
type: datetime
|
|
31
|
-
isNullable: true
|
|
32
|
-
- name: decision_note
|
|
33
|
-
type: text
|
|
34
|
-
isNullable: true
|
|
35
|
-
- name: deleted_at
|
|
36
|
-
type: datetime
|
|
37
|
-
isNullable: true
|
|
38
|
-
- type: created_at
|
|
39
|
-
- type: updated_at
|
|
40
|
-
|
|
41
|
-
indices:
|
|
42
|
-
- columns: [target_type, target_id]
|
|
43
|
-
isUnique: true
|
|
44
|
-
- columns: [requester_collaborator_id]
|
|
45
|
-
- columns: [approver_collaborator_id]
|
|
46
|
-
- columns: [status]
|
|
47
|
-
- columns: [submitted_at]
|
|
48
|
-
- columns: [decided_at]
|
|
49
|
-
- columns: [deleted_at]
|
|
1
|
+
columns:
|
|
2
|
+
- type: pk
|
|
3
|
+
- name: target_type
|
|
4
|
+
type: enum
|
|
5
|
+
values: [timesheet, time_off_request, schedule_adjustment_request]
|
|
6
|
+
- name: target_id
|
|
7
|
+
type: int
|
|
8
|
+
- name: requester_collaborator_id
|
|
9
|
+
type: fk
|
|
10
|
+
references:
|
|
11
|
+
table: operations_collaborator
|
|
12
|
+
column: id
|
|
13
|
+
onDelete: CASCADE
|
|
14
|
+
onUpdate: CASCADE
|
|
15
|
+
- name: approver_collaborator_id
|
|
16
|
+
type: fk
|
|
17
|
+
isNullable: true
|
|
18
|
+
references:
|
|
19
|
+
table: operations_collaborator
|
|
20
|
+
column: id
|
|
21
|
+
onDelete: SET NULL
|
|
22
|
+
onUpdate: CASCADE
|
|
23
|
+
- name: status
|
|
24
|
+
type: enum
|
|
25
|
+
values: [pending, approved, rejected, cancelled]
|
|
26
|
+
default: pending
|
|
27
|
+
- name: submitted_at
|
|
28
|
+
type: datetime
|
|
29
|
+
- name: decided_at
|
|
30
|
+
type: datetime
|
|
31
|
+
isNullable: true
|
|
32
|
+
- name: decision_note
|
|
33
|
+
type: text
|
|
34
|
+
isNullable: true
|
|
35
|
+
- name: deleted_at
|
|
36
|
+
type: datetime
|
|
37
|
+
isNullable: true
|
|
38
|
+
- type: created_at
|
|
39
|
+
- type: updated_at
|
|
40
|
+
|
|
41
|
+
indices:
|
|
42
|
+
- columns: [target_type, target_id]
|
|
43
|
+
isUnique: true
|
|
44
|
+
- columns: [requester_collaborator_id]
|
|
45
|
+
- columns: [approver_collaborator_id]
|
|
46
|
+
- columns: [status]
|
|
47
|
+
- columns: [submitted_at]
|
|
48
|
+
- columns: [decided_at]
|
|
49
|
+
- columns: [deleted_at]
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
columns:
|
|
2
|
-
- type: pk
|
|
3
|
-
- name: approval_id
|
|
4
|
-
type: fk
|
|
5
|
-
references:
|
|
6
|
-
table: operations_approval
|
|
7
|
-
column: id
|
|
8
|
-
onDelete: CASCADE
|
|
9
|
-
onUpdate: CASCADE
|
|
10
|
-
- name: actor_collaborator_id
|
|
11
|
-
type: fk
|
|
12
|
-
isNullable: true
|
|
13
|
-
references:
|
|
14
|
-
table: operations_collaborator
|
|
15
|
-
column: id
|
|
16
|
-
onDelete: SET NULL
|
|
17
|
-
onUpdate: CASCADE
|
|
18
|
-
- name: action
|
|
19
|
-
type: enum
|
|
20
|
-
values: [created, submitted, approved, rejected, cancelled, reopened]
|
|
21
|
-
- name: note
|
|
22
|
-
type: text
|
|
23
|
-
isNullable: true
|
|
24
|
-
- type: created_at
|
|
25
|
-
|
|
26
|
-
indices:
|
|
27
|
-
- columns: [approval_id]
|
|
28
|
-
- columns: [actor_collaborator_id]
|
|
29
|
-
- columns: [action]
|
|
1
|
+
columns:
|
|
2
|
+
- type: pk
|
|
3
|
+
- name: approval_id
|
|
4
|
+
type: fk
|
|
5
|
+
references:
|
|
6
|
+
table: operations_approval
|
|
7
|
+
column: id
|
|
8
|
+
onDelete: CASCADE
|
|
9
|
+
onUpdate: CASCADE
|
|
10
|
+
- name: actor_collaborator_id
|
|
11
|
+
type: fk
|
|
12
|
+
isNullable: true
|
|
13
|
+
references:
|
|
14
|
+
table: operations_collaborator
|
|
15
|
+
column: id
|
|
16
|
+
onDelete: SET NULL
|
|
17
|
+
onUpdate: CASCADE
|
|
18
|
+
- name: action
|
|
19
|
+
type: enum
|
|
20
|
+
values: [created, submitted, approved, rejected, cancelled, reopened]
|
|
21
|
+
- name: note
|
|
22
|
+
type: text
|
|
23
|
+
isNullable: true
|
|
24
|
+
- type: created_at
|
|
25
|
+
|
|
26
|
+
indices:
|
|
27
|
+
- columns: [approval_id]
|
|
28
|
+
- columns: [actor_collaborator_id]
|
|
29
|
+
- columns: [action]
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
columns:
|
|
2
|
-
- type: pk
|
|
3
|
-
- name: user_id
|
|
4
|
-
type: int
|
|
5
|
-
- name: supervisor_collaborator_id
|
|
6
|
-
type: fk
|
|
7
|
-
isNullable: true
|
|
8
|
-
references:
|
|
9
|
-
table: operations_collaborator
|
|
10
|
-
column: id
|
|
11
|
-
onDelete: SET NULL
|
|
12
|
-
onUpdate: CASCADE
|
|
13
|
-
- name: code
|
|
14
|
-
type: varchar
|
|
15
|
-
length: 32
|
|
16
|
-
- name: collaborator_type
|
|
17
|
-
type: enum
|
|
18
|
-
values: [clt, pj, freelancer, intern, other]
|
|
19
|
-
default: other
|
|
20
|
-
- name: display_name
|
|
21
|
-
type: varchar
|
|
22
|
-
length: 180
|
|
23
|
-
- name: department
|
|
24
|
-
type: varchar
|
|
25
|
-
length: 120
|
|
26
|
-
isNullable: true
|
|
27
|
-
- name: title
|
|
28
|
-
type: varchar
|
|
29
|
-
length: 120
|
|
30
|
-
isNullable: true
|
|
31
|
-
- name: level_label
|
|
32
|
-
type: varchar
|
|
33
|
-
length: 120
|
|
34
|
-
isNullable: true
|
|
35
|
-
- name: weekly_capacity_hours
|
|
36
|
-
type: decimal
|
|
37
|
-
precision: 6
|
|
38
|
-
scale: 2
|
|
39
|
-
isNullable: true
|
|
40
|
-
- name: status
|
|
41
|
-
type: enum
|
|
42
|
-
values: [active, on_leave, inactive]
|
|
43
|
-
default: active
|
|
44
|
-
- name: joined_at
|
|
45
|
-
type: date
|
|
46
|
-
isNullable: true
|
|
47
|
-
- name: left_at
|
|
48
|
-
type: date
|
|
49
|
-
isNullable: true
|
|
50
|
-
- name: notes
|
|
51
|
-
type: text
|
|
52
|
-
isNullable: true
|
|
53
|
-
- name: deleted_at
|
|
54
|
-
type: datetime
|
|
55
|
-
isNullable: true
|
|
56
|
-
- type: created_at
|
|
57
|
-
- type: updated_at
|
|
58
|
-
|
|
59
|
-
indices:
|
|
60
|
-
- columns: [user_id]
|
|
61
|
-
isUnique: true
|
|
62
|
-
- columns: [code]
|
|
63
|
-
isUnique: true
|
|
64
|
-
- columns: [collaborator_type]
|
|
65
|
-
- columns: [supervisor_collaborator_id]
|
|
66
|
-
- columns: [status]
|
|
67
|
-
- columns: [deleted_at]
|
|
1
|
+
columns:
|
|
2
|
+
- type: pk
|
|
3
|
+
- name: user_id
|
|
4
|
+
type: int
|
|
5
|
+
- name: supervisor_collaborator_id
|
|
6
|
+
type: fk
|
|
7
|
+
isNullable: true
|
|
8
|
+
references:
|
|
9
|
+
table: operations_collaborator
|
|
10
|
+
column: id
|
|
11
|
+
onDelete: SET NULL
|
|
12
|
+
onUpdate: CASCADE
|
|
13
|
+
- name: code
|
|
14
|
+
type: varchar
|
|
15
|
+
length: 32
|
|
16
|
+
- name: collaborator_type
|
|
17
|
+
type: enum
|
|
18
|
+
values: [clt, pj, freelancer, intern, other]
|
|
19
|
+
default: other
|
|
20
|
+
- name: display_name
|
|
21
|
+
type: varchar
|
|
22
|
+
length: 180
|
|
23
|
+
- name: department
|
|
24
|
+
type: varchar
|
|
25
|
+
length: 120
|
|
26
|
+
isNullable: true
|
|
27
|
+
- name: title
|
|
28
|
+
type: varchar
|
|
29
|
+
length: 120
|
|
30
|
+
isNullable: true
|
|
31
|
+
- name: level_label
|
|
32
|
+
type: varchar
|
|
33
|
+
length: 120
|
|
34
|
+
isNullable: true
|
|
35
|
+
- name: weekly_capacity_hours
|
|
36
|
+
type: decimal
|
|
37
|
+
precision: 6
|
|
38
|
+
scale: 2
|
|
39
|
+
isNullable: true
|
|
40
|
+
- name: status
|
|
41
|
+
type: enum
|
|
42
|
+
values: [active, on_leave, inactive]
|
|
43
|
+
default: active
|
|
44
|
+
- name: joined_at
|
|
45
|
+
type: date
|
|
46
|
+
isNullable: true
|
|
47
|
+
- name: left_at
|
|
48
|
+
type: date
|
|
49
|
+
isNullable: true
|
|
50
|
+
- name: notes
|
|
51
|
+
type: text
|
|
52
|
+
isNullable: true
|
|
53
|
+
- name: deleted_at
|
|
54
|
+
type: datetime
|
|
55
|
+
isNullable: true
|
|
56
|
+
- type: created_at
|
|
57
|
+
- type: updated_at
|
|
58
|
+
|
|
59
|
+
indices:
|
|
60
|
+
- columns: [user_id]
|
|
61
|
+
isUnique: true
|
|
62
|
+
- columns: [code]
|
|
63
|
+
isUnique: true
|
|
64
|
+
- columns: [collaborator_type]
|
|
65
|
+
- columns: [supervisor_collaborator_id]
|
|
66
|
+
- columns: [status]
|
|
67
|
+
- columns: [deleted_at]
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
columns:
|
|
2
|
-
- type: pk
|
|
3
|
-
- name: collaborator_id
|
|
4
|
-
type: fk
|
|
5
|
-
references:
|
|
6
|
-
table: operations_collaborator
|
|
7
|
-
column: id
|
|
8
|
-
onDelete: CASCADE
|
|
9
|
-
onUpdate: CASCADE
|
|
10
|
-
- name: weekday
|
|
11
|
-
type: enum
|
|
12
|
-
values: [monday, tuesday, wednesday, thursday, friday, saturday, sunday]
|
|
13
|
-
- name: is_working_day
|
|
14
|
-
type: boolean
|
|
15
|
-
default: true
|
|
16
|
-
- name: start_time
|
|
17
|
-
type: time
|
|
18
|
-
isNullable: true
|
|
19
|
-
- name: end_time
|
|
20
|
-
type: time
|
|
21
|
-
isNullable: true
|
|
22
|
-
- name: break_minutes
|
|
23
|
-
type: int
|
|
24
|
-
isNullable: true
|
|
25
|
-
- name: deleted_at
|
|
26
|
-
type: datetime
|
|
27
|
-
isNullable: true
|
|
28
|
-
- type: created_at
|
|
29
|
-
- type: updated_at
|
|
30
|
-
|
|
31
|
-
indices:
|
|
32
|
-
- columns: [collaborator_id]
|
|
33
|
-
- columns: [weekday]
|
|
34
|
-
- columns: [deleted_at]
|
|
1
|
+
columns:
|
|
2
|
+
- type: pk
|
|
3
|
+
- name: collaborator_id
|
|
4
|
+
type: fk
|
|
5
|
+
references:
|
|
6
|
+
table: operations_collaborator
|
|
7
|
+
column: id
|
|
8
|
+
onDelete: CASCADE
|
|
9
|
+
onUpdate: CASCADE
|
|
10
|
+
- name: weekday
|
|
11
|
+
type: enum
|
|
12
|
+
values: [monday, tuesday, wednesday, thursday, friday, saturday, sunday]
|
|
13
|
+
- name: is_working_day
|
|
14
|
+
type: boolean
|
|
15
|
+
default: true
|
|
16
|
+
- name: start_time
|
|
17
|
+
type: time
|
|
18
|
+
isNullable: true
|
|
19
|
+
- name: end_time
|
|
20
|
+
type: time
|
|
21
|
+
isNullable: true
|
|
22
|
+
- name: break_minutes
|
|
23
|
+
type: int
|
|
24
|
+
isNullable: true
|
|
25
|
+
- name: deleted_at
|
|
26
|
+
type: datetime
|
|
27
|
+
isNullable: true
|
|
28
|
+
- type: created_at
|
|
29
|
+
- type: updated_at
|
|
30
|
+
|
|
31
|
+
indices:
|
|
32
|
+
- columns: [collaborator_id]
|
|
33
|
+
- columns: [weekday]
|
|
34
|
+
- columns: [deleted_at]
|
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
columns:
|
|
2
|
-
- type: pk
|
|
3
|
-
- name: code
|
|
4
|
-
type: varchar
|
|
5
|
-
length: 40
|
|
6
|
-
- name: name
|
|
7
|
-
type: varchar
|
|
8
|
-
length: 180
|
|
9
|
-
- name: contract_category
|
|
10
|
-
type: enum
|
|
11
|
-
values: [employee, contractor, client, supplier, vendor, partner, internal, other]
|
|
12
|
-
default: client
|
|
13
|
-
- name: contract_type
|
|
14
|
-
type: enum
|
|
15
|
-
values: [clt, pj, freelancer_agreement, service_agreement, fixed_term, recurring_service, nda, amendment, addendum, other]
|
|
16
|
-
default: service_agreement
|
|
17
|
-
- name: client_name
|
|
18
|
-
type: varchar
|
|
19
|
-
length: 180
|
|
20
|
-
- name: signature_status
|
|
21
|
-
type: enum
|
|
22
|
-
values: [not_started, pending, partially_signed, signed, expired]
|
|
23
|
-
default: not_started
|
|
24
|
-
- name: is_active
|
|
25
|
-
type: boolean
|
|
26
|
-
default: true
|
|
27
|
-
- name: billing_model
|
|
28
|
-
type: enum
|
|
29
|
-
values: [time_and_material, monthly_retainer, fixed_price]
|
|
30
|
-
default: time_and_material
|
|
31
|
-
- name: account_manager_collaborator_id
|
|
32
|
-
type: fk
|
|
33
|
-
isNullable: true
|
|
34
|
-
references:
|
|
35
|
-
table: operations_collaborator
|
|
36
|
-
column: id
|
|
37
|
-
onDelete: SET NULL
|
|
38
|
-
onUpdate: CASCADE
|
|
39
|
-
- name: related_collaborator_id
|
|
40
|
-
type: fk
|
|
41
|
-
isNullable: true
|
|
42
|
-
references:
|
|
43
|
-
table: operations_collaborator
|
|
44
|
-
column: id
|
|
45
|
-
onDelete: SET NULL
|
|
46
|
-
onUpdate: CASCADE
|
|
47
|
-
- name: origin_type
|
|
48
|
-
type: enum
|
|
49
|
-
values: [manual, employee_hiring, client_project]
|
|
50
|
-
default: manual
|
|
51
|
-
- name: origin_id
|
|
52
|
-
type: int
|
|
53
|
-
isNullable: true
|
|
54
|
-
- name: start_date
|
|
55
|
-
type: date
|
|
56
|
-
- name: end_date
|
|
57
|
-
type: date
|
|
58
|
-
isNullable: true
|
|
59
|
-
- name: signed_at
|
|
60
|
-
type: date
|
|
61
|
-
isNullable: true
|
|
62
|
-
- name: effective_date
|
|
63
|
-
type: date
|
|
64
|
-
isNullable: true
|
|
65
|
-
- name: budget_amount
|
|
66
|
-
type: decimal
|
|
67
|
-
precision: 12
|
|
68
|
-
scale: 2
|
|
69
|
-
isNullable: true
|
|
70
|
-
- name: monthly_hour_cap
|
|
71
|
-
type: int
|
|
72
|
-
isNullable: true
|
|
73
|
-
- name: status
|
|
74
|
-
type: enum
|
|
75
|
-
values: [draft, under_review, active, renewal, expired, closed, archived]
|
|
76
|
-
default: draft
|
|
77
|
-
- name: description
|
|
78
|
-
type: text
|
|
79
|
-
isNullable: true
|
|
80
|
-
- name: content_html
|
|
81
|
-
type: text
|
|
82
|
-
isNullable: true
|
|
83
|
-
- name: created_by_user_id
|
|
84
|
-
type: int
|
|
85
|
-
isNullable: true
|
|
1
|
+
columns:
|
|
2
|
+
- type: pk
|
|
3
|
+
- name: code
|
|
4
|
+
type: varchar
|
|
5
|
+
length: 40
|
|
6
|
+
- name: name
|
|
7
|
+
type: varchar
|
|
8
|
+
length: 180
|
|
9
|
+
- name: contract_category
|
|
10
|
+
type: enum
|
|
11
|
+
values: [employee, contractor, client, supplier, vendor, partner, internal, other]
|
|
12
|
+
default: client
|
|
13
|
+
- name: contract_type
|
|
14
|
+
type: enum
|
|
15
|
+
values: [clt, pj, freelancer_agreement, service_agreement, fixed_term, recurring_service, nda, amendment, addendum, other]
|
|
16
|
+
default: service_agreement
|
|
17
|
+
- name: client_name
|
|
18
|
+
type: varchar
|
|
19
|
+
length: 180
|
|
20
|
+
- name: signature_status
|
|
21
|
+
type: enum
|
|
22
|
+
values: [not_started, pending, partially_signed, signed, expired]
|
|
23
|
+
default: not_started
|
|
24
|
+
- name: is_active
|
|
25
|
+
type: boolean
|
|
26
|
+
default: true
|
|
27
|
+
- name: billing_model
|
|
28
|
+
type: enum
|
|
29
|
+
values: [time_and_material, monthly_retainer, fixed_price]
|
|
30
|
+
default: time_and_material
|
|
31
|
+
- name: account_manager_collaborator_id
|
|
32
|
+
type: fk
|
|
33
|
+
isNullable: true
|
|
34
|
+
references:
|
|
35
|
+
table: operations_collaborator
|
|
36
|
+
column: id
|
|
37
|
+
onDelete: SET NULL
|
|
38
|
+
onUpdate: CASCADE
|
|
39
|
+
- name: related_collaborator_id
|
|
40
|
+
type: fk
|
|
41
|
+
isNullable: true
|
|
42
|
+
references:
|
|
43
|
+
table: operations_collaborator
|
|
44
|
+
column: id
|
|
45
|
+
onDelete: SET NULL
|
|
46
|
+
onUpdate: CASCADE
|
|
47
|
+
- name: origin_type
|
|
48
|
+
type: enum
|
|
49
|
+
values: [manual, employee_hiring, client_project]
|
|
50
|
+
default: manual
|
|
51
|
+
- name: origin_id
|
|
52
|
+
type: int
|
|
53
|
+
isNullable: true
|
|
54
|
+
- name: start_date
|
|
55
|
+
type: date
|
|
56
|
+
- name: end_date
|
|
57
|
+
type: date
|
|
58
|
+
isNullable: true
|
|
59
|
+
- name: signed_at
|
|
60
|
+
type: date
|
|
61
|
+
isNullable: true
|
|
62
|
+
- name: effective_date
|
|
63
|
+
type: date
|
|
64
|
+
isNullable: true
|
|
65
|
+
- name: budget_amount
|
|
66
|
+
type: decimal
|
|
67
|
+
precision: 12
|
|
68
|
+
scale: 2
|
|
69
|
+
isNullable: true
|
|
70
|
+
- name: monthly_hour_cap
|
|
71
|
+
type: int
|
|
72
|
+
isNullable: true
|
|
73
|
+
- name: status
|
|
74
|
+
type: enum
|
|
75
|
+
values: [draft, under_review, active, renewal, expired, closed, archived]
|
|
76
|
+
default: draft
|
|
77
|
+
- name: description
|
|
78
|
+
type: text
|
|
79
|
+
isNullable: true
|
|
80
|
+
- name: content_html
|
|
81
|
+
type: text
|
|
82
|
+
isNullable: true
|
|
83
|
+
- name: created_by_user_id
|
|
84
|
+
type: int
|
|
85
|
+
isNullable: true
|
|
86
86
|
- name: updated_by_user_id
|
|
87
87
|
type: int
|
|
88
88
|
isNullable: true
|
|
@@ -92,18 +92,18 @@ columns:
|
|
|
92
92
|
- type: created_at
|
|
93
93
|
- type: updated_at
|
|
94
94
|
|
|
95
|
-
indices:
|
|
96
|
-
- columns: [code]
|
|
97
|
-
isUnique: true
|
|
98
|
-
- columns: [account_manager_collaborator_id]
|
|
99
|
-
- columns: [related_collaborator_id]
|
|
100
|
-
- columns: [contract_category]
|
|
101
|
-
- columns: [contract_type]
|
|
102
|
-
- columns: [origin_type]
|
|
103
|
-
- columns: [origin_id]
|
|
104
|
-
- columns: [signature_status]
|
|
105
|
-
- columns: [is_active]
|
|
106
|
-
- columns: [status]
|
|
107
|
-
- columns: [start_date]
|
|
108
|
-
- columns: [end_date]
|
|
109
|
-
- columns: [deleted_at]
|
|
95
|
+
indices:
|
|
96
|
+
- columns: [code]
|
|
97
|
+
isUnique: true
|
|
98
|
+
- columns: [account_manager_collaborator_id]
|
|
99
|
+
- columns: [related_collaborator_id]
|
|
100
|
+
- columns: [contract_category]
|
|
101
|
+
- columns: [contract_type]
|
|
102
|
+
- columns: [origin_type]
|
|
103
|
+
- columns: [origin_id]
|
|
104
|
+
- columns: [signature_status]
|
|
105
|
+
- columns: [is_active]
|
|
106
|
+
- columns: [status]
|
|
107
|
+
- columns: [start_date]
|
|
108
|
+
- columns: [end_date]
|
|
109
|
+
- columns: [deleted_at]
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
columns:
|
|
2
|
-
- type: pk
|
|
3
|
-
- name: contract_id
|
|
4
|
-
type: fk
|
|
5
|
-
references:
|
|
6
|
-
table: operations_contract
|
|
7
|
-
column: id
|
|
8
|
-
onDelete: CASCADE
|
|
9
|
-
onUpdate: CASCADE
|
|
10
|
-
- name: document_type
|
|
11
|
-
type: enum
|
|
12
|
-
values: [uploaded_pdf, generated_pdf, attachment, other]
|
|
13
|
-
default: attachment
|
|
14
|
-
- name: file_name
|
|
15
|
-
type: varchar
|
|
16
|
-
length: 200
|
|
17
|
-
- name: mime_type
|
|
18
|
-
type: varchar
|
|
19
|
-
length: 120
|
|
20
|
-
- name: file_content_base64
|
|
21
|
-
type: text
|
|
22
|
-
isNullable: true
|
|
23
|
-
- name: is_current
|
|
24
|
-
type: boolean
|
|
25
|
-
default: true
|
|
26
|
-
- name: notes
|
|
27
|
-
type: text
|
|
28
|
-
isNullable: true
|
|
29
|
-
- name: deleted_at
|
|
30
|
-
type: datetime
|
|
31
|
-
isNullable: true
|
|
32
|
-
- type: created_at
|
|
33
|
-
- type: updated_at
|
|
34
|
-
|
|
35
|
-
indices:
|
|
36
|
-
- columns: [contract_id]
|
|
37
|
-
- columns: [document_type]
|
|
38
|
-
- columns: [is_current]
|
|
39
|
-
- columns: [deleted_at]
|
|
1
|
+
columns:
|
|
2
|
+
- type: pk
|
|
3
|
+
- name: contract_id
|
|
4
|
+
type: fk
|
|
5
|
+
references:
|
|
6
|
+
table: operations_contract
|
|
7
|
+
column: id
|
|
8
|
+
onDelete: CASCADE
|
|
9
|
+
onUpdate: CASCADE
|
|
10
|
+
- name: document_type
|
|
11
|
+
type: enum
|
|
12
|
+
values: [uploaded_pdf, generated_pdf, attachment, other]
|
|
13
|
+
default: attachment
|
|
14
|
+
- name: file_name
|
|
15
|
+
type: varchar
|
|
16
|
+
length: 200
|
|
17
|
+
- name: mime_type
|
|
18
|
+
type: varchar
|
|
19
|
+
length: 120
|
|
20
|
+
- name: file_content_base64
|
|
21
|
+
type: text
|
|
22
|
+
isNullable: true
|
|
23
|
+
- name: is_current
|
|
24
|
+
type: boolean
|
|
25
|
+
default: true
|
|
26
|
+
- name: notes
|
|
27
|
+
type: text
|
|
28
|
+
isNullable: true
|
|
29
|
+
- name: deleted_at
|
|
30
|
+
type: datetime
|
|
31
|
+
isNullable: true
|
|
32
|
+
- type: created_at
|
|
33
|
+
- type: updated_at
|
|
34
|
+
|
|
35
|
+
indices:
|
|
36
|
+
- columns: [contract_id]
|
|
37
|
+
- columns: [document_type]
|
|
38
|
+
- columns: [is_current]
|
|
39
|
+
- columns: [deleted_at]
|