Add invoice linking on expenses: optional FK, dropdown on add form, clickable chip
Deploy to LXC / deploy (push) Successful in 1m56s
Validate / validate (push) Successful in 32s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-17 15:46:20 +07:00
parent 0710d63cc1
commit 283f0d4dd1
3 changed files with 70 additions and 3 deletions
+3
View File
@@ -130,6 +130,9 @@ export const expenses = pgTable(
accountId: uuid('account_id').references((): any => companyAccounts.id, {
onDelete: 'set null'
}),
invoiceId: uuid('invoice_id').references((): any => invoices.id, {
onDelete: 'set null'
}),
submittedBy: text('submitted_by')
.notNull()
.references(() => users.id),