Schema updates.
This commit is contained in:
@@ -185,7 +185,7 @@ export const TemplateList = (type, context) => {
|
|||||||
thirdpartypayer: {
|
thirdpartypayer: {
|
||||||
title: i18n.t("printcenter.jobs.thirdpartypayer"),
|
title: i18n.t("printcenter.jobs.thirdpartypayer"),
|
||||||
description: "CSI invite",
|
description: "CSI invite",
|
||||||
key: "special/thirdpartypayer",
|
key: "thirdpartypayer",
|
||||||
disabled: false,
|
disabled: false,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
- args:
|
||||||
|
relationship: messages
|
||||||
|
table:
|
||||||
|
name: users
|
||||||
|
schema: public
|
||||||
|
type: drop_relationship
|
||||||
|
- args:
|
||||||
|
relationship: user
|
||||||
|
table:
|
||||||
|
name: messages
|
||||||
|
schema: public
|
||||||
|
type: drop_relationship
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
- args:
|
||||||
|
name: messages
|
||||||
|
table:
|
||||||
|
name: users
|
||||||
|
schema: public
|
||||||
|
using:
|
||||||
|
foreign_key_constraint_on:
|
||||||
|
column: userid
|
||||||
|
table:
|
||||||
|
name: messages
|
||||||
|
schema: public
|
||||||
|
type: create_array_relationship
|
||||||
|
- args:
|
||||||
|
name: user
|
||||||
|
table:
|
||||||
|
name: messages
|
||||||
|
schema: public
|
||||||
|
using:
|
||||||
|
foreign_key_constraint_on: userid
|
||||||
|
type: create_object_relationship
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
- args:
|
||||||
|
cascade: false
|
||||||
|
read_only: false
|
||||||
|
sql: |-
|
||||||
|
alter table "public"."parts_order_lines" drop constraint "parts_order_lines_job_line_id_fkey",
|
||||||
|
add constraint "parts_order_lines_job_line_id_fkey"
|
||||||
|
foreign key ("job_line_id")
|
||||||
|
references "public"."joblines"
|
||||||
|
("id")
|
||||||
|
on update restrict
|
||||||
|
on delete set null;
|
||||||
|
type: run_sql
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
- args:
|
||||||
|
cascade: false
|
||||||
|
read_only: false
|
||||||
|
sql: |-
|
||||||
|
alter table "public"."parts_order_lines" drop constraint "parts_order_lines_job_line_id_fkey",
|
||||||
|
add constraint "parts_order_lines_job_line_id_fkey"
|
||||||
|
foreign key ("job_line_id")
|
||||||
|
references "public"."joblines"
|
||||||
|
("id") on update cascade on delete cascade;
|
||||||
|
type: run_sql
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
- args:
|
||||||
|
cascade: false
|
||||||
|
read_only: false
|
||||||
|
sql: |-
|
||||||
|
alter table "public"."parts_orders" drop constraint "parts_orders_vendorid_fkey",
|
||||||
|
add constraint "parts_order_vendorid_fkey"
|
||||||
|
foreign key ("vendorid")
|
||||||
|
references "public"."vendors"
|
||||||
|
("id")
|
||||||
|
on update restrict
|
||||||
|
on delete restrict;
|
||||||
|
type: run_sql
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
- args:
|
||||||
|
cascade: false
|
||||||
|
read_only: false
|
||||||
|
sql: |-
|
||||||
|
alter table "public"."parts_orders" drop constraint "parts_order_vendorid_fkey",
|
||||||
|
add constraint "parts_orders_vendorid_fkey"
|
||||||
|
foreign key ("vendorid")
|
||||||
|
references "public"."vendors"
|
||||||
|
("id") on update set null on delete set null;
|
||||||
|
type: run_sql
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
- args:
|
||||||
|
cascade: false
|
||||||
|
read_only: false
|
||||||
|
sql: |-
|
||||||
|
alter table "public"."parts_orders" drop constraint "parts_orders_returnfrombill_fkey",
|
||||||
|
add constraint "parts_orders_returnfrominvoice_fkey"
|
||||||
|
foreign key ("returnfrombill")
|
||||||
|
references "public"."bills"
|
||||||
|
("id")
|
||||||
|
on update restrict
|
||||||
|
on delete restrict;
|
||||||
|
type: run_sql
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
- args:
|
||||||
|
cascade: false
|
||||||
|
read_only: false
|
||||||
|
sql: |-
|
||||||
|
alter table "public"."parts_orders" drop constraint "parts_orders_returnfrominvoice_fkey",
|
||||||
|
add constraint "parts_orders_returnfrombill_fkey"
|
||||||
|
foreign key ("returnfrombill")
|
||||||
|
references "public"."bills"
|
||||||
|
("id") on update set null on delete set null;
|
||||||
|
type: run_sql
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
- args:
|
||||||
|
cascade: false
|
||||||
|
read_only: false
|
||||||
|
sql: ALTER TABLE "public"."bodyshops" ADD CONSTRAINT "bodyshops_messagingservicesid_key"
|
||||||
|
UNIQUE ("messagingservicesid");
|
||||||
|
type: run_sql
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
- args:
|
||||||
|
cascade: false
|
||||||
|
read_only: false
|
||||||
|
sql: ALTER TABLE "public"."bodyshops" DROP CONSTRAINT "bodyshops_messagingservicesid_key";
|
||||||
|
type: run_sql
|
||||||
@@ -3001,6 +3001,9 @@ tables:
|
|||||||
- name: conversation
|
- name: conversation
|
||||||
using:
|
using:
|
||||||
foreign_key_constraint_on: conversationid
|
foreign_key_constraint_on: conversationid
|
||||||
|
- name: user
|
||||||
|
using:
|
||||||
|
foreign_key_constraint_on: userid
|
||||||
insert_permissions:
|
insert_permissions:
|
||||||
- role: user
|
- role: user
|
||||||
permission:
|
permission:
|
||||||
@@ -3861,6 +3864,13 @@ tables:
|
|||||||
table:
|
table:
|
||||||
schema: public
|
schema: public
|
||||||
name: audit_trail
|
name: audit_trail
|
||||||
|
- name: messages
|
||||||
|
using:
|
||||||
|
foreign_key_constraint_on:
|
||||||
|
column: userid
|
||||||
|
table:
|
||||||
|
schema: public
|
||||||
|
name: messages
|
||||||
- name: notes
|
- name: notes
|
||||||
using:
|
using:
|
||||||
foreign_key_constraint_on:
|
foreign_key_constraint_on:
|
||||||
|
|||||||
Reference in New Issue
Block a user