Fix: Implement database schema and code updates

This commit is contained in:
gpt-engineer-app[bot]
2025-11-05 01:20:30 +00:00
parent 5985ee352d
commit f750763c63
2 changed files with 147 additions and 3 deletions

View File

@@ -1495,20 +1495,26 @@ export type Database = {
}
item_edit_history: {
Row: {
changed_fields: string[] | null
edit_reason: string | null
edited_at: string
editor_id: string
edited_by: string
id: string
item_id: string
}
Insert: {
changed_fields?: string[] | null
edit_reason?: string | null
edited_at?: string
editor_id: string
edited_by: string
id?: string
item_id: string
}
Update: {
changed_fields?: string[] | null
edit_reason?: string | null
edited_at?: string
editor_id?: string
edited_by?: string
id?: string
item_id?: string
}
@@ -1522,6 +1528,41 @@ export type Database = {
},
]
}
item_field_changes: {
Row: {
created_at: string | null
edit_history_id: string
field_name: string
id: string
new_value: string | null
old_value: string | null
}
Insert: {
created_at?: string | null
edit_history_id: string
field_name: string
id?: string
new_value?: string | null
old_value?: string | null
}
Update: {
created_at?: string | null
edit_history_id?: string
field_name?: string
id?: string
new_value?: string | null
old_value?: string | null
}
Relationships: [
{
foreignKeyName: "item_field_changes_edit_history_id_fkey"
columns: ["edit_history_id"]
isOneToOne: false
referencedRelation: "item_edit_history"
referencedColumns: ["id"]
},
]
}
list_items: {
Row: {
created_at: string | null