Skip to content

Commit

Permalink
add seed and fix account gen
Browse files Browse the repository at this point in the history
  • Loading branch information
lalalune committed Feb 23, 2024
1 parent 5cb0dc8 commit e95d98a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion supabase/migrations/20240223051710_remote_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 5 additions & 0 deletions supabase/seed.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
INSERT INTO public.accounts (id, name, email, register_complete, avatar_url, details) VALUES ('00000000-0000-0000-0000-000000000000', 'Default Agent', '[email protected]', 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');

0 comments on commit e95d98a

Please sign in to comment.