| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- export type Json = string | number | boolean | null | { [key: string]: Json | undefined } | Json[];
- export interface Database {
- public: {
- Tables: {
- users: {
- Row: {
- id: string;
- display_name: string;
- avatar_color: string | null;
- recovery_code: string | null;
- last_active_at: string;
- created_at: string;
- };
- Insert: {
- id: string;
- display_name: string;
- avatar_color?: string | null;
- recovery_code?: string | null;
- last_active_at?: string;
- created_at?: string;
- };
- Update: {
- id?: string;
- display_name?: string;
- avatar_color?: string | null;
- recovery_code?: string | null;
- last_active_at?: string;
- created_at?: string;
- };
- };
- groups: {
- Row: {
- id: string;
- name: string;
- invite_code: string;
- created_by: string;
- created_at: string;
- };
- Insert: {
- id?: string;
- name: string;
- invite_code: string;
- created_by: string;
- created_at?: string;
- };
- Update: {
- id?: string;
- name?: string;
- invite_code?: string;
- created_by?: string;
- created_at?: string;
- };
- };
- group_members: {
- Row: {
- group_id: string;
- user_id: string;
- role: "admin" | "member";
- joined_at: string;
- };
- Insert: {
- group_id: string;
- user_id: string;
- role: "admin" | "member";
- joined_at?: string;
- };
- Update: {
- group_id?: string;
- user_id?: string;
- role?: "admin" | "member";
- joined_at?: string;
- };
- };
- movies: {
- Row: {
- id: string;
- group_id: string;
- tmdb_id: number;
- title: string;
- year: number;
- poster_path: string | null;
- genres: string[];
- trailer_url: string | null;
- trailer_url_refreshed_at: string | null;
- metadata_refreshed_at: string | null;
- added_by: string | null;
- watched: boolean;
- watched_at: string | null;
- added_at: string;
- };
- Insert: {
- id?: string;
- group_id: string;
- tmdb_id: number;
- title: string;
- year: number;
- poster_path?: string | null;
- genres?: string[];
- trailer_url?: string | null;
- trailer_url_refreshed_at?: string | null;
- metadata_refreshed_at?: string | null;
- added_by: string;
- watched?: boolean;
- watched_at?: string | null;
- added_at?: string;
- };
- Update: {
- id?: string;
- group_id?: string;
- tmdb_id?: number;
- title?: string;
- year?: number;
- poster_path?: string | null;
- genres?: string[];
- trailer_url?: string | null;
- trailer_url_refreshed_at?: string | null;
- metadata_refreshed_at?: string | null;
- added_by?: string | null;
- watched?: boolean;
- watched_at?: string | null;
- added_at?: string;
- };
- };
- landing_reel_posters: {
- Row: {
- id: number;
- tmdb_id: number;
- poster_path: string;
- title: string;
- refreshed_at: string;
- };
- Insert: {
- id?: number;
- tmdb_id: number;
- poster_path: string;
- title: string;
- refreshed_at?: string;
- };
- Update: {
- id?: number;
- tmdb_id?: number;
- poster_path?: string;
- title?: string;
- refreshed_at?: string;
- };
- };
- };
- Views: Record<string, never>;
- Functions: Record<string, never>;
- Enums: Record<string, never>;
- };
- }
|