update trade system
This commit is contained in:
@@ -205,42 +205,55 @@ export type Database = {
|
||||
trades: {
|
||||
Row: {
|
||||
id: string
|
||||
sender_id: string
|
||||
receiver_id: string
|
||||
user1_id: string
|
||||
user2_id: string
|
||||
status: 'pending' | 'accepted' | 'declined' | 'cancelled'
|
||||
message: string | null
|
||||
created_at: string | null
|
||||
updated_at: string | null
|
||||
version: number
|
||||
editor_id: string | null
|
||||
}
|
||||
Insert: {
|
||||
id?: string
|
||||
sender_id: string
|
||||
receiver_id: string
|
||||
user1_id: string
|
||||
user2_id: string
|
||||
status?: 'pending' | 'accepted' | 'declined' | 'cancelled'
|
||||
message?: string | null
|
||||
created_at?: string | null
|
||||
updated_at?: string | null
|
||||
version?: number
|
||||
editor_id?: string | null
|
||||
}
|
||||
Update: {
|
||||
id?: string
|
||||
sender_id?: string
|
||||
receiver_id?: string
|
||||
user1_id?: string
|
||||
user2_id?: string
|
||||
status?: 'pending' | 'accepted' | 'declined' | 'cancelled'
|
||||
message?: string | null
|
||||
created_at?: string | null
|
||||
updated_at?: string | null
|
||||
version?: number
|
||||
editor_id?: string | null
|
||||
}
|
||||
Relationships: [
|
||||
{
|
||||
foreignKeyName: "trades_sender_id_fkey"
|
||||
columns: ["sender_id"]
|
||||
foreignKeyName: "trades_user1_id_fkey"
|
||||
columns: ["user1_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "profiles"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "trades_receiver_id_fkey"
|
||||
columns: ["receiver_id"]
|
||||
foreignKeyName: "trades_user2_id_fkey"
|
||||
columns: ["user2_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "profiles"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "trades_editor_id_fkey"
|
||||
columns: ["editor_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "profiles"
|
||||
referencedColumns: ["id"]
|
||||
|
||||
Reference in New Issue
Block a user