Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
8b21c6efef
commit
bf2489fa19
@@ -665,6 +665,65 @@ export type Database = {
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
conversation_members: {
|
||||
Row: {
|
||||
conversation_id: string
|
||||
created_at: string
|
||||
id: string
|
||||
last_read_at: string
|
||||
user_id: string
|
||||
}
|
||||
Insert: {
|
||||
conversation_id: string
|
||||
created_at?: string
|
||||
id?: string
|
||||
last_read_at?: string
|
||||
user_id: string
|
||||
}
|
||||
Update: {
|
||||
conversation_id?: string
|
||||
created_at?: string
|
||||
id?: string
|
||||
last_read_at?: string
|
||||
user_id?: string
|
||||
}
|
||||
Relationships: [
|
||||
{
|
||||
foreignKeyName: "conversation_members_conversation_id_fkey"
|
||||
columns: ["conversation_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "conversations"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
]
|
||||
}
|
||||
conversations: {
|
||||
Row: {
|
||||
created_at: string
|
||||
created_by: string | null
|
||||
id: string
|
||||
name: string | null
|
||||
type: string
|
||||
updated_at: string
|
||||
}
|
||||
Insert: {
|
||||
created_at?: string
|
||||
created_by?: string | null
|
||||
id?: string
|
||||
name?: string | null
|
||||
type: string
|
||||
updated_at?: string
|
||||
}
|
||||
Update: {
|
||||
created_at?: string
|
||||
created_by?: string | null
|
||||
id?: string
|
||||
name?: string | null
|
||||
type?: string
|
||||
updated_at?: string
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
document_folders: {
|
||||
Row: {
|
||||
case_id: string
|
||||
@@ -1123,6 +1182,118 @@ export type Database = {
|
||||
},
|
||||
]
|
||||
}
|
||||
message_attachments: {
|
||||
Row: {
|
||||
created_at: string
|
||||
id: string
|
||||
message_id: string
|
||||
mime_type: string | null
|
||||
name: string
|
||||
size_bytes: number | null
|
||||
storage_path: string
|
||||
}
|
||||
Insert: {
|
||||
created_at?: string
|
||||
id?: string
|
||||
message_id: string
|
||||
mime_type?: string | null
|
||||
name: string
|
||||
size_bytes?: number | null
|
||||
storage_path: string
|
||||
}
|
||||
Update: {
|
||||
created_at?: string
|
||||
id?: string
|
||||
message_id?: string
|
||||
mime_type?: string | null
|
||||
name?: string
|
||||
size_bytes?: number | null
|
||||
storage_path?: string
|
||||
}
|
||||
Relationships: [
|
||||
{
|
||||
foreignKeyName: "message_attachments_message_id_fkey"
|
||||
columns: ["message_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "messages"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
]
|
||||
}
|
||||
message_mentions: {
|
||||
Row: {
|
||||
conversation_id: string
|
||||
created_at: string
|
||||
id: string
|
||||
mentioned_user_id: string
|
||||
message_id: string
|
||||
}
|
||||
Insert: {
|
||||
conversation_id: string
|
||||
created_at?: string
|
||||
id?: string
|
||||
mentioned_user_id: string
|
||||
message_id: string
|
||||
}
|
||||
Update: {
|
||||
conversation_id?: string
|
||||
created_at?: string
|
||||
id?: string
|
||||
mentioned_user_id?: string
|
||||
message_id?: string
|
||||
}
|
||||
Relationships: [
|
||||
{
|
||||
foreignKeyName: "message_mentions_conversation_id_fkey"
|
||||
columns: ["conversation_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "conversations"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "message_mentions_message_id_fkey"
|
||||
columns: ["message_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "messages"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
]
|
||||
}
|
||||
messages: {
|
||||
Row: {
|
||||
body: string
|
||||
conversation_id: string
|
||||
created_at: string
|
||||
edited_at: string | null
|
||||
id: string
|
||||
sender_id: string
|
||||
}
|
||||
Insert: {
|
||||
body?: string
|
||||
conversation_id: string
|
||||
created_at?: string
|
||||
edited_at?: string | null
|
||||
id?: string
|
||||
sender_id: string
|
||||
}
|
||||
Update: {
|
||||
body?: string
|
||||
conversation_id?: string
|
||||
created_at?: string
|
||||
edited_at?: string | null
|
||||
id?: string
|
||||
sender_id?: string
|
||||
}
|
||||
Relationships: [
|
||||
{
|
||||
foreignKeyName: "messages_conversation_id_fkey"
|
||||
columns: ["conversation_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "conversations"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
]
|
||||
}
|
||||
profiles: {
|
||||
Row: {
|
||||
created_at: string
|
||||
@@ -1283,6 +1454,10 @@ export type Database = {
|
||||
Returns: boolean
|
||||
}
|
||||
is_admin: { Args: { _user_id: string }; Returns: boolean }
|
||||
is_conversation_member: {
|
||||
Args: { _conv_id: string; _user_id: string }
|
||||
Returns: boolean
|
||||
}
|
||||
}
|
||||
Enums: {
|
||||
app_role: "admin" | "attorney" | "staff"
|
||||
|
||||
Reference in New Issue
Block a user