Skip to content

Commit e79f1ac

Browse files
committed
feat: refine Supabase types nullability
- Make conversation_participants.email non-nullable in Row/Insert/Update - Allow conversations.created_at to be nullable in Row/Insert/Update - Make projects.is_public non-nullable in Row/Insert/Update - Make user_projects.projects optional and nullable across variants - Make user_stats.languages and total_seconds optional in types
1 parent c8fb95f commit e79f1ac

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

app/supabase-types.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@ export type Database = {
1717
conversation_participants: {
1818
Row: {
1919
conversation_id: string
20-
email: string | null
20+
email: string
2121
last_read_at: string
2222
last_seen_at: string
2323
type: string
2424
user_id: string
2525
}
2626
Insert: {
2727
conversation_id: string
28-
email?: string | null
28+
email: string
2929
last_read_at?: string
3030
last_seen_at?: string
3131
type?: string
3232
user_id: string
3333
}
3434
Update: {
3535
conversation_id?: string
36-
email?: string | null
36+
email?: string
3737
last_read_at?: string
3838
last_seen_at?: string
3939
type?: string
@@ -51,17 +51,17 @@ export type Database = {
5151
}
5252
conversations: {
5353
Row: {
54-
created_at: string
54+
created_at: string | null
5555
id: string
5656
type: string
5757
}
5858
Insert: {
59-
created_at?: string
59+
created_at?: string | null
6060
id?: string
6161
type?: string
6262
}
6363
Update: {
64-
created_at?: string
64+
created_at?: string | null
6565
id?: string
6666
type?: string
6767
}
@@ -104,7 +104,7 @@ export type Database = {
104104
created_at: string
105105
description: string | null
106106
id: string
107-
is_public: boolean | null
107+
is_public: boolean
108108
join_code: string
109109
name: string
110110
owner_id: string
@@ -114,7 +114,7 @@ export type Database = {
114114
created_at?: string
115115
description?: string | null
116116
id?: string
117-
is_public?: boolean | null
117+
is_public?: boolean
118118
join_code: string
119119
name: string
120120
owner_id: string
@@ -124,7 +124,7 @@ export type Database = {
124124
created_at?: string
125125
description?: string | null
126126
id?: string
127-
is_public?: boolean | null
127+
is_public?: boolean
128128
join_code?: string
129129
name?: string
130130
owner_id?: string
@@ -287,17 +287,17 @@ export type Database = {
287287
user_projects: {
288288
Row: {
289289
last_fetched_at: string
290-
projects: Json
290+
projects: Json | null
291291
user_id: string
292292
}
293293
Insert: {
294294
last_fetched_at?: string
295-
projects: Json
295+
projects?: Json | null
296296
user_id: string
297297
}
298298
Update: {
299299
last_fetched_at?: string
300-
projects?: Json
300+
projects?: Json | null
301301
user_id?: string
302302
}
303303
Relationships: []
@@ -324,11 +324,11 @@ export type Database = {
324324
daily_stats?: Json
325325
dependencies?: Json
326326
editors?: Json
327-
languages: Json
327+
languages?: Json
328328
last_fetched_at?: string
329329
machines?: Json
330330
operating_systems?: Json
331-
total_seconds: number
331+
total_seconds?: number
332332
user_id: string
333333
}
334334
Update: {

0 commit comments

Comments
 (0)