@@ -301,6 +301,37 @@ CREATE SEQUENCE public.compliance_checks_tasks_id_seq
301301ALTER SEQUENCE public .compliance_checks_tasks_id_seq OWNED BY public .compliance_checks_tasks .id;
302302
303303
304+ --
305+ -- Name: github_organization_members; Type: TABLE; Schema: public; Owner: -
306+ --
307+
308+ CREATE TABLE public .github_organization_members (
309+ id integer NOT NULL ,
310+ github_organization_id integer NOT NULL ,
311+ github_user_id integer NOT NULL
312+ );
313+
314+
315+ --
316+ -- Name: github_organization_members_id_seq; Type: SEQUENCE; Schema: public; Owner: -
317+ --
318+
319+ CREATE SEQUENCE public .github_organization_members_id_seq
320+ AS integer
321+ START WITH 1
322+ INCREMENT BY 1
323+ NO MINVALUE
324+ NO MAXVALUE
325+ CACHE 1 ;
326+
327+
328+ --
329+ -- Name: github_organization_members_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
330+ --
331+
332+ ALTER SEQUENCE public .github_organization_members_id_seq OWNED BY public .github_organization_members .id;
333+
334+
304335--
305336-- Name: github_organizations; Type: TABLE; Schema: public; Owner: -
306337--
@@ -931,6 +962,13 @@ ALTER TABLE ONLY public.compliance_checks_results ALTER COLUMN id SET DEFAULT ne
931962ALTER TABLE ONLY public .compliance_checks_tasks ALTER COLUMN id SET DEFAULT nextval(' public.compliance_checks_tasks_id_seq' ::regclass);
932963
933964
965+ --
966+ -- Name: github_organization_members id; Type: DEFAULT; Schema: public; Owner: -
967+ --
968+
969+ ALTER TABLE ONLY public .github_organization_members ALTER COLUMN id SET DEFAULT nextval(' public.github_organization_members_id_seq' ::regclass);
970+
971+
934972--
935973-- Name: github_organizations id; Type: DEFAULT; Schema: public; Owner: -
936974--
@@ -1065,6 +1103,14 @@ ALTER TABLE ONLY public.compliance_checks_tasks
10651103 ADD CONSTRAINT compliance_checks_tasks_pkey PRIMARY KEY (id);
10661104
10671105
1106+ --
1107+ -- Name: github_organization_members github_organization_members_pkey; Type: CONSTRAINT; Schema: public; Owner: -
1108+ --
1109+
1110+ ALTER TABLE ONLY public .github_organization_members
1111+ ADD CONSTRAINT github_organization_members_pkey PRIMARY KEY (id);
1112+
1113+
10681114--
10691115-- Name: github_organizations github_organizations_github_org_id_unique; Type: CONSTRAINT; Schema: public; Owner: -
10701116--
@@ -1347,6 +1393,22 @@ ALTER TABLE ONLY public.compliance_checks_tasks
13471393 ADD CONSTRAINT compliance_checks_tasks_project_id_foreign FOREIGN KEY (project_id) REFERENCES public .projects (id) ON UPDATE CASCADE ON DELETE CASCADE ;
13481394
13491395
1396+ --
1397+ -- Name: github_organization_members github_organization_members_github_organization_id_foreign; Type: FK CONSTRAINT; Schema: public; Owner: -
1398+ --
1399+
1400+ ALTER TABLE ONLY public .github_organization_members
1401+ ADD CONSTRAINT github_organization_members_github_organization_id_foreign FOREIGN KEY (github_organization_id) REFERENCES public .github_organizations (id) ON UPDATE CASCADE ON DELETE CASCADE ;
1402+
1403+
1404+ --
1405+ -- Name: github_organization_members github_organization_members_github_user_id_foreign; Type: FK CONSTRAINT; Schema: public; Owner: -
1406+ --
1407+
1408+ ALTER TABLE ONLY public .github_organization_members
1409+ ADD CONSTRAINT github_organization_members_github_user_id_foreign FOREIGN KEY (github_user_id) REFERENCES public .github_users (id) ON UPDATE CASCADE ON DELETE CASCADE ;
1410+
1411+
13501412--
13511413-- Name: github_organizations github_organizations_project_id_foreign; Type: FK CONSTRAINT; Schema: public; Owner: -
13521414--
0 commit comments