Timeticket Approval Queue schema updates for payroll updates.

This commit is contained in:
Patrick Fic
2023-04-24 13:39:59 -07:00
parent c39f1d824a
commit 7badb09ba1
9 changed files with 61 additions and 40 deletions

View File

@@ -5231,14 +5231,9 @@
- name: job - name: job
using: using:
foreign_key_constraint_on: jobid foreign_key_constraint_on: jobid
array_relationships: - name: tt_approval_queue
- name: tt_approval_queues
using: using:
foreign_key_constraint_on: foreign_key_constraint_on: ttapprovalqueueid
column: timeticketid
table:
name: tt_approval_queue
schema: public
insert_permissions: insert_permissions:
- role: user - role: user
permission: permission:
@@ -5268,6 +5263,7 @@
- memo - memo
- productivehrs - productivehrs
- rate - rate
- ttapprovalqueueid
- updated_at - updated_at
select_permissions: select_permissions:
- role: user - role: user
@@ -5289,6 +5285,7 @@
- memo - memo
- productivehrs - productivehrs
- rate - rate
- ttapprovalqueueid
- updated_at - updated_at
filter: filter:
bodyshop: bodyshop:
@@ -5319,6 +5316,7 @@
- memo - memo
- productivehrs - productivehrs
- rate - rate
- ttapprovalqueueid
- updated_at - updated_at
filter: filter:
bodyshop: bodyshop:
@@ -5442,12 +5440,17 @@
- name: job - name: job
using: using:
foreign_key_constraint_on: jobid foreign_key_constraint_on: jobid
- name: timeticket
using:
foreign_key_constraint_on: timeticketid
- name: user - name: user
using: using:
foreign_key_constraint_on: approved_by foreign_key_constraint_on: approved_by
array_relationships:
- name: timetickets
using:
foreign_key_constraint_on:
column: ttapprovalqueueid
table:
name: timetickets
schema: public
insert_permissions: insert_permissions:
- role: user - role: user
permission: permission:
@@ -5461,44 +5464,42 @@
authid: authid:
_eq: X-Hasura-User-Id _eq: X-Hasura-User-Id
columns: columns:
- id
- created_at
- updated_at
- bodyshopid
- jobid
- employeeid
- timeticketid
- approved_by
- approved_at
- actualhrs - actualhrs
- productivehrs - approved_at
- rate - approved_by
- flat_rate - bodyshopid
- ciecacode - ciecacode
- cost_center - cost_center
- created_at
- date - date
- employeeid
- flat_rate
- id
- jobid
- memo - memo
- productivehrs
- rate
- updated_at
select_permissions: select_permissions:
- role: user - role: user
permission: permission:
columns: columns:
- flat_rate
- date
- actualhrs - actualhrs
- productivehrs - approved_at
- rate
- approved_by - approved_by
- bodyshopid
- ciecacode - ciecacode
- cost_center - cost_center
- memo
- approved_at
- created_at - created_at
- updated_at - date
- bodyshopid
- employeeid - employeeid
- flat_rate
- id - id
- jobid - jobid
- timeticketid - memo
- productivehrs
- rate
- updated_at
filter: filter:
bodyshop: bodyshop:
associations: associations:
@@ -5513,23 +5514,22 @@
- role: user - role: user
permission: permission:
columns: columns:
- flat_rate
- date
- actualhrs - actualhrs
- productivehrs - approved_at
- rate
- approved_by - approved_by
- bodyshopid
- ciecacode - ciecacode
- cost_center - cost_center
- memo
- approved_at
- created_at - created_at
- updated_at - date
- bodyshopid
- employeeid - employeeid
- flat_rate
- id - id
- jobid - jobid
- timeticketid - memo
- productivehrs
- rate
- updated_at
filter: filter:
bodyshop: bodyshop:
associations: associations:

View File

@@ -0,0 +1,5 @@
alter table "public"."tt_approval_queue"
add constraint "tt_approval_queue_timeticketid_fkey"
foreign key ("timeticketid")
references "public"."timetickets"
("id") on update cascade on delete cascade;

View File

@@ -0,0 +1 @@
alter table "public"."tt_approval_queue" drop constraint "tt_approval_queue_timeticketid_fkey";

View File

@@ -0,0 +1,2 @@
alter table "public"."tt_approval_queue" alter column "timeticketid" drop not null;
alter table "public"."tt_approval_queue" add column "timeticketid" uuid;

View File

@@ -0,0 +1 @@
alter table "public"."tt_approval_queue" drop column "timeticketid" cascade;

View File

@@ -0,0 +1,4 @@
-- Could not auto-generate a down migration.
-- Please write an appropriate down migration for the SQL below:
-- alter table "public"."timetickets" add column "ttapprovalqueueid" uuid
-- null;

View File

@@ -0,0 +1,2 @@
alter table "public"."timetickets" add column "ttapprovalqueueid" uuid
null;

View File

@@ -0,0 +1 @@
alter table "public"."timetickets" drop constraint "timetickets_ttapprovalqueueid_fkey";

View File

@@ -0,0 +1,5 @@
alter table "public"."timetickets"
add constraint "timetickets_ttapprovalqueueid_fkey"
foreign key ("ttapprovalqueueid")
references "public"."tt_approval_queue"
("id") on update cascade on delete set null;