@@ -23,14 +23,14 @@ CREATE TABLE IF NOT EXISTS public."PlatformAccount" (
2323 ' public.entity_id_seq' ::regclass
2424 ) NOT NULL PRIMARY KEY ,
2525 name VARCHAR NOT NULL ,
26- platform public." Platform" NOT NULL ,
26+ platform public." Platform" NOT NULL ,
2727 account_local_id VARCHAR NOT NULL ,
28- write_permission BOOLEAN NOT NULL DEFAULT true,
29- active BOOLEAN NOT NULL DEFAULT true,
30- agent_type public." AgentType" NOT NULL DEFAULT ' person' ,
31- metadata JSONB NOT NULL DEFAULT ' {}' ,
32- dg_account UUID,
33- FOREIGN KEY (dg_account) REFERENCES auth .users (id) ON DELETE SET NULL ON UPDATE CASCADE
28+ write_permission BOOLEAN NOT NULL DEFAULT true,
29+ active BOOLEAN NOT NULL DEFAULT true,
30+ agent_type public." AgentType" NOT NULL DEFAULT ' person' ,
31+ metadata JSONB NOT NULL DEFAULT ' {}' ,
32+ dg_account UUID,
33+ FOREIGN KEY (dg_account) REFERENCES auth .users (id) ON DELETE SET NULL ON UPDATE CASCADE
3434);
3535
3636ALTER TABLE public." PlatformAccount" OWNER TO " postgres" ;
@@ -45,12 +45,12 @@ GRANT ALL ON TABLE public."PlatformAccount" TO service_role;
4545
4646
4747CREATE TABLE public ." AgentIdentifier" (
48- identifier_type public." AgentIdentifierType" NOT NULL ,
49- account_id BIGINT NOT NULL ,
50- value VARCHAR NOT NULL ,
48+ identifier_type public." AgentIdentifierType" NOT NULL ,
49+ account_id BIGINT NOT NULL ,
50+ value VARCHAR NOT NULL ,
5151 trusted BOOLEAN NOT NULL DEFAULT false,
5252 PRIMARY KEY (value, identifier_type, account_id),
53- FOREIGN KEY (account_id) REFERENCES public." PlatformAccount" (id)
53+ FOREIGN KEY (account_id) REFERENCES public." PlatformAccount" (id)
5454);
5555
5656ALTER TABLE public." AgentIdentifier" OWNER TO " postgres" ;
@@ -97,4 +97,3 @@ ADD CONSTRAINT "SpaceAccess_space_id_fkey" FOREIGN KEY (
9797GRANT ALL ON TABLE public." SpaceAccess" TO anon;
9898GRANT ALL ON TABLE public." SpaceAccess" TO authenticated;
9999GRANT ALL ON TABLE public." SpaceAccess" TO service_role;
100-
0 commit comments