@hed-hog/operations 0.0.299 → 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,40 +1,40 @@
|
|
|
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: term_type
|
|
11
|
-
type: enum
|
|
12
|
-
values: [value, payment, revenue, fine, other]
|
|
13
|
-
default: value
|
|
14
|
-
- name: label
|
|
15
|
-
type: varchar
|
|
16
|
-
length: 180
|
|
17
|
-
- name: amount
|
|
18
|
-
type: decimal
|
|
19
|
-
precision: 12
|
|
20
|
-
scale: 2
|
|
21
|
-
- name: recurrence
|
|
22
|
-
type: enum
|
|
23
|
-
values: [one_time, monthly, quarterly, yearly, other]
|
|
24
|
-
default: one_time
|
|
25
|
-
- name: due_day
|
|
26
|
-
type: int
|
|
27
|
-
isNullable: true
|
|
28
|
-
- name: notes
|
|
29
|
-
type: text
|
|
30
|
-
isNullable: true
|
|
31
|
-
- name: deleted_at
|
|
32
|
-
type: datetime
|
|
33
|
-
isNullable: true
|
|
34
|
-
- type: created_at
|
|
35
|
-
- type: updated_at
|
|
36
|
-
|
|
37
|
-
indices:
|
|
38
|
-
- columns: [contract_id]
|
|
39
|
-
- columns: [term_type]
|
|
40
|
-
- 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: term_type
|
|
11
|
+
type: enum
|
|
12
|
+
values: [value, payment, revenue, fine, other]
|
|
13
|
+
default: value
|
|
14
|
+
- name: label
|
|
15
|
+
type: varchar
|
|
16
|
+
length: 180
|
|
17
|
+
- name: amount
|
|
18
|
+
type: decimal
|
|
19
|
+
precision: 12
|
|
20
|
+
scale: 2
|
|
21
|
+
- name: recurrence
|
|
22
|
+
type: enum
|
|
23
|
+
values: [one_time, monthly, quarterly, yearly, other]
|
|
24
|
+
default: one_time
|
|
25
|
+
- name: due_day
|
|
26
|
+
type: int
|
|
27
|
+
isNullable: true
|
|
28
|
+
- name: notes
|
|
29
|
+
type: text
|
|
30
|
+
isNullable: true
|
|
31
|
+
- name: deleted_at
|
|
32
|
+
type: datetime
|
|
33
|
+
isNullable: true
|
|
34
|
+
- type: created_at
|
|
35
|
+
- type: updated_at
|
|
36
|
+
|
|
37
|
+
indices:
|
|
38
|
+
- columns: [contract_id]
|
|
39
|
+
- columns: [term_type]
|
|
40
|
+
- columns: [deleted_at]
|
|
@@ -1,27 +1,27 @@
|
|
|
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: actor_user_id
|
|
11
|
-
type: int
|
|
12
|
-
isNullable: true
|
|
13
|
-
- name: action
|
|
14
|
-
type: varchar
|
|
15
|
-
length: 80
|
|
16
|
-
- name: note
|
|
17
|
-
type: text
|
|
18
|
-
isNullable: true
|
|
19
|
-
- name: metadata_json
|
|
20
|
-
type: text
|
|
21
|
-
isNullable: true
|
|
22
|
-
- type: created_at
|
|
23
|
-
|
|
24
|
-
indices:
|
|
25
|
-
- columns: [contract_id]
|
|
26
|
-
- columns: [actor_user_id]
|
|
27
|
-
- columns: [action]
|
|
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: actor_user_id
|
|
11
|
+
type: int
|
|
12
|
+
isNullable: true
|
|
13
|
+
- name: action
|
|
14
|
+
type: varchar
|
|
15
|
+
length: 80
|
|
16
|
+
- name: note
|
|
17
|
+
type: text
|
|
18
|
+
isNullable: true
|
|
19
|
+
- name: metadata_json
|
|
20
|
+
type: text
|
|
21
|
+
isNullable: true
|
|
22
|
+
- type: created_at
|
|
23
|
+
|
|
24
|
+
indices:
|
|
25
|
+
- columns: [contract_id]
|
|
26
|
+
- columns: [actor_user_id]
|
|
27
|
+
- columns: [action]
|
|
@@ -1,46 +1,46 @@
|
|
|
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: party_role
|
|
11
|
-
type: enum
|
|
12
|
-
values: [employee, employer, client, supplier, vendor, partner, witness, internal_owner, other]
|
|
13
|
-
default: other
|
|
14
|
-
- name: party_type
|
|
15
|
-
type: enum
|
|
16
|
-
values: [individual, company, internal_team, other]
|
|
17
|
-
default: company
|
|
18
|
-
- name: display_name
|
|
19
|
-
type: varchar
|
|
20
|
-
length: 180
|
|
21
|
-
- name: document_number
|
|
22
|
-
type: varchar
|
|
23
|
-
length: 80
|
|
24
|
-
isNullable: true
|
|
25
|
-
- name: email
|
|
26
|
-
type: varchar
|
|
27
|
-
length: 180
|
|
28
|
-
isNullable: true
|
|
29
|
-
- name: phone
|
|
30
|
-
type: varchar
|
|
31
|
-
length: 60
|
|
32
|
-
isNullable: true
|
|
33
|
-
- name: is_primary
|
|
34
|
-
type: boolean
|
|
35
|
-
default: false
|
|
36
|
-
- name: deleted_at
|
|
37
|
-
type: datetime
|
|
38
|
-
isNullable: true
|
|
39
|
-
- type: created_at
|
|
40
|
-
- type: updated_at
|
|
41
|
-
|
|
42
|
-
indices:
|
|
43
|
-
- columns: [contract_id]
|
|
44
|
-
- columns: [party_role]
|
|
45
|
-
- columns: [is_primary]
|
|
46
|
-
- 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: party_role
|
|
11
|
+
type: enum
|
|
12
|
+
values: [employee, employer, client, supplier, vendor, partner, witness, internal_owner, other]
|
|
13
|
+
default: other
|
|
14
|
+
- name: party_type
|
|
15
|
+
type: enum
|
|
16
|
+
values: [individual, company, internal_team, other]
|
|
17
|
+
default: company
|
|
18
|
+
- name: display_name
|
|
19
|
+
type: varchar
|
|
20
|
+
length: 180
|
|
21
|
+
- name: document_number
|
|
22
|
+
type: varchar
|
|
23
|
+
length: 80
|
|
24
|
+
isNullable: true
|
|
25
|
+
- name: email
|
|
26
|
+
type: varchar
|
|
27
|
+
length: 180
|
|
28
|
+
isNullable: true
|
|
29
|
+
- name: phone
|
|
30
|
+
type: varchar
|
|
31
|
+
length: 60
|
|
32
|
+
isNullable: true
|
|
33
|
+
- name: is_primary
|
|
34
|
+
type: boolean
|
|
35
|
+
default: false
|
|
36
|
+
- name: deleted_at
|
|
37
|
+
type: datetime
|
|
38
|
+
isNullable: true
|
|
39
|
+
- type: created_at
|
|
40
|
+
- type: updated_at
|
|
41
|
+
|
|
42
|
+
indices:
|
|
43
|
+
- columns: [contract_id]
|
|
44
|
+
- columns: [party_role]
|
|
45
|
+
- columns: [is_primary]
|
|
46
|
+
- columns: [deleted_at]
|
|
@@ -1,38 +1,38 @@
|
|
|
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: revision_type
|
|
11
|
-
type: enum
|
|
12
|
-
values: [amendment, renewal, revision, addendum, other]
|
|
13
|
-
default: revision
|
|
14
|
-
- name: title
|
|
15
|
-
type: varchar
|
|
16
|
-
length: 180
|
|
17
|
-
- name: effective_date
|
|
18
|
-
type: date
|
|
19
|
-
isNullable: true
|
|
20
|
-
- name: status
|
|
21
|
-
type: enum
|
|
22
|
-
values: [draft, active, completed, cancelled]
|
|
23
|
-
default: draft
|
|
24
|
-
- name: summary
|
|
25
|
-
type: text
|
|
26
|
-
isNullable: true
|
|
27
|
-
- name: deleted_at
|
|
28
|
-
type: datetime
|
|
29
|
-
isNullable: true
|
|
30
|
-
- type: created_at
|
|
31
|
-
- type: updated_at
|
|
32
|
-
|
|
33
|
-
indices:
|
|
34
|
-
- columns: [contract_id]
|
|
35
|
-
- columns: [revision_type]
|
|
36
|
-
- columns: [status]
|
|
37
|
-
- columns: [effective_date]
|
|
38
|
-
- 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: revision_type
|
|
11
|
+
type: enum
|
|
12
|
+
values: [amendment, renewal, revision, addendum, other]
|
|
13
|
+
default: revision
|
|
14
|
+
- name: title
|
|
15
|
+
type: varchar
|
|
16
|
+
length: 180
|
|
17
|
+
- name: effective_date
|
|
18
|
+
type: date
|
|
19
|
+
isNullable: true
|
|
20
|
+
- name: status
|
|
21
|
+
type: enum
|
|
22
|
+
values: [draft, active, completed, cancelled]
|
|
23
|
+
default: draft
|
|
24
|
+
- name: summary
|
|
25
|
+
type: text
|
|
26
|
+
isNullable: true
|
|
27
|
+
- name: deleted_at
|
|
28
|
+
type: datetime
|
|
29
|
+
isNullable: true
|
|
30
|
+
- type: created_at
|
|
31
|
+
- type: updated_at
|
|
32
|
+
|
|
33
|
+
indices:
|
|
34
|
+
- columns: [contract_id]
|
|
35
|
+
- columns: [revision_type]
|
|
36
|
+
- columns: [status]
|
|
37
|
+
- columns: [effective_date]
|
|
38
|
+
- columns: [deleted_at]
|
|
@@ -1,38 +1,38 @@
|
|
|
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: signer_name
|
|
11
|
-
type: varchar
|
|
12
|
-
length: 180
|
|
13
|
-
- name: signer_role
|
|
14
|
-
type: varchar
|
|
15
|
-
length: 120
|
|
16
|
-
isNullable: true
|
|
17
|
-
- name: signer_email
|
|
18
|
-
type: varchar
|
|
19
|
-
length: 180
|
|
20
|
-
isNullable: true
|
|
21
|
-
- name: signer_status
|
|
22
|
-
type: enum
|
|
23
|
-
values: [pending, signed, rejected]
|
|
24
|
-
default: pending
|
|
25
|
-
- name: signed_at
|
|
26
|
-
type: datetime
|
|
27
|
-
isNullable: true
|
|
28
|
-
- name: deleted_at
|
|
29
|
-
type: datetime
|
|
30
|
-
isNullable: true
|
|
31
|
-
- type: created_at
|
|
32
|
-
- type: updated_at
|
|
33
|
-
|
|
34
|
-
indices:
|
|
35
|
-
- columns: [contract_id]
|
|
36
|
-
- columns: [signer_status]
|
|
37
|
-
- columns: [signed_at]
|
|
38
|
-
- 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: signer_name
|
|
11
|
+
type: varchar
|
|
12
|
+
length: 180
|
|
13
|
+
- name: signer_role
|
|
14
|
+
type: varchar
|
|
15
|
+
length: 120
|
|
16
|
+
isNullable: true
|
|
17
|
+
- name: signer_email
|
|
18
|
+
type: varchar
|
|
19
|
+
length: 180
|
|
20
|
+
isNullable: true
|
|
21
|
+
- name: signer_status
|
|
22
|
+
type: enum
|
|
23
|
+
values: [pending, signed, rejected]
|
|
24
|
+
default: pending
|
|
25
|
+
- name: signed_at
|
|
26
|
+
type: datetime
|
|
27
|
+
isNullable: true
|
|
28
|
+
- name: deleted_at
|
|
29
|
+
type: datetime
|
|
30
|
+
isNullable: true
|
|
31
|
+
- type: created_at
|
|
32
|
+
- type: updated_at
|
|
33
|
+
|
|
34
|
+
indices:
|
|
35
|
+
- columns: [contract_id]
|
|
36
|
+
- columns: [signer_status]
|
|
37
|
+
- columns: [signed_at]
|
|
38
|
+
- columns: [deleted_at]
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
columns:
|
|
2
|
-
- type: pk
|
|
3
|
-
- name: contract_id
|
|
4
|
-
type: fk
|
|
5
|
-
isNullable: true
|
|
1
|
+
columns:
|
|
2
|
+
- type: pk
|
|
3
|
+
- name: contract_id
|
|
4
|
+
type: fk
|
|
5
|
+
isNullable: true
|
|
6
|
+
references:
|
|
7
|
+
table: operations_contract
|
|
8
|
+
column: id
|
|
9
|
+
onDelete: SET NULL
|
|
10
|
+
onUpdate: CASCADE
|
|
11
|
+
- name: manager_collaborator_id
|
|
12
|
+
type: fk
|
|
13
|
+
isNullable: true
|
|
6
14
|
references:
|
|
7
|
-
table:
|
|
8
|
-
column: id
|
|
9
|
-
onDelete: SET NULL
|
|
10
|
-
onUpdate: CASCADE
|
|
11
|
-
- name:
|
|
12
|
-
type:
|
|
13
|
-
isNullable: true
|
|
14
|
-
references:
|
|
15
|
-
table: operations_collaborator
|
|
16
|
-
column: id
|
|
17
|
-
onDelete: SET NULL
|
|
18
|
-
onUpdate: CASCADE
|
|
19
|
-
- name: code
|
|
20
|
-
type: varchar
|
|
15
|
+
table: operations_collaborator
|
|
16
|
+
column: id
|
|
17
|
+
onDelete: SET NULL
|
|
18
|
+
onUpdate: CASCADE
|
|
19
|
+
- name: code
|
|
20
|
+
type: varchar
|
|
21
21
|
length: 40
|
|
22
22
|
- name: name
|
|
23
23
|
type: varchar
|
|
24
24
|
length: 180
|
|
25
|
-
- name: client_name
|
|
26
|
-
type: varchar
|
|
27
|
-
length: 180
|
|
28
|
-
isNullable: true
|
|
29
|
-
- name: summary
|
|
30
|
-
type: text
|
|
31
|
-
isNullable: true
|
|
32
|
-
- name: status
|
|
33
|
-
type: enum
|
|
34
|
-
values: [planning, active, at_risk, paused, completed, archived]
|
|
25
|
+
- name: client_name
|
|
26
|
+
type: varchar
|
|
27
|
+
length: 180
|
|
28
|
+
isNullable: true
|
|
29
|
+
- name: summary
|
|
30
|
+
type: text
|
|
31
|
+
isNullable: true
|
|
32
|
+
- name: status
|
|
33
|
+
type: enum
|
|
34
|
+
values: [planning, active, at_risk, paused, completed, archived]
|
|
35
35
|
default: planning
|
|
36
|
-
- name: progress_percent
|
|
37
|
-
type: decimal
|
|
38
|
-
precision: 5
|
|
39
|
-
scale: 2
|
|
40
|
-
isNullable: true
|
|
41
|
-
- name: delivery_model
|
|
42
|
-
type: enum
|
|
43
|
-
values: [dedicated_team, shared_team, project_delivery, support]
|
|
44
|
-
default: project_delivery
|
|
45
|
-
- name: budget_amount
|
|
46
|
-
type: decimal
|
|
47
|
-
precision: 12
|
|
48
|
-
scale: 2
|
|
49
|
-
isNullable: true
|
|
50
|
-
- name: start_date
|
|
36
|
+
- name: progress_percent
|
|
37
|
+
type: decimal
|
|
38
|
+
precision: 5
|
|
39
|
+
scale: 2
|
|
40
|
+
isNullable: true
|
|
41
|
+
- name: delivery_model
|
|
42
|
+
type: enum
|
|
43
|
+
values: [dedicated_team, shared_team, project_delivery, support]
|
|
44
|
+
default: project_delivery
|
|
45
|
+
- name: budget_amount
|
|
46
|
+
type: decimal
|
|
47
|
+
precision: 12
|
|
48
|
+
scale: 2
|
|
49
|
+
isNullable: true
|
|
50
|
+
- name: start_date
|
|
51
51
|
type: date
|
|
52
52
|
isNullable: true
|
|
53
53
|
- name: end_date
|
|
@@ -58,13 +58,13 @@ columns:
|
|
|
58
58
|
isNullable: true
|
|
59
59
|
- type: created_at
|
|
60
60
|
- type: updated_at
|
|
61
|
-
|
|
62
|
-
indices:
|
|
63
|
-
- columns: [code]
|
|
64
|
-
isUnique: true
|
|
65
|
-
- columns: [contract_id]
|
|
66
|
-
- columns: [manager_collaborator_id]
|
|
67
|
-
- columns: [status]
|
|
68
|
-
- columns: [start_date]
|
|
69
|
-
- columns: [end_date]
|
|
70
|
-
- columns: [deleted_at]
|
|
61
|
+
|
|
62
|
+
indices:
|
|
63
|
+
- columns: [code]
|
|
64
|
+
isUnique: true
|
|
65
|
+
- columns: [contract_id]
|
|
66
|
+
- columns: [manager_collaborator_id]
|
|
67
|
+
- columns: [status]
|
|
68
|
+
- columns: [start_date]
|
|
69
|
+
- columns: [end_date]
|
|
70
|
+
- columns: [deleted_at]
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
columns:
|
|
2
|
-
- type: pk
|
|
3
|
-
- name: project_id
|
|
4
|
-
type: fk
|
|
5
|
-
references:
|
|
6
|
-
table: operations_project
|
|
7
|
-
column: id
|
|
8
|
-
onDelete: CASCADE
|
|
9
|
-
onUpdate: CASCADE
|
|
10
|
-
- name: collaborator_id
|
|
11
|
-
type: fk
|
|
12
|
-
references:
|
|
13
|
-
table: operations_collaborator
|
|
14
|
-
column: id
|
|
15
|
-
onDelete: CASCADE
|
|
16
|
-
onUpdate: CASCADE
|
|
17
|
-
- name: role_label
|
|
18
|
-
type: varchar
|
|
19
|
-
length: 120
|
|
20
|
-
- name: allocation_percent
|
|
21
|
-
type: decimal
|
|
22
|
-
precision: 5
|
|
23
|
-
scale: 2
|
|
24
|
-
isNullable: true
|
|
25
|
-
- name: weekly_hours
|
|
26
|
-
type: decimal
|
|
27
|
-
precision: 6
|
|
28
|
-
scale: 2
|
|
29
|
-
isNullable: true
|
|
30
|
-
- name: is_billable
|
|
31
|
-
type: boolean
|
|
32
|
-
default: true
|
|
33
|
-
- name: start_date
|
|
34
|
-
type: date
|
|
35
|
-
isNullable: true
|
|
36
|
-
- name: end_date
|
|
37
|
-
type: date
|
|
38
|
-
isNullable: true
|
|
39
|
-
- name: status
|
|
40
|
-
type: enum
|
|
41
|
-
values: [planned, active, completed, cancelled]
|
|
42
|
-
default: active
|
|
43
|
-
- name: deleted_at
|
|
44
|
-
type: datetime
|
|
45
|
-
isNullable: true
|
|
46
|
-
- type: created_at
|
|
47
|
-
- type: updated_at
|
|
48
|
-
|
|
49
|
-
indices:
|
|
50
|
-
- columns: [project_id]
|
|
51
|
-
- columns: [collaborator_id]
|
|
52
|
-
- columns: [status]
|
|
53
|
-
- columns: [start_date]
|
|
54
|
-
- columns: [end_date]
|
|
55
|
-
- columns: [deleted_at]
|
|
1
|
+
columns:
|
|
2
|
+
- type: pk
|
|
3
|
+
- name: project_id
|
|
4
|
+
type: fk
|
|
5
|
+
references:
|
|
6
|
+
table: operations_project
|
|
7
|
+
column: id
|
|
8
|
+
onDelete: CASCADE
|
|
9
|
+
onUpdate: CASCADE
|
|
10
|
+
- name: collaborator_id
|
|
11
|
+
type: fk
|
|
12
|
+
references:
|
|
13
|
+
table: operations_collaborator
|
|
14
|
+
column: id
|
|
15
|
+
onDelete: CASCADE
|
|
16
|
+
onUpdate: CASCADE
|
|
17
|
+
- name: role_label
|
|
18
|
+
type: varchar
|
|
19
|
+
length: 120
|
|
20
|
+
- name: allocation_percent
|
|
21
|
+
type: decimal
|
|
22
|
+
precision: 5
|
|
23
|
+
scale: 2
|
|
24
|
+
isNullable: true
|
|
25
|
+
- name: weekly_hours
|
|
26
|
+
type: decimal
|
|
27
|
+
precision: 6
|
|
28
|
+
scale: 2
|
|
29
|
+
isNullable: true
|
|
30
|
+
- name: is_billable
|
|
31
|
+
type: boolean
|
|
32
|
+
default: true
|
|
33
|
+
- name: start_date
|
|
34
|
+
type: date
|
|
35
|
+
isNullable: true
|
|
36
|
+
- name: end_date
|
|
37
|
+
type: date
|
|
38
|
+
isNullable: true
|
|
39
|
+
- name: status
|
|
40
|
+
type: enum
|
|
41
|
+
values: [planned, active, completed, cancelled]
|
|
42
|
+
default: active
|
|
43
|
+
- name: deleted_at
|
|
44
|
+
type: datetime
|
|
45
|
+
isNullable: true
|
|
46
|
+
- type: created_at
|
|
47
|
+
- type: updated_at
|
|
48
|
+
|
|
49
|
+
indices:
|
|
50
|
+
- columns: [project_id]
|
|
51
|
+
- columns: [collaborator_id]
|
|
52
|
+
- columns: [status]
|
|
53
|
+
- columns: [start_date]
|
|
54
|
+
- columns: [end_date]
|
|
55
|
+
- columns: [deleted_at]
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
columns:
|
|
2
|
-
- type: pk
|
|
3
|
-
- name: schedule_adjustment_request_id
|
|
4
|
-
type: fk
|
|
5
|
-
references:
|
|
6
|
-
table: operations_schedule_adjustment_request
|
|
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: varchar
|
|
18
|
-
length: 5
|
|
19
|
-
isNullable: true
|
|
20
|
-
- name: end_time
|
|
21
|
-
type: varchar
|
|
22
|
-
length: 5
|
|
23
|
-
isNullable: true
|
|
24
|
-
- name: break_minutes
|
|
25
|
-
type: int
|
|
26
|
-
isNullable: true
|
|
27
|
-
- type: created_at
|
|
28
|
-
- type: updated_at
|
|
29
|
-
|
|
30
|
-
indices:
|
|
31
|
-
- columns: [schedule_adjustment_request_id]
|
|
32
|
-
- columns: [weekday]
|
|
33
|
-
- columns: [schedule_adjustment_request_id, weekday]
|
|
34
|
-
isUnique: true
|
|
1
|
+
columns:
|
|
2
|
+
- type: pk
|
|
3
|
+
- name: schedule_adjustment_request_id
|
|
4
|
+
type: fk
|
|
5
|
+
references:
|
|
6
|
+
table: operations_schedule_adjustment_request
|
|
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: varchar
|
|
18
|
+
length: 5
|
|
19
|
+
isNullable: true
|
|
20
|
+
- name: end_time
|
|
21
|
+
type: varchar
|
|
22
|
+
length: 5
|
|
23
|
+
isNullable: true
|
|
24
|
+
- name: break_minutes
|
|
25
|
+
type: int
|
|
26
|
+
isNullable: true
|
|
27
|
+
- type: created_at
|
|
28
|
+
- type: updated_at
|
|
29
|
+
|
|
30
|
+
indices:
|
|
31
|
+
- columns: [schedule_adjustment_request_id]
|
|
32
|
+
- columns: [weekday]
|
|
33
|
+
- columns: [schedule_adjustment_request_id, weekday]
|
|
34
|
+
isUnique: true
|