Initial commit: Wedding Hall Automation System with Next.js, Supabase, and Modern UI
This commit is contained in:
83
src/types/database.types.ts
Normal file
83
src/types/database.types.ts
Normal file
@@ -0,0 +1,83 @@
|
||||
export type Json =
|
||||
| string
|
||||
| number
|
||||
| boolean
|
||||
| null
|
||||
| { [key: string]: Json | undefined }
|
||||
| Json[]
|
||||
|
||||
export interface Database {
|
||||
public: {
|
||||
Tables: {
|
||||
profiles: {
|
||||
Row: {
|
||||
id: string
|
||||
role: 'admin' | 'staff'
|
||||
full_name: string | null
|
||||
created_at: string
|
||||
}
|
||||
Insert: {
|
||||
id: string
|
||||
role?: 'admin' | 'staff'
|
||||
full_name?: string | null
|
||||
created_at?: string
|
||||
}
|
||||
Update: {
|
||||
id?: string
|
||||
role?: 'admin' | 'staff'
|
||||
full_name?: string | null
|
||||
created_at?: string
|
||||
}
|
||||
}
|
||||
customers: {
|
||||
Row: {
|
||||
id: string
|
||||
full_name: string
|
||||
phone: string | null
|
||||
email: string | null
|
||||
notes: string | null
|
||||
created_at: string
|
||||
}
|
||||
Insert: {
|
||||
id?: string
|
||||
full_name: string
|
||||
phone?: string | null
|
||||
email?: string | null
|
||||
notes?: string | null
|
||||
created_at?: string
|
||||
}
|
||||
Update: {
|
||||
id?: string
|
||||
full_name?: string
|
||||
phone?: string | null
|
||||
email?: string | null
|
||||
notes?: string | null
|
||||
created_at?: string
|
||||
}
|
||||
}
|
||||
halls: {
|
||||
Row: {
|
||||
id: string
|
||||
name: string
|
||||
capacity: number | null
|
||||
description: string | null
|
||||
created_at: string
|
||||
}
|
||||
Insert: {
|
||||
id?: string
|
||||
name: string
|
||||
capacity?: number | null
|
||||
description?: string | null
|
||||
created_at?: string
|
||||
}
|
||||
Update: {
|
||||
id?: string
|
||||
name?: string
|
||||
capacity?: number | null
|
||||
description?: string | null
|
||||
created_at?: string
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user