From eec8c149c30617de79110fff58c01a80ed606e8b Mon Sep 17 00:00:00 2001 From: germanzarkovich Date: Tue, 5 Mar 2024 17:00:18 -0500 Subject: [PATCH 01/11] Populate with test posts seed.sql --- package-lock.json | 1 - supabase/seed.sql | 331 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 331 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 0830030f..6d1f808f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3455,7 +3455,6 @@ "version": "2.39.7", "resolved": "https://registry.npmjs.org/@supabase/supabase-js/-/supabase-js-2.39.7.tgz", "integrity": "sha512-1vxsX10Uhc2b+Dv9pRjBjHfqmw2N2h1PyTg9LEfICR3x2xwE24By1MGCjDZuzDKH5OeHCsf4it6K8KRluAAEXA==", - "dependencies": { "@supabase/functions-js": "2.1.5", "@supabase/gotrue-js": "2.62.2", diff --git a/supabase/seed.sql b/supabase/seed.sql index e69de29b..97edb68f 100644 --- a/supabase/seed.sql +++ b/supabase/seed.sql @@ -0,0 +1,331 @@ +-- SET session_replication_role = replica; + +-- +-- PostgreSQL database dump +-- + +-- Dumped from database version 15.1 (Ubuntu 15.1-1.pgdg20.04+1) +-- Dumped by pg_dump version 15.5 (Ubuntu 15.5-1.pgdg20.04+1) + +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +-- +-- Data for Name: audit_log_entries; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin +-- + +INSERT INTO "auth"."audit_log_entries" ("instance_id", "id", "payload", "created_at", "ip_address") VALUES + ('00000000-0000-0000-0000-000000000000', '178c61ff-847b-4511-b15c-9ba85f28f22d', '{"action":"user_signedup","actor_id":"00000000-0000-0000-0000-000000000000","actor_username":"service_role","actor_via_sso":false,"log_type":"team","traits":{"user_email":"germanzarkovich@gmail.com","user_id":"84a298b6-9caf-4305-9bfe-3ea325df9188","user_phone":""}}', '2024-03-05 15:35:23.694929+00', ''), + ('00000000-0000-0000-0000-000000000000', '9cccc982-3b45-423f-9b36-f92db1851ba3', '{"action":"user_signedup","actor_id":"e554a49e-25f1-4f9c-863d-a7bec904a180","actor_username":"someone@email.com","actor_via_sso":false,"log_type":"team","traits":{"provider":"email"}}', '2024-03-05 16:19:11.902783+00', ''), + ('00000000-0000-0000-0000-000000000000', '6211406d-5857-4cd3-b473-e922b925c8db', '{"action":"login","actor_id":"e554a49e-25f1-4f9c-863d-a7bec904a180","actor_username":"someone@email.com","actor_via_sso":false,"log_type":"account","traits":{"provider":"email"}}', '2024-03-05 16:19:11.904757+00', ''), + ('00000000-0000-0000-0000-000000000000', 'e502cecb-5e59-48af-adc8-ac732e322e3f', '{"action":"user_signedup","actor_id":"1caa66a7-d9a2-462f-93c4-e65946d61c02","actor_username":"someone@email.com","actor_via_sso":false,"log_type":"team","traits":{"provider":"email"}}', '2024-03-05 16:20:21.660573+00', ''), + ('00000000-0000-0000-0000-000000000000', 'a291f11f-799c-4781-9e47-4aea09c7449f', '{"action":"login","actor_id":"1caa66a7-d9a2-462f-93c4-e65946d61c02","actor_username":"someone@email.com","actor_via_sso":false,"log_type":"account","traits":{"provider":"email"}}', '2024-03-05 16:20:21.672821+00', ''); + + +-- +-- Data for Name: flow_state; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin +-- + + + +-- +-- Data for Name: users; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin +-- + +INSERT INTO "auth"."users" ("instance_id", "id", "aud", "role", "email", "encrypted_password", "email_confirmed_at", "invited_at", "confirmation_token", "confirmation_sent_at", "recovery_token", "recovery_sent_at", "email_change_token_new", "email_change", "email_change_sent_at", "last_sign_in_at", "raw_app_meta_data", "raw_user_meta_data", "is_super_admin", "created_at", "updated_at", "phone", "phone_confirmed_at", "phone_change", "phone_change_token", "phone_change_sent_at", "email_change_token_current", "email_change_confirm_status", "banned_until", "reauthentication_token", "reauthentication_sent_at", "is_sso_user", "deleted_at") VALUES + ('00000000-0000-0000-0000-000000000000', '84a298b6-9caf-4305-9bfe-3ea325df9188', 'authenticated', 'authenticated', 'germanzarkovich@gmail.com', '$2a$10$zDwI4WhdTYEEClfJm1VxVuhbXO.D8//bpMVwgV.dlYG.VujvRpi3q', '2024-03-05 15:35:23.695951+00', NULL, '', NULL, '', NULL, '', '', NULL, NULL, '{"provider": "email", "providers": ["email"]}', '{}', NULL, '2024-03-05 15:35:23.693491+00', '2024-03-05 15:35:23.696028+00', NULL, NULL, '', '', NULL, '', 0, NULL, '', NULL, false, NULL), + ('00000000-0000-0000-0000-000000000000', '1caa66a7-d9a2-462f-93c4-e65946d61c02', 'authenticated', 'authenticated', 'someone@email.com', '$2a$10$qQA4UXgQC42VEL7Jj0BMI.lSolPCyHTQA0dy0209AT9/DTDoQ8./O', '2024-03-05 16:20:21.660728+00', NULL, '', NULL, '', NULL, '', '', NULL, '2024-03-05 16:20:21.673034+00', '{"provider": "email", "providers": ["email"]}', '{}', NULL, '2024-03-05 16:20:21.658888+00', '2024-03-05 16:20:21.673672+00', NULL, NULL, '', '', NULL, '', 0, NULL, '', NULL, false, NULL); + + +-- +-- Data for Name: identities; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin +-- + +INSERT INTO "auth"."identities" ("provider_id", "user_id", "identity_data", "provider", "last_sign_in_at", "created_at", "updated_at", "id") VALUES + ('84a298b6-9caf-4305-9bfe-3ea325df9188', '84a298b6-9caf-4305-9bfe-3ea325df9188', '{"sub": "84a298b6-9caf-4305-9bfe-3ea325df9188", "email": "germanzarkovich@gmail.com", "email_verified": false, "phone_verified": false}', 'email', '2024-03-05 15:35:23.694546+00', '2024-03-05 15:35:23.694566+00', '2024-03-05 15:35:23.694566+00', '90e98ab8-ce45-4579-bb03-41d5c42a8e72'), + ('1caa66a7-d9a2-462f-93c4-e65946d61c02', '1caa66a7-d9a2-462f-93c4-e65946d61c02', '{"sub": "1caa66a7-d9a2-462f-93c4-e65946d61c02", "email": "someone@email.com", "email_verified": false, "phone_verified": false}', 'email', '2024-03-05 16:20:21.660274+00', '2024-03-05 16:20:21.660292+00', '2024-03-05 16:20:21.660292+00', 'd75943f8-4ef2-4690-95af-d2e9cda392db'); + + +-- +-- Data for Name: instances; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin +-- + + + +-- +-- Data for Name: sessions; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin +-- + +INSERT INTO "auth"."sessions" ("id", "user_id", "created_at", "updated_at", "factor_id", "aal", "not_after", "refreshed_at", "user_agent", "ip", "tag") VALUES + ('bbcd024c-ced7-4a5e-a835-585973a170da', '1caa66a7-d9a2-462f-93c4-e65946d61c02', '2024-03-05 16:20:21.673063+00', '2024-03-05 16:20:21.673063+00', NULL, 'aal1', NULL, NULL, 'curl/7.81.0', '172.18.0.1', NULL); + + +-- +-- Data for Name: mfa_amr_claims; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin +-- + +INSERT INTO "auth"."mfa_amr_claims" ("session_id", "created_at", "updated_at", "authentication_method", "id") VALUES + ('bbcd024c-ced7-4a5e-a835-585973a170da', '2024-03-05 16:20:21.67379+00', '2024-03-05 16:20:21.67379+00', 'password', 'a0f28147-3610-4695-b4c2-defb7fe28862'); + + +-- +-- Data for Name: mfa_factors; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin +-- + + + +-- +-- Data for Name: mfa_challenges; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin +-- + + + +-- +-- Data for Name: refresh_tokens; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin +-- + +INSERT INTO "auth"."refresh_tokens" ("instance_id", "id", "token", "user_id", "revoked", "created_at", "updated_at", "parent", "session_id") VALUES + ('00000000-0000-0000-0000-000000000000', 2, 'JKvmSignS5fOGJPpc96HXA', '1caa66a7-d9a2-462f-93c4-e65946d61c02', false, '2024-03-05 16:20:21.673358+00', '2024-03-05 16:20:21.673358+00', NULL, 'bbcd024c-ced7-4a5e-a835-585973a170da'); + + +-- +-- Data for Name: sso_providers; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin +-- + + + +-- +-- Data for Name: saml_providers; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin +-- + + + +-- +-- Data for Name: saml_relay_states; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin +-- + + + +-- +-- Data for Name: sso_domains; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin +-- + + + +-- +-- Data for Name: key; Type: TABLE DATA; Schema: pgsodium; Owner: supabase_admin +-- + + + +-- +-- Data for Name: country; Type: TABLE DATA; Schema: public; Owner: postgres +-- + +INSERT INTO "public"."country" ("id", "created_at", "country") VALUES + (1, '2023-07-07 14:18:29.85077+00', 'United States'); + + +-- +-- Data for Name: major_municipality; Type: TABLE DATA; Schema: public; Owner: postgres +-- + + + +-- +-- Data for Name: minor_municipality; Type: TABLE DATA; Schema: public; Owner: postgres +-- + + + +-- +-- Data for Name: governing_district; Type: TABLE DATA; Schema: public; Owner: postgres +-- + + + +-- +-- Data for Name: location; Type: TABLE DATA; Schema: public; Owner: postgres +-- + +INSERT INTO "public"."location" ("id", "created_at", "street_number", "street_number_suffix", "street_name", "street_type", "street_direction", "address_type", "address_type_identifier", "minor_municipality", "major_municipality", "governing_district", "postal_area", "country", "user_id") VALUES + (1, '2024-03-05 15:36:33.909601+00', 1, '', 'Little Hill ', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, '84a298b6-9caf-4305-9bfe-3ea325df9188'); + + +-- +-- Data for Name: clients; Type: TABLE DATA; Schema: public; Owner: postgres +-- + +INSERT INTO "public"."clients" ("user_id", "created_at", "location", "client_phone", "display_name", "image_url") VALUES + ('84a298b6-9caf-4305-9bfe-3ea325df9188', '2024-03-05 15:37:01.129356+00', 1, 10001, 'German', NULL); + + +-- +-- Data for Name: language; Type: TABLE DATA; Schema: public; Owner: postgres +-- + +INSERT INTO "public"."language" ("id", "language") VALUES + (1, 'English (American)'); + + +-- +-- Data for Name: post_category; Type: TABLE DATA; Schema: public; Owner: postgres +-- + +INSERT INTO "public"."post_category" ("id", "category", "language") VALUES + (1, 'k6', 1), + (2, 'k10', 1), + (3, 'k12', 1); + + +-- +-- Data for Name: profiles; Type: TABLE DATA; Schema: public; Owner: postgres +-- + + + +-- +-- Data for Name: seller_post; Type: TABLE DATA; Schema: public; Owner: postgres +-- + +INSERT INTO "public"."seller_post" ("id", "created_at", "title", "product_category", "content", "location", "user_id", "image_urls") VALUES + (1, '2024-03-05 15:38:02.509065+00', 'Test Post 1', 1, 'Content of the first post', 1, '84a298b6-9caf-4305-9bfe-3ea325df9188', NULL), + (2, '2024-03-05 15:40:05.243892+00', 'Test Post 2', 1, 'Content for the second post', 1, '84a298b6-9caf-4305-9bfe-3ea325df9188', NULL), + (3, '2024-03-05 21:52:06.919336+00', 'Math course', 3, 'math course for k12', 1, '84a298b6-9caf-4305-9bfe-3ea325df9188', NULL), + (5, '2024-03-05 21:53:47.560102+00', 'Geography course', 2, 'k10 geography course', 1, '84a298b6-9caf-4305-9bfe-3ea325df9188', NULL), + (6, '2024-03-05 21:54:44.695358+00', 'programming course ', 3, 'learn programming', 1, '1caa66a7-d9a2-462f-93c4-e65946d61c02', NULL); + + +-- +-- Data for Name: sellers; Type: TABLE DATA; Schema: public; Owner: postgres +-- + +INSERT INTO "public"."sellers" ("created_at", "seller_name", "user_id", "location", "seller_phone", "image_url", "seller_id", "language_spoken") VALUES + ('2024-03-05 15:42:34.225911+00', 'German', '84a298b6-9caf-4305-9bfe-3ea325df9188', 1, '00010001', NULL, 3, '{english}'); + + +-- +-- Data for Name: buckets; Type: TABLE DATA; Schema: storage; Owner: supabase_storage_admin +-- + +INSERT INTO "storage"."buckets" ("id", "name", "owner", "created_at", "updated_at", "public", "avif_autodetection", "file_size_limit", "allowed_mime_types", "owner_id") VALUES + ('user.image', 'user.image', NULL, '2023-07-13 19:25:41.126949+00', '2023-07-13 19:25:41.126949+00', false, false, NULL, NULL, NULL), + ('post.image', 'post.image', NULL, '2023-08-01 19:11:48.793899+00', '2023-08-01 19:11:48.793899+00', false, false, NULL, NULL, NULL); + + +-- +-- Data for Name: objects; Type: TABLE DATA; Schema: storage; Owner: supabase_storage_admin +-- + + + +-- +-- Data for Name: hooks; Type: TABLE DATA; Schema: supabase_functions; Owner: supabase_functions_admin +-- + + + +-- +-- Data for Name: secrets; Type: TABLE DATA; Schema: vault; Owner: supabase_admin +-- + + + +-- +-- Name: refresh_tokens_id_seq; Type: SEQUENCE SET; Schema: auth; Owner: supabase_auth_admin +-- + +SELECT pg_catalog.setval('"auth"."refresh_tokens_id_seq"', 2, true); + + +-- +-- Name: key_key_id_seq; Type: SEQUENCE SET; Schema: pgsodium; Owner: supabase_admin +-- + +SELECT pg_catalog.setval('"pgsodium"."key_key_id_seq"', 1, false); + + +-- +-- Name: Country_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres +-- + +SELECT pg_catalog.setval('"public"."Country_id_seq"', 1, false); + + +-- +-- Name: Location_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres +-- + +SELECT pg_catalog.setval('"public"."Location_id_seq"', 1, true); + + +-- +-- Name: governing_district_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres +-- + +SELECT pg_catalog.setval('"public"."governing_district_id_seq"', 1, false); + + +-- +-- Name: language_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres +-- + +SELECT pg_catalog.setval('"public"."language_id_seq"', 1, false); + + +-- +-- Name: major_municipality_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres +-- + +SELECT pg_catalog.setval('"public"."major_municipality_id_seq"', 1, false); + + +-- +-- Name: minor_municipality_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres +-- + +SELECT pg_catalog.setval('"public"."minor_municipality_id_seq"', 1, false); + + +-- +-- Name: post_category_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres +-- + +SELECT pg_catalog.setval('"public"."post_category_id_seq"', 3, true); + + +-- +-- Name: seller_post_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres +-- + +SELECT pg_catalog.setval('"public"."seller_post_id_seq"', 6, true); + + +-- +-- Name: sellers_seller_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres +-- + +SELECT pg_catalog.setval('"public"."sellers_seller_id_seq"', 3, true); + + +-- +-- Name: hooks_id_seq; Type: SEQUENCE SET; Schema: supabase_functions; Owner: supabase_functions_admin +-- + +SELECT pg_catalog.setval('"supabase_functions"."hooks_id_seq"', 1, false); + + +-- +-- PostgreSQL database dump complete +-- + +RESET ALL; + From 592f21583b90507256e00671c119644ba4aaf470 Mon Sep 17 00:00:00 2001 From: germanzarkovich Date: Wed, 6 Mar 2024 13:33:42 -0500 Subject: [PATCH 02/11] Fix building error by commenting part that repeated The country sql operation was repeated from the initial migration so it was trying to create twice the same entry USA country code 1 --- supabase/seed.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/supabase/seed.sql b/supabase/seed.sql index 97edb68f..bcc42509 100644 --- a/supabase/seed.sql +++ b/supabase/seed.sql @@ -130,8 +130,8 @@ INSERT INTO "auth"."refresh_tokens" ("instance_id", "id", "token", "user_id", "r -- Data for Name: country; Type: TABLE DATA; Schema: public; Owner: postgres -- -INSERT INTO "public"."country" ("id", "created_at", "country") VALUES - (1, '2023-07-07 14:18:29.85077+00', 'United States'); +-- INSERT INTO "public"."country" ("id", "created_at", "country") VALUES +-- (1, '2023-07-07 14:18:29.85077+00', 'United States'); -- From 22fcf0e2eb9eef7b1629bb4f2ba3cba8d5e45f34 Mon Sep 17 00:00:00 2001 From: germanzarkovich Date: Fri, 8 Mar 2024 11:04:51 -0500 Subject: [PATCH 03/11] Fix language error and builds correctly now --- supabase/seed.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/supabase/seed.sql b/supabase/seed.sql index bcc42509..f452f676 100644 --- a/supabase/seed.sql +++ b/supabase/seed.sql @@ -172,8 +172,8 @@ INSERT INTO "public"."clients" ("user_id", "created_at", "location", "client_pho -- Data for Name: language; Type: TABLE DATA; Schema: public; Owner: postgres -- -INSERT INTO "public"."language" ("id", "language") VALUES - (1, 'English (American)'); +-- INSERT INTO "public"."language" ("id", "language") VALUES +-- (1, 'English (American)'); -- From b8637bfcc147c37f553c8be012d84e9a2e660132 Mon Sep 17 00:00:00 2001 From: germanzarkovich Date: Fri, 8 Mar 2024 12:17:09 -0500 Subject: [PATCH 04/11] comment bucket so it's not repeated --- supabase/seed.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/supabase/seed.sql b/supabase/seed.sql index f452f676..3ad5e946 100644 --- a/supabase/seed.sql +++ b/supabase/seed.sql @@ -216,9 +216,9 @@ INSERT INTO "public"."sellers" ("created_at", "seller_name", "user_id", "locatio -- Data for Name: buckets; Type: TABLE DATA; Schema: storage; Owner: supabase_storage_admin -- -INSERT INTO "storage"."buckets" ("id", "name", "owner", "created_at", "updated_at", "public", "avif_autodetection", "file_size_limit", "allowed_mime_types", "owner_id") VALUES - ('user.image', 'user.image', NULL, '2023-07-13 19:25:41.126949+00', '2023-07-13 19:25:41.126949+00', false, false, NULL, NULL, NULL), - ('post.image', 'post.image', NULL, '2023-08-01 19:11:48.793899+00', '2023-08-01 19:11:48.793899+00', false, false, NULL, NULL, NULL); +-- INSERT INTO "storage"."buckets" ("id", "name", "owner", "created_at", "updated_at", "public", "avif_autodetection", "file_size_limit", "allowed_mime_types", "owner_id") VALUES +-- ('user.image', 'user.image', NULL, '2023-07-13 19:25:41.126949+00', '2023-07-13 19:25:41.126949+00', false, false, NULL, NULL, NULL), +-- ('post.image', 'post.image', NULL, '2023-08-01 19:11:48.793899+00', '2023-08-01 19:11:48.793899+00', false, false, NULL, NULL, NULL); -- From d807feaa46411e532da482c5674622a53ffb6b1b Mon Sep 17 00:00:00 2001 From: German Zarkovich <68071939+gerzarko@users.noreply.github.com> Date: Tue, 12 Mar 2024 12:06:35 -0400 Subject: [PATCH 05/11] Update supabase/seed.sql Co-authored-by: r-southworth <105446541+r-southworth@users.noreply.github.com> --- supabase/seed.sql | 5 ----- 1 file changed, 5 deletions(-) diff --git a/supabase/seed.sql b/supabase/seed.sql index 3ad5e946..b15562f8 100644 --- a/supabase/seed.sql +++ b/supabase/seed.sql @@ -54,11 +54,6 @@ INSERT INTO "auth"."identities" ("provider_id", "user_id", "identity_data", "pro ('1caa66a7-d9a2-462f-93c4-e65946d61c02', '1caa66a7-d9a2-462f-93c4-e65946d61c02', '{"sub": "1caa66a7-d9a2-462f-93c4-e65946d61c02", "email": "someone@email.com", "email_verified": false, "phone_verified": false}', 'email', '2024-03-05 16:20:21.660274+00', '2024-03-05 16:20:21.660292+00', '2024-03-05 16:20:21.660292+00', 'd75943f8-4ef2-4690-95af-d2e9cda392db'); --- --- Data for Name: instances; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin --- - - -- -- Data for Name: sessions; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin From 1227680049c47345f796be45e921d9a43baed6c6 Mon Sep 17 00:00:00 2001 From: German Zarkovich <68071939+gerzarko@users.noreply.github.com> Date: Tue, 12 Mar 2024 12:06:41 -0400 Subject: [PATCH 06/11] Update supabase/seed.sql Co-authored-by: r-southworth <105446541+r-southworth@users.noreply.github.com> --- supabase/seed.sql | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/supabase/seed.sql b/supabase/seed.sql index b15562f8..95fd7378 100644 --- a/supabase/seed.sql +++ b/supabase/seed.sql @@ -71,18 +71,6 @@ INSERT INTO "auth"."mfa_amr_claims" ("session_id", "created_at", "updated_at", " ('bbcd024c-ced7-4a5e-a835-585973a170da', '2024-03-05 16:20:21.67379+00', '2024-03-05 16:20:21.67379+00', 'password', 'a0f28147-3610-4695-b4c2-defb7fe28862'); --- --- Data for Name: mfa_factors; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin --- - - - --- --- Data for Name: mfa_challenges; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin --- - - - -- -- Data for Name: refresh_tokens; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin -- From c9bf24c4acf5eb44d10449aefa6b69220915df83 Mon Sep 17 00:00:00 2001 From: German Zarkovich <68071939+gerzarko@users.noreply.github.com> Date: Tue, 12 Mar 2024 12:06:51 -0400 Subject: [PATCH 07/11] Update supabase/seed.sql Co-authored-by: r-southworth <105446541+r-southworth@users.noreply.github.com> --- supabase/seed.sql | 56 ----------------------------------------------- 1 file changed, 56 deletions(-) diff --git a/supabase/seed.sql b/supabase/seed.sql index 95fd7378..61b88184 100644 --- a/supabase/seed.sql +++ b/supabase/seed.sql @@ -79,62 +79,6 @@ INSERT INTO "auth"."refresh_tokens" ("instance_id", "id", "token", "user_id", "r ('00000000-0000-0000-0000-000000000000', 2, 'JKvmSignS5fOGJPpc96HXA', '1caa66a7-d9a2-462f-93c4-e65946d61c02', false, '2024-03-05 16:20:21.673358+00', '2024-03-05 16:20:21.673358+00', NULL, 'bbcd024c-ced7-4a5e-a835-585973a170da'); --- --- Data for Name: sso_providers; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin --- - - - --- --- Data for Name: saml_providers; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin --- - - - --- --- Data for Name: saml_relay_states; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin --- - - - --- --- Data for Name: sso_domains; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin --- - - - --- --- Data for Name: key; Type: TABLE DATA; Schema: pgsodium; Owner: supabase_admin --- - - - --- --- Data for Name: country; Type: TABLE DATA; Schema: public; Owner: postgres --- - --- INSERT INTO "public"."country" ("id", "created_at", "country") VALUES --- (1, '2023-07-07 14:18:29.85077+00', 'United States'); - - --- --- Data for Name: major_municipality; Type: TABLE DATA; Schema: public; Owner: postgres --- - - - --- --- Data for Name: minor_municipality; Type: TABLE DATA; Schema: public; Owner: postgres --- - - - --- --- Data for Name: governing_district; Type: TABLE DATA; Schema: public; Owner: postgres --- - - - -- -- Data for Name: location; Type: TABLE DATA; Schema: public; Owner: postgres -- From 2385d3a8b164b5e20c777fe4234fbd6135d1555d Mon Sep 17 00:00:00 2001 From: German Zarkovich <68071939+gerzarko@users.noreply.github.com> Date: Tue, 12 Mar 2024 12:06:58 -0400 Subject: [PATCH 08/11] Update supabase/seed.sql Co-authored-by: r-southworth <105446541+r-southworth@users.noreply.github.com> --- supabase/seed.sql | 8 -------- 1 file changed, 8 deletions(-) diff --git a/supabase/seed.sql b/supabase/seed.sql index 61b88184..0c34efc0 100644 --- a/supabase/seed.sql +++ b/supabase/seed.sql @@ -95,14 +95,6 @@ INSERT INTO "public"."clients" ("user_id", "created_at", "location", "client_pho ('84a298b6-9caf-4305-9bfe-3ea325df9188', '2024-03-05 15:37:01.129356+00', 1, 10001, 'German', NULL); --- --- Data for Name: language; Type: TABLE DATA; Schema: public; Owner: postgres --- - --- INSERT INTO "public"."language" ("id", "language") VALUES --- (1, 'English (American)'); - - -- -- Data for Name: post_category; Type: TABLE DATA; Schema: public; Owner: postgres -- From f5ab125c7f3ee38d2e58945d19f00995f3c71795 Mon Sep 17 00:00:00 2001 From: German Zarkovich <68071939+gerzarko@users.noreply.github.com> Date: Tue, 12 Mar 2024 12:07:03 -0400 Subject: [PATCH 09/11] Update supabase/seed.sql Co-authored-by: r-southworth <105446541+r-southworth@users.noreply.github.com> --- supabase/seed.sql | 6 ------ 1 file changed, 6 deletions(-) diff --git a/supabase/seed.sql b/supabase/seed.sql index 0c34efc0..d6c6cf7b 100644 --- a/supabase/seed.sql +++ b/supabase/seed.sql @@ -105,12 +105,6 @@ INSERT INTO "public"."post_category" ("id", "category", "language") VALUES (3, 'k12', 1); --- --- Data for Name: profiles; Type: TABLE DATA; Schema: public; Owner: postgres --- - - - -- -- Data for Name: seller_post; Type: TABLE DATA; Schema: public; Owner: postgres -- From 7aa0cfece3b222669067fc4c2ab0ef9cd18e3644 Mon Sep 17 00:00:00 2001 From: German Zarkovich <68071939+gerzarko@users.noreply.github.com> Date: Tue, 12 Mar 2024 12:07:08 -0400 Subject: [PATCH 10/11] Update supabase/seed.sql Co-authored-by: r-southworth <105446541+r-southworth@users.noreply.github.com> --- supabase/seed.sql | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/supabase/seed.sql b/supabase/seed.sql index d6c6cf7b..ca22b9b3 100644 --- a/supabase/seed.sql +++ b/supabase/seed.sql @@ -125,33 +125,6 @@ INSERT INTO "public"."sellers" ("created_at", "seller_name", "user_id", "locatio ('2024-03-05 15:42:34.225911+00', 'German', '84a298b6-9caf-4305-9bfe-3ea325df9188', 1, '00010001', NULL, 3, '{english}'); --- --- Data for Name: buckets; Type: TABLE DATA; Schema: storage; Owner: supabase_storage_admin --- - --- INSERT INTO "storage"."buckets" ("id", "name", "owner", "created_at", "updated_at", "public", "avif_autodetection", "file_size_limit", "allowed_mime_types", "owner_id") VALUES --- ('user.image', 'user.image', NULL, '2023-07-13 19:25:41.126949+00', '2023-07-13 19:25:41.126949+00', false, false, NULL, NULL, NULL), --- ('post.image', 'post.image', NULL, '2023-08-01 19:11:48.793899+00', '2023-08-01 19:11:48.793899+00', false, false, NULL, NULL, NULL); - - --- --- Data for Name: objects; Type: TABLE DATA; Schema: storage; Owner: supabase_storage_admin --- - - - --- --- Data for Name: hooks; Type: TABLE DATA; Schema: supabase_functions; Owner: supabase_functions_admin --- - - - --- --- Data for Name: secrets; Type: TABLE DATA; Schema: vault; Owner: supabase_admin --- - - - -- -- Name: refresh_tokens_id_seq; Type: SEQUENCE SET; Schema: auth; Owner: supabase_auth_admin -- From 7e58bc83083af9cb9e6168454649216f2da3f073 Mon Sep 17 00:00:00 2001 From: German Zarkovich <68071939+gerzarko@users.noreply.github.com> Date: Tue, 12 Mar 2024 12:07:37 -0400 Subject: [PATCH 11/11] Update supabase/seed.sql Co-authored-by: r-southworth <105446541+r-southworth@users.noreply.github.com> --- supabase/seed.sql | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/supabase/seed.sql b/supabase/seed.sql index ca22b9b3..1ec87c2b 100644 --- a/supabase/seed.sql +++ b/supabase/seed.sql @@ -1,40 +1,3 @@ --- SET session_replication_role = replica; - --- --- PostgreSQL database dump --- - --- Dumped from database version 15.1 (Ubuntu 15.1-1.pgdg20.04+1) --- Dumped by pg_dump version 15.5 (Ubuntu 15.5-1.pgdg20.04+1) - -SET statement_timeout = 0; -SET lock_timeout = 0; -SET idle_in_transaction_session_timeout = 0; -SET client_encoding = 'UTF8'; -SET standard_conforming_strings = on; -SELECT pg_catalog.set_config('search_path', '', false); -SET check_function_bodies = false; -SET xmloption = content; -SET client_min_messages = warning; -SET row_security = off; - --- --- Data for Name: audit_log_entries; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin --- - -INSERT INTO "auth"."audit_log_entries" ("instance_id", "id", "payload", "created_at", "ip_address") VALUES - ('00000000-0000-0000-0000-000000000000', '178c61ff-847b-4511-b15c-9ba85f28f22d', '{"action":"user_signedup","actor_id":"00000000-0000-0000-0000-000000000000","actor_username":"service_role","actor_via_sso":false,"log_type":"team","traits":{"user_email":"germanzarkovich@gmail.com","user_id":"84a298b6-9caf-4305-9bfe-3ea325df9188","user_phone":""}}', '2024-03-05 15:35:23.694929+00', ''), - ('00000000-0000-0000-0000-000000000000', '9cccc982-3b45-423f-9b36-f92db1851ba3', '{"action":"user_signedup","actor_id":"e554a49e-25f1-4f9c-863d-a7bec904a180","actor_username":"someone@email.com","actor_via_sso":false,"log_type":"team","traits":{"provider":"email"}}', '2024-03-05 16:19:11.902783+00', ''), - ('00000000-0000-0000-0000-000000000000', '6211406d-5857-4cd3-b473-e922b925c8db', '{"action":"login","actor_id":"e554a49e-25f1-4f9c-863d-a7bec904a180","actor_username":"someone@email.com","actor_via_sso":false,"log_type":"account","traits":{"provider":"email"}}', '2024-03-05 16:19:11.904757+00', ''), - ('00000000-0000-0000-0000-000000000000', 'e502cecb-5e59-48af-adc8-ac732e322e3f', '{"action":"user_signedup","actor_id":"1caa66a7-d9a2-462f-93c4-e65946d61c02","actor_username":"someone@email.com","actor_via_sso":false,"log_type":"team","traits":{"provider":"email"}}', '2024-03-05 16:20:21.660573+00', ''), - ('00000000-0000-0000-0000-000000000000', 'a291f11f-799c-4781-9e47-4aea09c7449f', '{"action":"login","actor_id":"1caa66a7-d9a2-462f-93c4-e65946d61c02","actor_username":"someone@email.com","actor_via_sso":false,"log_type":"account","traits":{"provider":"email"}}', '2024-03-05 16:20:21.672821+00', ''); - - --- --- Data for Name: flow_state; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin --- - - -- -- Data for Name: users; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin