diff --git a/supabase/migrations/20240223051710_remote_schema.sql b/supabase/migrations/20240223051710_remote_schema.sql index 828b350..21bef3d 100644 --- a/supabase/migrations/20240223051710_remote_schema.sql +++ b/supabase/migrations/20240223051710_remote_schema.sql @@ -455,7 +455,7 @@ $$; ALTER FUNCTION "public"."search_messages"("query_embedding" "extensions"."vector", "similarity_threshold" double precision, "match_count" integer, "owner_id" "uuid", "chat_id" "uuid") OWNER TO "postgres"; CREATE TABLE IF NOT EXISTS "public"."accounts" ( - "id" "uuid" NOT NULL, + "id" "uuid" DEFAULT "gen_random_uuid"() NOT NULL, "created_at" timestamp with time zone DEFAULT ("now"() AT TIME ZONE 'utc'::"text") NOT NULL, "name" "text", "email" "text" NOT NULL, diff --git a/supabase/seed.sql b/supabase/seed.sql index e69de29..9aef855 100644 --- a/supabase/seed.sql +++ b/supabase/seed.sql @@ -0,0 +1,5 @@ +INSERT INTO public.accounts (id, name, email, register_complete, avatar_url, details) VALUES ('00000000-0000-0000-0000-000000000000', 'Default Agent', 'default@agent.com', true, '', '{}'); + +INSERT INTO public.rooms (id, created_by, name) VALUES ('00000000-0000-0000-0000-000000000000', '00000000-0000-0000-0000-000000000000', 'Default Agent Room'); + +INSERT INTO public.participants (user_id, room_id) VALUES ('00000000-0000-0000-0000-000000000000', '00000000-0000-0000-0000-000000000000');