Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Commit

Permalink
feat: scaffold customer endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyxiao committed Feb 29, 2024
1 parent b8a94a7 commit d77f3f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/worker/postgres/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ export const resource = pgTable(
mode: 'string',
}).defaultNow(),
connector_name: text('connector_name').notNull(),
customer_id: text('customer_id').references(() => customer.id),
customer_id: text('customer_id').references(() => customer.id, {
onDelete: 'cascade',
onUpdate: 'cascade',
}),
},
(table) => ({
connector_name_idx: index('resource_connector_name').on(
Expand Down

0 comments on commit d77f3f4

Please sign in to comment.