Skip to content

Commit 31a2180

Browse files
committed
Regenerate database types to match hosted schema
Adds push_tokens table, sticker_logs.note, tasks.requires_note, and users.auth_provider, matching the linked project so the CI drift check passes.
1 parent 892891f commit 31a2180

1 file changed

Lines changed: 46 additions & 10 deletions

File tree

‎src/types/database.ts‎

Lines changed: 46 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,48 @@ export type Database = {
189189
},
190190
]
191191
}
192+
push_tokens: {
193+
Row: {
194+
created_at: string
195+
id: string
196+
platform: string
197+
token: string
198+
updated_at: string
199+
user_id: string
200+
}
201+
Insert: {
202+
created_at?: string
203+
id?: string
204+
platform: string
205+
token: string
206+
updated_at?: string
207+
user_id: string
208+
}
209+
Update: {
210+
created_at?: string
211+
id?: string
212+
platform?: string
213+
token?: string
214+
updated_at?: string
215+
user_id?: string
216+
}
217+
Relationships: [
218+
{
219+
foreignKeyName: "push_tokens_user_id_fkey"
220+
columns: ["user_id"]
221+
isOneToOne: false
222+
referencedRelation: "users"
223+
referencedColumns: ["id"]
224+
},
225+
]
226+
}
192227
sticker_logs: {
193228
Row: {
194229
count: number | null
195230
date: string
196231
earned_at: string
197232
id: string
233+
note: string | null
198234
task_id: string
199235
user_id: string
200236
}
@@ -203,6 +239,7 @@ export type Database = {
203239
date: string
204240
earned_at: string
205241
id?: string
242+
note?: string | null
206243
task_id: string
207244
user_id: string
208245
}
@@ -211,6 +248,7 @@ export type Database = {
211248
date?: string
212249
earned_at?: string
213250
id?: string
251+
note?: string | null
214252
task_id?: string
215253
user_id?: string
216254
}
@@ -241,6 +279,7 @@ export type Database = {
241279
id: string
242280
is_daily_challenge: boolean
243281
is_global: boolean
282+
requires_note: boolean
244283
target_count: number | null
245284
title: string
246285
user_id: string
@@ -254,6 +293,7 @@ export type Database = {
254293
id?: string
255294
is_daily_challenge?: boolean
256295
is_global?: boolean
296+
requires_note?: boolean
257297
target_count?: number | null
258298
title: string
259299
user_id: string
@@ -267,6 +307,7 @@ export type Database = {
267307
id?: string
268308
is_daily_challenge?: boolean
269309
is_global?: boolean
310+
requires_note?: boolean
270311
target_count?: number | null
271312
title?: string
272313
user_id?: string
@@ -313,6 +354,7 @@ export type Database = {
313354
}
314355
users: {
315356
Row: {
357+
auth_provider: string
316358
created_at: string
317359
display_name: string
318360
email: string
@@ -324,6 +366,7 @@ export type Database = {
324366
theme: string | null
325367
}
326368
Insert: {
369+
auth_provider?: string
327370
created_at?: string
328371
display_name: string
329372
email: string
@@ -335,6 +378,7 @@ export type Database = {
335378
theme?: string | null
336379
}
337380
Update: {
381+
auth_provider?: string
338382
created_at?: string
339383
display_name?: string
340384
email?: string
@@ -360,16 +404,8 @@ export type Database = {
360404
[_ in never]: never
361405
}
362406
Functions: {
363-
rotate_daily_challenge: {
364-
Args: Record<PropertyKey, never>
365-
Returns: Json
366-
}
367-
set_daily_challenge: {
368-
Args: {
369-
p_task_id: string
370-
}
371-
Returns: undefined
372-
}
407+
rotate_daily_challenge: { Args: never; Returns: Json }
408+
set_daily_challenge: { Args: { p_task_id: string }; Returns: undefined }
373409
}
374410
Enums: {
375411
[_ in never]: never

0 commit comments

Comments
 (0)