Skip to content

Commit

Permalink
add modified_at to helper_parties and helper_party_networks tables
Browse files Browse the repository at this point in the history
  • Loading branch information
eriktaubeneck committed Jun 10, 2024
1 parent 9e26e10 commit 2e77616
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
6 changes: 6 additions & 0 deletions server/data/supabaseTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,19 @@ export type Database = {
Row: {
created_at: string
display_name: string
modified_at: string
uuid: string
}
Insert: {
created_at?: string
display_name: string
modified_at?: string
uuid?: string
}
Update: {
created_at?: string
display_name?: string
modified_at?: string
uuid?: string
}
Relationships: []
Expand Down Expand Up @@ -89,16 +92,19 @@ export type Database = {
Row: {
created_at: string
display_name: string
modified_at: string
uuid: string
}
Insert: {
created_at?: string
display_name: string
modified_at?: string
uuid?: string
}
Update: {
created_at?: string
display_name?: string
modified_at?: string
uuid?: string
}
Relationships: []
Expand Down
6 changes: 4 additions & 2 deletions server/supabase/migrations/20240608204813_helper_party.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ create table
helper_parties (
uuid uuid default gen_random_uuid() primary key,
display_name varchar(255) unique not null,
created_at timestamp default current_timestamp not null
created_at timestamp default current_timestamp not null,
modified_at timestamp default current_timestamp not null
);

alter table helper_parties enable row level security;
Expand All @@ -27,7 +28,8 @@ create table
helper_party_networks (
uuid uuid default gen_random_uuid() primary key,
display_name varchar(255) unique not null,
created_at timestamp default current_timestamp not null
created_at timestamp default current_timestamp not null,
modified_at timestamp default current_timestamp not null
);

alter table helper_party_networks enable row level security;
Expand Down
14 changes: 7 additions & 7 deletions server/supabase/seed.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
-- Data for Name: helper_parties; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.helper_parties (uuid, display_name, created_at) VALUES ('de218b52-1ec7-4a4d-9bf9-f9070b2c3a93', 'Local test helper 1', '2024-06-05 20:37:32.472191');
INSERT INTO public.helper_parties (uuid, display_name, created_at) VALUES ('b8848f0f-65c4-499f-82b4-1e3a119ba31e', 'Local test helper 2', '2024-06-05 20:37:45.47656');
INSERT INTO public.helper_parties (uuid, display_name, created_at) VALUES ('91993b4a-4131-4b9f-a132-d4a5839e3c6c', 'Local test helper 3', '2024-06-05 20:37:53.375326');
INSERT INTO public.helper_parties (uuid, display_name) VALUES ('de218b52-1ec7-4a4d-9bf9-f9070b2c3a93', 'Local test helper 1');
INSERT INTO public.helper_parties (uuid, display_name) VALUES ('b8848f0f-65c4-499f-82b4-1e3a119ba31e', 'Local test helper 2');
INSERT INTO public.helper_parties (uuid, display_name) VALUES ('91993b4a-4131-4b9f-a132-d4a5839e3c6c', 'Local test helper 3');


--
-- Data for Name: helper_party_networks; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.helper_party_networks (uuid, display_name, created_at) VALUES ('a8c892ae-8cee-472f-95f0-e25b1fec9759', 'Local test network', '2024-06-05 20:38:40.956239');
INSERT INTO public.helper_party_networks (uuid, display_name) VALUES ('a8c892ae-8cee-472f-95f0-e25b1fec9759', 'Local test network');

--
-- Data for Name: helper_party_network_members; Type: TABLE DATA; Schema: public; Owner: postgres
--

INSERT INTO public.helper_party_network_members (helper_party_uuid, helper_party_network_uuid, created_at) VALUES ('de218b52-1ec7-4a4d-9bf9-f9070b2c3a93', 'a8c892ae-8cee-472f-95f0-e25b1fec9759', '2024-06-05 20:39:01.362579');
INSERT INTO public.helper_party_network_members (helper_party_uuid, helper_party_network_uuid, created_at) VALUES ('b8848f0f-65c4-499f-82b4-1e3a119ba31e', 'a8c892ae-8cee-472f-95f0-e25b1fec9759', '2024-06-05 20:39:10.502079');
INSERT INTO public.helper_party_network_members (helper_party_uuid, helper_party_network_uuid, created_at) VALUES ('91993b4a-4131-4b9f-a132-d4a5839e3c6c', 'a8c892ae-8cee-472f-95f0-e25b1fec9759', '2024-06-05 20:39:24.703602');
INSERT INTO public.helper_party_network_members (helper_party_uuid, helper_party_network_uuid) VALUES ('de218b52-1ec7-4a4d-9bf9-f9070b2c3a93', 'a8c892ae-8cee-472f-95f0-e25b1fec9759');
INSERT INTO public.helper_party_network_members (helper_party_uuid, helper_party_network_uuid) VALUES ('b8848f0f-65c4-499f-82b4-1e3a119ba31e', 'a8c892ae-8cee-472f-95f0-e25b1fec9759');
INSERT INTO public.helper_party_network_members (helper_party_uuid, helper_party_network_uuid) VALUES ('91993b4a-4131-4b9f-a132-d4a5839e3c6c', 'a8c892ae-8cee-472f-95f0-e25b1fec9759');

0 comments on commit 2e77616

Please sign in to comment.