Skip to content

Commit 80b5801

Browse files
committed
add new db schemas
1 parent c7955ae commit 80b5801

File tree

1 file changed

+104
-0
lines changed

1 file changed

+104
-0
lines changed

src/types/supabase.ts

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,72 @@ export type Database = {
9999
}
100100
Relationships: []
101101
}
102+
feeds: {
103+
Row: {
104+
created_at: string
105+
id: number
106+
name: string
107+
properties: Json | null
108+
type: Database["public"]["Enums"]["feeds_type"]
109+
url: string
110+
}
111+
Insert: {
112+
created_at?: string
113+
id?: number
114+
name: string
115+
properties?: Json | null
116+
type: Database["public"]["Enums"]["feeds_type"]
117+
url: string
118+
}
119+
Update: {
120+
created_at?: string
121+
id?: number
122+
name?: string
123+
properties?: Json | null
124+
type?: Database["public"]["Enums"]["feeds_type"]
125+
url?: string
126+
}
127+
Relationships: []
128+
}
129+
media: {
130+
Row: {
131+
created_at: string
132+
id: number
133+
media_id: string | null
134+
modified_at: string | null
135+
name: string
136+
platform: string | null
137+
rating: Database["public"]["Enums"]["media_rating"] | null
138+
sort_order: number | null
139+
status: Database["public"]["Enums"]["media_status"] | null
140+
type: Database["public"]["Enums"]["media_type"] | null
141+
}
142+
Insert: {
143+
created_at?: string
144+
id?: number
145+
media_id?: string | null
146+
modified_at?: string | null
147+
name?: string
148+
platform?: string | null
149+
rating?: Database["public"]["Enums"]["media_rating"] | null
150+
sort_order?: number | null
151+
status?: Database["public"]["Enums"]["media_status"] | null
152+
type?: Database["public"]["Enums"]["media_type"] | null
153+
}
154+
Update: {
155+
created_at?: string
156+
id?: number
157+
media_id?: string | null
158+
modified_at?: string | null
159+
name?: string
160+
platform?: string | null
161+
rating?: Database["public"]["Enums"]["media_rating"] | null
162+
sort_order?: number | null
163+
status?: Database["public"]["Enums"]["media_status"] | null
164+
type?: Database["public"]["Enums"]["media_type"] | null
165+
}
166+
Relationships: []
167+
}
102168
profiles: {
103169
Row: {
104170
avatar_url: string | null
@@ -338,6 +404,28 @@ export type Database = {
338404
}
339405
}
340406
Enums: {
407+
feeds_type: "rss" | "api"
408+
media_rating:
409+
| "0"
410+
| "0.5"
411+
| "1"
412+
| "1.5"
413+
| "2"
414+
| "2.5"
415+
| "3"
416+
| "3.5"
417+
| "4"
418+
| "4.5"
419+
| "5"
420+
media_status: "now" | "skipped" | "done" | "wishlist"
421+
media_type:
422+
| "tv"
423+
| "film"
424+
| "game"
425+
| "book"
426+
| "podcast"
427+
| "music"
428+
| "other"
341429
status: "active" | "inactive"
342430
type:
343431
| "link"
@@ -469,6 +557,22 @@ export type CompositeTypes<
469557
export const Constants = {
470558
public: {
471559
Enums: {
560+
feeds_type: ["rss", "api"],
561+
media_rating: [
562+
"0",
563+
"0.5",
564+
"1",
565+
"1.5",
566+
"2",
567+
"2.5",
568+
"3",
569+
"3.5",
570+
"4",
571+
"4.5",
572+
"5",
573+
],
574+
media_status: ["now", "skipped", "done", "wishlist"],
575+
media_type: ["tv", "film", "game", "book", "podcast", "music", "other"],
472576
status: ["active", "inactive"],
473577
type: [
474578
"link",

0 commit comments

Comments
 (0)