22-- PostgreSQL database dump
33--
44
5+ \restrict tcwwa0navv4WKeaYIi4EKa3vQQ4QsdRuGwaRIjvsh5ua5zp7TYRTpd8lgNzd9lh
6+
57-- Dumped from database version 17.5
6- -- Dumped by pg_dump version 17.5 (Homebrew)
8+ -- Dumped by pg_dump version 17.9 (Homebrew)
79
810SET statement_timeout = 0 ;
911SET lock_timeout = 0 ;
@@ -1825,6 +1827,82 @@ ALTER SEQUENCE public.tests_id_seq OWNER TO postgres;
18251827ALTER SEQUENCE public .tests_id_seq OWNED BY public .tests .id;
18261828
18271829
1830+ --
1831+ -- Name: user_access_token_scopes; Type: TABLE; Schema: public; Owner: postgres
1832+ --
1833+
1834+ CREATE TABLE public .user_access_token_scopes (
1835+ id bigint NOT NULL ,
1836+ " createdAt" timestamp with time zone NOT NULL ,
1837+ " updatedAt" timestamp with time zone NOT NULL ,
1838+ " userAccessTokenId" bigint NOT NULL ,
1839+ " accountId" bigint NOT NULL
1840+ );
1841+
1842+
1843+ ALTER TABLE public .user_access_token_scopes OWNER TO postgres;
1844+
1845+ --
1846+ -- Name: user_access_token_scopes_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
1847+ --
1848+
1849+ CREATE SEQUENCE public .user_access_token_scopes_id_seq
1850+ START WITH 1
1851+ INCREMENT BY 1
1852+ NO MINVALUE
1853+ NO MAXVALUE
1854+ CACHE 1 ;
1855+
1856+
1857+ ALTER SEQUENCE public .user_access_token_scopes_id_seq OWNER TO postgres;
1858+
1859+ --
1860+ -- Name: user_access_token_scopes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
1861+ --
1862+
1863+ ALTER SEQUENCE public .user_access_token_scopes_id_seq OWNED BY public .user_access_token_scopes .id;
1864+
1865+
1866+ --
1867+ -- Name: user_access_tokens; Type: TABLE; Schema: public; Owner: postgres
1868+ --
1869+
1870+ CREATE TABLE public .user_access_tokens (
1871+ id bigint NOT NULL ,
1872+ " createdAt" timestamp with time zone NOT NULL ,
1873+ " updatedAt" timestamp with time zone NOT NULL ,
1874+ " userId" bigint NOT NULL ,
1875+ name character varying (255 ) NOT NULL ,
1876+ token character varying (255 ) NOT NULL ,
1877+ " expireAt" timestamp with time zone ,
1878+ " lastUsedAt" timestamp with time zone ,
1879+ " createdBy" character varying (255 ) NOT NULL
1880+ );
1881+
1882+
1883+ ALTER TABLE public .user_access_tokens OWNER TO postgres;
1884+
1885+ --
1886+ -- Name: user_access_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
1887+ --
1888+
1889+ CREATE SEQUENCE public .user_access_tokens_id_seq
1890+ START WITH 1
1891+ INCREMENT BY 1
1892+ NO MINVALUE
1893+ NO MAXVALUE
1894+ CACHE 1 ;
1895+
1896+
1897+ ALTER SEQUENCE public .user_access_tokens_id_seq OWNER TO postgres;
1898+
1899+ --
1900+ -- Name: user_access_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
1901+ --
1902+
1903+ ALTER SEQUENCE public .user_access_tokens_id_seq OWNED BY public .user_access_tokens .id;
1904+
1905+
18281906--
18291907-- Name: user_emails; Type: TABLE; Schema: public; Owner: postgres
18301908--
@@ -2152,6 +2230,20 @@ ALTER TABLE ONLY public.teams ALTER COLUMN id SET DEFAULT nextval('public.teams_
21522230ALTER TABLE ONLY public .tests ALTER COLUMN id SET DEFAULT nextval(' public.tests_id_seq' ::regclass);
21532231
21542232
2233+ --
2234+ -- Name: user_access_token_scopes id; Type: DEFAULT; Schema: public; Owner: postgres
2235+ --
2236+
2237+ ALTER TABLE ONLY public .user_access_token_scopes ALTER COLUMN id SET DEFAULT nextval(' public.user_access_token_scopes_id_seq' ::regclass);
2238+
2239+
2240+ --
2241+ -- Name: user_access_tokens id; Type: DEFAULT; Schema: public; Owner: postgres
2242+ --
2243+
2244+ ALTER TABLE ONLY public .user_access_tokens ALTER COLUMN id SET DEFAULT nextval(' public.user_access_tokens_id_seq' ::regclass);
2245+
2246+
21552247--
21562248-- Name: users id; Type: DEFAULT; Schema: public; Owner: postgres
21572249--
@@ -2663,6 +2755,38 @@ ALTER TABLE ONLY public.tests
26632755 ADD CONSTRAINT tests_pkey PRIMARY KEY (id);
26642756
26652757
2758+ --
2759+ -- Name: user_access_token_scopes user_access_token_scopes_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
2760+ --
2761+
2762+ ALTER TABLE ONLY public .user_access_token_scopes
2763+ ADD CONSTRAINT user_access_token_scopes_pkey PRIMARY KEY (id);
2764+
2765+
2766+ --
2767+ -- Name: user_access_token_scopes user_access_token_scopes_useraccesstokenid_accountid_unique; Type: CONSTRAINT; Schema: public; Owner: postgres
2768+ --
2769+
2770+ ALTER TABLE ONLY public .user_access_token_scopes
2771+ ADD CONSTRAINT user_access_token_scopes_useraccesstokenid_accountid_unique UNIQUE (" userAccessTokenId" , " accountId" );
2772+
2773+
2774+ --
2775+ -- Name: user_access_tokens user_access_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
2776+ --
2777+
2778+ ALTER TABLE ONLY public .user_access_tokens
2779+ ADD CONSTRAINT user_access_tokens_pkey PRIMARY KEY (id);
2780+
2781+
2782+ --
2783+ -- Name: user_access_tokens user_access_tokens_token_unique; Type: CONSTRAINT; Schema: public; Owner: postgres
2784+ --
2785+
2786+ ALTER TABLE ONLY public .user_access_tokens
2787+ ADD CONSTRAINT user_access_tokens_token_unique UNIQUE (token);
2788+
2789+
26662790--
26672791-- Name: user_emails user_emails_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
26682792--
@@ -3169,6 +3293,27 @@ CREATE INDEX tests_projectid_buildname_createdat_id_idx ON public.tests USING bt
31693293CREATE INDEX tests_projectid_index ON public .tests USING btree (" projectId" );
31703294
31713295
3296+ --
3297+ -- Name: user_access_token_scopes_accountid_index; Type: INDEX; Schema: public; Owner: postgres
3298+ --
3299+
3300+ CREATE INDEX user_access_token_scopes_accountid_index ON public .user_access_token_scopes USING btree (" accountId" );
3301+
3302+
3303+ --
3304+ -- Name: user_access_token_scopes_useraccesstokenid_index; Type: INDEX; Schema: public; Owner: postgres
3305+ --
3306+
3307+ CREATE INDEX user_access_token_scopes_useraccesstokenid_index ON public .user_access_token_scopes USING btree (" userAccessTokenId" );
3308+
3309+
3310+ --
3311+ -- Name: user_access_tokens_userid_index; Type: INDEX; Schema: public; Owner: postgres
3312+ --
3313+
3314+ CREATE INDEX user_access_tokens_userid_index ON public .user_access_tokens USING btree (" userId" );
3315+
3316+
31723317--
31733318-- Name: users_googleuserid_fk_index; Type: INDEX; Schema: public; Owner: postgres
31743319--
@@ -3728,6 +3873,30 @@ ALTER TABLE ONLY public.tests
37283873 ADD CONSTRAINT tests_projectid_foreign FOREIGN KEY (" projectId" ) REFERENCES public .projects (id);
37293874
37303875
3876+ --
3877+ -- Name: user_access_token_scopes user_access_token_scopes_accountid_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
3878+ --
3879+
3880+ ALTER TABLE ONLY public .user_access_token_scopes
3881+ ADD CONSTRAINT user_access_token_scopes_accountid_foreign FOREIGN KEY (" accountId" ) REFERENCES public .accounts (id);
3882+
3883+
3884+ --
3885+ -- Name: user_access_token_scopes user_access_token_scopes_useraccesstokenid_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
3886+ --
3887+
3888+ ALTER TABLE ONLY public .user_access_token_scopes
3889+ ADD CONSTRAINT user_access_token_scopes_useraccesstokenid_foreign FOREIGN KEY (" userAccessTokenId" ) REFERENCES public .user_access_tokens (id);
3890+
3891+
3892+ --
3893+ -- Name: user_access_tokens user_access_tokens_userid_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
3894+ --
3895+
3896+ ALTER TABLE ONLY public .user_access_tokens
3897+ ADD CONSTRAINT user_access_tokens_userid_foreign FOREIGN KEY (" userId" ) REFERENCES public .users (id);
3898+
3899+
37313900--
37323901-- Name: user_emails user_emails_userid_foreign; Type: FK CONSTRAINT; Schema: public; Owner: postgres
37333902--
@@ -3756,6 +3925,8 @@ ALTER TABLE ONLY public.users
37563925-- PostgreSQL database dump complete
37573926--
37583927
3928+ \unrestrict tcwwa0navv4WKeaYIi4EKa3vQQ4QsdRuGwaRIjvsh5ua5zp7TYRTpd8lgNzd9lh
3929+
37593930-- Knex migrations
37603931
37613932INSERT INTO public .knex_migrations (name, batch, migration_time) VALUES (' 20161217154940_init.js' , 1 , NOW());
@@ -3937,4 +4108,5 @@ INSERT INTO public.knex_migrations(name, batch, migration_time) VALUES ('2026021
39374108INSERT INTO public .knex_migrations (name, batch, migration_time) VALUES (' 20260216200736_enforce-sso.js' , 1 , NOW());
39384109INSERT INTO public .knex_migrations (name, batch, migration_time) VALUES (' 20260219170000_project-auto-ignore.js' , 1 , NOW());
39394110INSERT INTO public .knex_migrations (name, batch, migration_time) VALUES (' 20260222100000_team-saml-expiration-check.js' , 1 , NOW());
3940- INSERT INTO public .knex_migrations (name, batch, migration_time) VALUES (' 20260328120000_build-merge-queue-gh-pull-requests.js' , 1 , NOW());
4111+ INSERT INTO public .knex_migrations (name, batch, migration_time) VALUES (' 20260328120000_build-merge-queue-gh-pull-requests.js' , 1 , NOW());
4112+ INSERT INTO public .knex_migrations (name, batch, migration_time) VALUES (' 20260401084427_user_access_tokens.js' , 1 , NOW());
0 commit comments