feat(capa): require note and photos via /submit, block PATCH bypass
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -10,6 +10,7 @@ import {
|
||||
date,
|
||||
jsonb,
|
||||
customType,
|
||||
type AnyPgColumn,
|
||||
} from 'drizzle-orm/pg-core'
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
@@ -145,6 +146,7 @@ export const evidenceFiles = pgTable('evidence_files', {
|
||||
uploadedBy: uuid('uploaded_by').notNull().references(() => users.id),
|
||||
uploadedAt: timestamp('uploaded_at', { withTimezone: true }).notNull().defaultNow(),
|
||||
deleted: boolean('deleted').notNull().default(false),
|
||||
capaId: uuid('capa_id').references((): AnyPgColumn => capaActions.id),
|
||||
})
|
||||
|
||||
export const investigations = pgTable('investigations', {
|
||||
|
||||
Reference in New Issue
Block a user