diff --git a/_business_logic/NewShopSetup.md b/_business_logic/NewShopSetup.md deleted file mode 100644 index 389582d25..000000000 --- a/_business_logic/NewShopSetup.md +++ /dev/null @@ -1,54 +0,0 @@ -**Required items** - --Bodyshop Record -..\*Include the statuses file in the format of: - -```json -{ - "statuses": [ - "Open", - "Scheduled", - "Arrived", - "Repair Plan", - "Parts", - "Body", - "Prep", - "Paint", - "Reassembly", - "Sublet", - "Detail", - "Completed", - "Delivered", - "Invoiced", - "Exported" - ], - "open_statuses": [ - "Open", - "Scheduled", - "Arrived", - "Repair Plan", - "Parts", - "Body", - "Prep", - "Paint", - "Reassembly", - "Sublet", - "Detail", - "Completed" - ], - "default_arrived": "Arrived", - "default_exported": "Exported", - "default_imported": "Open", - "default_invoiced": "Invoiced", - "default_completed": "Completed", - "default_delivered": "Delivered", - "default_scheduled": "Scheduled" -} - -``` - ---\* Set the region for the shop. --Counter Record - type: ronum - - -Create an in house vendor record and add it to the bodyshop record. \ No newline at end of file diff --git a/_business_logic/documents.md b/_business_logic/documents.md deleted file mode 100644 index 9641363eb..000000000 --- a/_business_logic/documents.md +++ /dev/null @@ -1,8 +0,0 @@ -**S3 Folder Structure** -/{shopID}/{jobID}/imagename.ext - -**Logic** -1. Get a presigned URL by hitting our own express server with a unique key. -2. Use this presigned URL to upload an individual file. -3. Store the key + the bucket name to the documents record. -4. \ No newline at end of file diff --git a/_business_logic/jobs.md b/_business_logic/jobs.md deleted file mode 100644 index a9236ee48..000000000 --- a/_business_logic/jobs.md +++ /dev/null @@ -1,4 +0,0 @@ -**Jobs Business Logic** - -**Converting to RO** -Job will convert to an RO if the converted flag is set to true, and the RO number is null or empty. It will query the counters table for the type of 'ro_num', increment it, and return the old value to paste into the RO. \ No newline at end of file diff --git a/hasura/migrations/1618432990073_run_sql_migration/down.yaml b/hasura/migrations/1618432990073_run_sql_migration/down.yaml new file mode 100644 index 000000000..fe51488c7 --- /dev/null +++ b/hasura/migrations/1618432990073_run_sql_migration/down.yaml @@ -0,0 +1 @@ +[] diff --git a/hasura/migrations/1618432990073_run_sql_migration/up.yaml b/hasura/migrations/1618432990073_run_sql_migration/up.yaml new file mode 100644 index 000000000..80cf12d7c --- /dev/null +++ b/hasura/migrations/1618432990073_run_sql_migration/up.yaml @@ -0,0 +1,5 @@ +- args: + cascade: false + read_only: false + sql: drop trigger if exists audit_trigger_jobs on jobs; + type: run_sql