@@ -115,6 +115,104 @@ CREATE SEQUENCE public.github_organizations_id_seq
115
115
ALTER SEQUENCE public .github_organizations_id_seq OWNED BY public .github_organizations .id;
116
116
117
117
118
+ --
119
+ -- Name: github_repositories; Type: TABLE; Schema: public; Owner: -
120
+ --
121
+
122
+ CREATE TABLE public .github_repositories (
123
+ id integer NOT NULL ,
124
+ node_id character varying (255 ) NOT NULL ,
125
+ name character varying (255 ) NOT NULL ,
126
+ full_name character varying (255 ) NOT NULL ,
127
+ html_url character varying (255 ) NOT NULL ,
128
+ description text ,
129
+ fork boolean ,
130
+ url character varying (255 ) NOT NULL ,
131
+ git_url character varying (255 ) NOT NULL ,
132
+ ssh_url character varying (255 ) NOT NULL ,
133
+ clone_url character varying (255 ) NOT NULL ,
134
+ svn_url character varying (255 ),
135
+ homepage character varying (255 ),
136
+ size integer ,
137
+ stargazers_count integer ,
138
+ watchers_count integer ,
139
+ language character varying (255 ),
140
+ has_issues boolean ,
141
+ has_projects boolean ,
142
+ has_downloads boolean ,
143
+ has_wiki boolean ,
144
+ has_pages boolean ,
145
+ has_discussions boolean ,
146
+ forks_count integer ,
147
+ mirror_url character varying (255 ),
148
+ archived boolean ,
149
+ disabled boolean ,
150
+ open_issues_count integer ,
151
+ allow_forking boolean ,
152
+ is_template boolean ,
153
+ web_commit_signoff_required boolean ,
154
+ topics text [],
155
+ visibility text NOT NULL ,
156
+ default_branch character varying (255 ) NOT NULL ,
157
+ allow_squash_merge boolean ,
158
+ allow_merge_commit boolean ,
159
+ allow_rebase_merge boolean ,
160
+ allow_auto_merge boolean ,
161
+ delete_branch_on_merge boolean ,
162
+ allow_update_branch boolean ,
163
+ use_squash_pr_title_as_default boolean ,
164
+ squash_merge_commit_message character varying (255 ),
165
+ squash_merge_commit_title character varying (255 ),
166
+ merge_commit_message character varying (255 ),
167
+ merge_commit_title character varying (255 ),
168
+ network_count integer ,
169
+ subscribers_count integer ,
170
+ github_repo_id integer ,
171
+ github_created_at timestamp with time zone ,
172
+ github_updated_at timestamp with time zone ,
173
+ github_archived_at timestamp with time zone ,
174
+ license_key character varying (255 ),
175
+ license_name character varying (255 ),
176
+ license_spdx_id character varying (255 ),
177
+ license_url character varying (255 ),
178
+ license_node_id character varying (255 ),
179
+ secret_scanning_status text DEFAULT ' disabled' ::text ,
180
+ secret_scanning_push_protection_status text DEFAULT ' disabled' ::text ,
181
+ dependabot_security_updates_status text DEFAULT ' disabled' ::text ,
182
+ secret_scanning_non_provider_patterns_status text DEFAULT ' disabled' ::text ,
183
+ secret_scanning_validity_checks_status text DEFAULT ' disabled' ::text ,
184
+ github_organization_id integer ,
185
+ created_at timestamp with time zone DEFAULT CURRENT_TIMESTAMP NOT NULL ,
186
+ updated_at timestamp with time zone DEFAULT CURRENT_TIMESTAMP NOT NULL ,
187
+ CONSTRAINT github_repositories_dependabot_security_updates_status_check CHECK ((dependabot_security_updates_status = ANY (ARRAY[' enabled' ::text , ' disabled' ::text ]))),
188
+ CONSTRAINT github_repositories_secret_scanning_non_provider_patterns_check CHECK ((secret_scanning_non_provider_patterns_status = ANY (ARRAY[' enabled' ::text , ' disabled' ::text ]))),
189
+ CONSTRAINT github_repositories_secret_scanning_push_protection_statu_check CHECK ((secret_scanning_push_protection_status = ANY (ARRAY[' enabled' ::text , ' disabled' ::text ]))),
190
+ CONSTRAINT github_repositories_secret_scanning_status_check CHECK ((secret_scanning_status = ANY (ARRAY[' enabled' ::text , ' disabled' ::text ]))),
191
+ CONSTRAINT github_repositories_secret_scanning_validity_checks_statu_check CHECK ((secret_scanning_validity_checks_status = ANY (ARRAY[' enabled' ::text , ' disabled' ::text ]))),
192
+ CONSTRAINT github_repositories_visibility_check CHECK ((visibility = ANY (ARRAY[' public' ::text , ' private' ::text , ' internal' ::text ])))
193
+ );
194
+
195
+
196
+ --
197
+ -- Name: github_repositories_id_seq; Type: SEQUENCE; Schema: public; Owner: -
198
+ --
199
+
200
+ CREATE SEQUENCE public .github_repositories_id_seq
201
+ AS integer
202
+ START WITH 1
203
+ INCREMENT BY 1
204
+ NO MINVALUE
205
+ NO MAXVALUE
206
+ CACHE 1 ;
207
+
208
+
209
+ --
210
+ -- Name: github_repositories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
211
+ --
212
+
213
+ ALTER SEQUENCE public .github_repositories_id_seq OWNED BY public .github_repositories .id;
214
+
215
+
118
216
--
119
217
-- Name: knex_migrations; Type: TABLE; Schema: public; Owner: -
120
218
--
@@ -218,6 +316,13 @@ ALTER SEQUENCE public.projects_id_seq OWNED BY public.projects.id;
218
316
ALTER TABLE ONLY public .github_organizations ALTER COLUMN id SET DEFAULT nextval(' public.github_organizations_id_seq' ::regclass);
219
317
220
318
319
+ --
320
+ -- Name: github_repositories id; Type: DEFAULT; Schema: public; Owner: -
321
+ --
322
+
323
+ ALTER TABLE ONLY public .github_repositories ALTER COLUMN id SET DEFAULT nextval(' public.github_repositories_id_seq' ::regclass);
324
+
325
+
221
326
--
222
327
-- Name: knex_migrations id; Type: DEFAULT; Schema: public; Owner: -
223
328
--
@@ -263,6 +368,30 @@ ALTER TABLE ONLY public.github_organizations
263
368
ADD CONSTRAINT github_organizations_pkey PRIMARY KEY (id);
264
369
265
370
371
+ --
372
+ -- Name: github_repositories github_repositories_github_repo_id_unique; Type: CONSTRAINT; Schema: public; Owner: -
373
+ --
374
+
375
+ ALTER TABLE ONLY public .github_repositories
376
+ ADD CONSTRAINT github_repositories_github_repo_id_unique UNIQUE (github_repo_id);
377
+
378
+
379
+ --
380
+ -- Name: github_repositories github_repositories_node_id_unique; Type: CONSTRAINT; Schema: public; Owner: -
381
+ --
382
+
383
+ ALTER TABLE ONLY public .github_repositories
384
+ ADD CONSTRAINT github_repositories_node_id_unique UNIQUE (node_id);
385
+
386
+
387
+ --
388
+ -- Name: github_repositories github_repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: -
389
+ --
390
+
391
+ ALTER TABLE ONLY public .github_repositories
392
+ ADD CONSTRAINT github_repositories_pkey PRIMARY KEY (id);
393
+
394
+
266
395
--
267
396
-- Name: knex_migrations_lock knex_migrations_lock_pkey; Type: CONSTRAINT; Schema: public; Owner: -
268
397
--
@@ -294,6 +423,13 @@ ALTER TABLE ONLY public.projects
294
423
CREATE TRIGGER set_updated_at_github_organizations BEFORE UPDATE ON public .github_organizations FOR EACH ROW EXECUTE FUNCTION public .update_updated_at_column ();
295
424
296
425
426
+ --
427
+ -- Name: github_repositories set_updated_at_github_repositories; Type: TRIGGER; Schema: public; Owner: -
428
+ --
429
+
430
+ CREATE TRIGGER set_updated_at_github_repositories BEFORE UPDATE ON public .github_repositories FOR EACH ROW EXECUTE FUNCTION public .update_updated_at_column ();
431
+
432
+
297
433
--
298
434
-- Name: projects set_updated_at_projects; Type: TRIGGER; Schema: public; Owner: -
299
435
--
@@ -309,6 +445,14 @@ ALTER TABLE ONLY public.github_organizations
309
445
ADD CONSTRAINT github_organizations_project_id_foreign FOREIGN KEY (project_id) REFERENCES public .projects (id) ON UPDATE CASCADE ON DELETE CASCADE ;
310
446
311
447
448
+ --
449
+ -- Name: github_repositories github_repositories_github_organization_id_foreign; Type: FK CONSTRAINT; Schema: public; Owner: -
450
+ --
451
+
452
+ ALTER TABLE ONLY public .github_repositories
453
+ ADD CONSTRAINT github_repositories_github_organization_id_foreign FOREIGN KEY (github_organization_id) REFERENCES public .github_organizations (id) ON UPDATE CASCADE ON DELETE CASCADE ;
454
+
455
+
312
456
--
313
457
-- PostgreSQL database dump complete
314
458
--
0 commit comments