File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 "test" : " playwright test" ,
1616 "format" : " biome check --write" ,
1717 "check" : " run-p 'check:*'" ,
18- "check:schema-contract" : " bun scripts/check_schema_contract.ts" ,
1918 "check:tsc" : " tsc" ,
2019 "check:eslint" : " eslint src" ,
2120 "check:script" : " uv run basedpyright scripts" ,
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ model friend {
2828}
2929
3030model chat_message {
31- id String @id
31+ id String @id
3232 owner_id String
3333 chat_user_id String
3434 sender_id String
@@ -46,13 +46,14 @@ model chat_message {
4646model friend_request {
4747 owner_id String
4848 remote_id String
49+ direction String
4950 name String
5051 avatar Bytes ?
5152 bio String
52- status String @default (" pending " )
53- created_at DateTime @default (now () )
53+ status String @default (" pending " )
54+ created_at DateTime @default (now () )
5455 responded_at DateTime ?
5556
56- @@id ([owner_id , remote_id ] )
57+ @@id ([owner_id , remote_id , direction ] )
5758 @@index ([owner_id , status , created_at ] )
5859}
Load diff This file was deleted.
Original file line number Diff line number Diff line change @@ -29,10 +29,12 @@ export type Message = {
2929} ;
3030
3131export type FriendRequestStatus = "pending" | "accepted" | "rejected" ;
32+ export type FriendRequestDirection = "incoming" | "outgoing" ;
3233
3334export type FriendRequest = {
3435 owner_id : string ;
3536 remote_id : string ;
37+ direction : FriendRequestDirection ;
3638 name : string ;
3739 avatar ?: Uint8Array ;
3840 bio : string ;
You can’t perform that action at this time.
0 commit comments