From a70e77970956d135dcc2bcb6e8822e11b2c06045 Mon Sep 17 00:00:00 2001 From: Scott Newcomer Date: Thu, 2 Nov 2017 08:19:35 -0700 Subject: [PATCH] Include tasks in task_list view --- .../controllers/task_list_controller.ex | 2 +- lib/code_corps_web/views/task_list_view.ex | 2 +- priv/repo/structure.sql | 625 +++++++++--------- .../views/task_list_view_test.exs | 4 + 4 files changed, 316 insertions(+), 317 deletions(-) diff --git a/lib/code_corps_web/controllers/task_list_controller.ex b/lib/code_corps_web/controllers/task_list_controller.ex index 6fa9682b9..93319a866 100644 --- a/lib/code_corps_web/controllers/task_list_controller.ex +++ b/lib/code_corps_web/controllers/task_list_controller.ex @@ -28,7 +28,7 @@ defmodule CodeCorpsWeb.TaskListController do end end - @preloads [:tasks] + @preloads [{:tasks, [:comments, :github_pull_request, :task_skills, :user_task]}] def preload(data) do Repo.preload(data, @preloads) diff --git a/lib/code_corps_web/views/task_list_view.ex b/lib/code_corps_web/views/task_list_view.ex index 63bb18cb6..6b52dd7f4 100644 --- a/lib/code_corps_web/views/task_list_view.ex +++ b/lib/code_corps_web/views/task_list_view.ex @@ -7,5 +7,5 @@ defmodule CodeCorpsWeb.TaskListView do has_one :project, type: "project", field: :project_id - has_many :tasks, serializer: CodeCorpsWeb.TaskView, identifiers: :always + has_many :tasks, serializer: CodeCorpsWeb.TaskView, include: true, identifiers: :always end diff --git a/priv/repo/structure.sql b/priv/repo/structure.sql index c8473dc5a..1c7969aae 100644 --- a/priv/repo/structure.sql +++ b/priv/repo/structure.sql @@ -2,17 +2,12 @@ -- PostgreSQL database dump -- --- Dumped from database version 9.5.9 --- Dumped by pg_dump version 10.0 - SET statement_timeout = 0; SET lock_timeout = 0; -SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; -SET row_security = off; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: - @@ -52,7 +47,7 @@ SET default_tablespace = ''; SET default_with_oids = false; -- --- Name: auth_token; Type: TABLE; Schema: public; Owner: - +-- Name: auth_token; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE auth_token ( @@ -84,7 +79,7 @@ ALTER SEQUENCE auth_token_id_seq OWNED BY auth_token.id; -- --- Name: categories; Type: TABLE; Schema: public; Owner: - +-- Name: categories; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE categories ( @@ -117,7 +112,7 @@ ALTER SEQUENCE categories_id_seq OWNED BY categories.id; -- --- Name: comments; Type: TABLE; Schema: public; Owner: - +-- Name: comments; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE comments ( @@ -156,7 +151,7 @@ ALTER SEQUENCE comments_id_seq OWNED BY comments.id; -- --- Name: donation_goals; Type: TABLE; Schema: public; Owner: - +-- Name: donation_goals; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE donation_goals ( @@ -190,7 +185,7 @@ ALTER SEQUENCE donation_goals_id_seq OWNED BY donation_goals.id; -- --- Name: github_app_installations; Type: TABLE; Schema: public; Owner: - +-- Name: github_app_installations; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE github_app_installations ( @@ -233,7 +228,7 @@ ALTER SEQUENCE github_app_installations_id_seq OWNED BY github_app_installations -- --- Name: github_comments; Type: TABLE; Schema: public; Owner: - +-- Name: github_comments; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE github_comments ( @@ -270,7 +265,7 @@ ALTER SEQUENCE github_comments_id_seq OWNED BY github_comments.id; -- --- Name: github_events; Type: TABLE; Schema: public; Owner: - +-- Name: github_events; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE github_events ( @@ -306,7 +301,7 @@ ALTER SEQUENCE github_events_id_seq OWNED BY github_events.id; -- --- Name: github_issues; Type: TABLE; Schema: public; Owner: - +-- Name: github_issues; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE github_issues ( @@ -352,7 +347,7 @@ ALTER SEQUENCE github_issues_id_seq OWNED BY github_issues.id; -- --- Name: github_pull_requests; Type: TABLE; Schema: public; Owner: - +-- Name: github_pull_requests; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE github_pull_requests ( @@ -412,7 +407,7 @@ ALTER SEQUENCE github_pull_requests_id_seq OWNED BY github_pull_requests.id; -- --- Name: github_repos; Type: TABLE; Schema: public; Owner: - +-- Name: github_repos; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE github_repos ( @@ -453,7 +448,7 @@ ALTER SEQUENCE github_repos_id_seq OWNED BY github_repos.id; -- --- Name: organization_github_app_installations; Type: TABLE; Schema: public; Owner: - +-- Name: organization_github_app_installations; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE organization_github_app_installations ( @@ -485,7 +480,7 @@ ALTER SEQUENCE organization_github_app_installations_id_seq OWNED BY organizatio -- --- Name: organization_invites; Type: TABLE; Schema: public; Owner: - +-- Name: organization_invites; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE organization_invites ( @@ -519,7 +514,7 @@ ALTER SEQUENCE organization_invites_id_seq OWNED BY organization_invites.id; -- --- Name: organizations; Type: TABLE; Schema: public; Owner: - +-- Name: organizations; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE organizations ( @@ -556,7 +551,7 @@ ALTER SEQUENCE organizations_id_seq OWNED BY organizations.id; -- --- Name: previews; Type: TABLE; Schema: public; Owner: - +-- Name: previews; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE previews ( @@ -589,7 +584,7 @@ ALTER SEQUENCE previews_id_seq OWNED BY previews.id; -- --- Name: project_categories; Type: TABLE; Schema: public; Owner: - +-- Name: project_categories; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE project_categories ( @@ -621,7 +616,7 @@ ALTER SEQUENCE project_categories_id_seq OWNED BY project_categories.id; -- --- Name: project_github_repos; Type: TABLE; Schema: public; Owner: - +-- Name: project_github_repos; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE project_github_repos ( @@ -653,7 +648,7 @@ ALTER SEQUENCE project_github_repos_id_seq OWNED BY project_github_repos.id; -- --- Name: project_skills; Type: TABLE; Schema: public; Owner: - +-- Name: project_skills; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE project_skills ( @@ -685,7 +680,7 @@ ALTER SEQUENCE project_skills_id_seq OWNED BY project_skills.id; -- --- Name: project_users; Type: TABLE; Schema: public; Owner: - +-- Name: project_users; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE project_users ( @@ -718,7 +713,7 @@ ALTER SEQUENCE project_users_id_seq OWNED BY project_users.id; -- --- Name: projects; Type: TABLE; Schema: public; Owner: - +-- Name: projects; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE projects ( @@ -763,7 +758,7 @@ ALTER SEQUENCE projects_id_seq OWNED BY projects.id; -- --- Name: role_skills; Type: TABLE; Schema: public; Owner: - +-- Name: role_skills; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE role_skills ( @@ -796,7 +791,7 @@ ALTER SEQUENCE role_skills_id_seq OWNED BY role_skills.id; -- --- Name: roles; Type: TABLE; Schema: public; Owner: - +-- Name: roles; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE roles ( @@ -829,7 +824,7 @@ ALTER SEQUENCE roles_id_seq OWNED BY roles.id; -- --- Name: schema_migrations; Type: TABLE; Schema: public; Owner: - +-- Name: schema_migrations; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE schema_migrations ( @@ -839,7 +834,7 @@ CREATE TABLE schema_migrations ( -- --- Name: skills; Type: TABLE; Schema: public; Owner: - +-- Name: skills; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE skills ( @@ -872,7 +867,7 @@ ALTER SEQUENCE skills_id_seq OWNED BY skills.id; -- --- Name: slugged_routes; Type: TABLE; Schema: public; Owner: - +-- Name: slugged_routes; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE slugged_routes ( @@ -905,7 +900,7 @@ ALTER SEQUENCE slugged_routes_id_seq OWNED BY slugged_routes.id; -- --- Name: stripe_connect_accounts; Type: TABLE; Schema: public; Owner: - +-- Name: stripe_connect_accounts; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE stripe_connect_accounts ( @@ -987,7 +982,7 @@ ALTER SEQUENCE stripe_connect_accounts_id_seq OWNED BY stripe_connect_accounts.i -- --- Name: stripe_connect_cards; Type: TABLE; Schema: public; Owner: - +-- Name: stripe_connect_cards; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE stripe_connect_cards ( @@ -1020,7 +1015,7 @@ ALTER SEQUENCE stripe_connect_cards_id_seq OWNED BY stripe_connect_cards.id; -- --- Name: stripe_connect_charges; Type: TABLE; Schema: public; Owner: - +-- Name: stripe_connect_charges; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE stripe_connect_charges ( @@ -1073,7 +1068,7 @@ ALTER SEQUENCE stripe_connect_charges_id_seq OWNED BY stripe_connect_charges.id; -- --- Name: stripe_connect_customers; Type: TABLE; Schema: public; Owner: - +-- Name: stripe_connect_customers; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE stripe_connect_customers ( @@ -1107,7 +1102,7 @@ ALTER SEQUENCE stripe_connect_customers_id_seq OWNED BY stripe_connect_customers -- --- Name: stripe_connect_plans; Type: TABLE; Schema: public; Owner: - +-- Name: stripe_connect_plans; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE stripe_connect_plans ( @@ -1142,7 +1137,7 @@ ALTER SEQUENCE stripe_connect_plans_id_seq OWNED BY stripe_connect_plans.id; -- --- Name: stripe_connect_subscriptions; Type: TABLE; Schema: public; Owner: - +-- Name: stripe_connect_subscriptions; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE stripe_connect_subscriptions ( @@ -1186,7 +1181,7 @@ ALTER SEQUENCE stripe_connect_subscriptions_id_seq OWNED BY stripe_connect_subsc -- --- Name: stripe_events; Type: TABLE; Schema: public; Owner: - +-- Name: stripe_events; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE stripe_events ( @@ -1224,7 +1219,7 @@ ALTER SEQUENCE stripe_events_id_seq OWNED BY stripe_events.id; -- --- Name: stripe_external_accounts; Type: TABLE; Schema: public; Owner: - +-- Name: stripe_external_accounts; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE stripe_external_accounts ( @@ -1267,7 +1262,7 @@ ALTER SEQUENCE stripe_external_accounts_id_seq OWNED BY stripe_external_accounts -- --- Name: stripe_file_upload; Type: TABLE; Schema: public; Owner: - +-- Name: stripe_file_upload; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE stripe_file_upload ( @@ -1302,7 +1297,7 @@ ALTER SEQUENCE stripe_file_upload_id_seq OWNED BY stripe_file_upload.id; -- --- Name: stripe_invoices; Type: TABLE; Schema: public; Owner: - +-- Name: stripe_invoices; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE stripe_invoices ( @@ -1361,7 +1356,7 @@ ALTER SEQUENCE stripe_invoices_id_seq OWNED BY stripe_invoices.id; -- --- Name: stripe_platform_cards; Type: TABLE; Schema: public; Owner: - +-- Name: stripe_platform_cards; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE stripe_platform_cards ( @@ -1400,7 +1395,7 @@ ALTER SEQUENCE stripe_platform_cards_id_seq OWNED BY stripe_platform_cards.id; -- --- Name: stripe_platform_customers; Type: TABLE; Schema: public; Owner: - +-- Name: stripe_platform_customers; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE stripe_platform_customers ( @@ -1436,7 +1431,7 @@ ALTER SEQUENCE stripe_platform_customers_id_seq OWNED BY stripe_platform_custome -- --- Name: task_lists; Type: TABLE; Schema: public; Owner: - +-- Name: task_lists; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE task_lists ( @@ -1470,7 +1465,7 @@ ALTER SEQUENCE task_lists_id_seq OWNED BY task_lists.id; -- --- Name: task_skills; Type: TABLE; Schema: public; Owner: - +-- Name: task_skills; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE task_skills ( @@ -1502,7 +1497,7 @@ ALTER SEQUENCE task_skills_id_seq OWNED BY task_skills.id; -- --- Name: tasks; Type: TABLE; Schema: public; Owner: - +-- Name: tasks; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE tasks ( @@ -1549,7 +1544,7 @@ ALTER SEQUENCE tasks_id_seq OWNED BY tasks.id; -- --- Name: user_categories; Type: TABLE; Schema: public; Owner: - +-- Name: user_categories; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE user_categories ( @@ -1581,7 +1576,7 @@ ALTER SEQUENCE user_categories_id_seq OWNED BY user_categories.id; -- --- Name: user_roles; Type: TABLE; Schema: public; Owner: - +-- Name: user_roles; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE user_roles ( @@ -1613,7 +1608,7 @@ ALTER SEQUENCE user_roles_id_seq OWNED BY user_roles.id; -- --- Name: user_skills; Type: TABLE; Schema: public; Owner: - +-- Name: user_skills; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE user_skills ( @@ -1645,7 +1640,7 @@ ALTER SEQUENCE user_skills_id_seq OWNED BY user_skills.id; -- --- Name: user_tasks; Type: TABLE; Schema: public; Owner: - +-- Name: user_tasks; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE user_tasks ( @@ -1677,7 +1672,7 @@ ALTER SEQUENCE user_tasks_id_seq OWNED BY user_tasks.id; -- --- Name: users; Type: TABLE; Schema: public; Owner: - +-- Name: users; Type: TABLE; Schema: public; Owner: -; Tablespace: -- CREATE TABLE users ( @@ -1726,308 +1721,308 @@ ALTER SEQUENCE users_id_seq OWNED BY users.id; -- --- Name: auth_token id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY auth_token ALTER COLUMN id SET DEFAULT nextval('auth_token_id_seq'::regclass); -- --- Name: categories id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY categories ALTER COLUMN id SET DEFAULT nextval('categories_id_seq'::regclass); -- --- Name: comments id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY comments ALTER COLUMN id SET DEFAULT nextval('comments_id_seq'::regclass); -- --- Name: donation_goals id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY donation_goals ALTER COLUMN id SET DEFAULT nextval('donation_goals_id_seq'::regclass); -- --- Name: github_app_installations id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY github_app_installations ALTER COLUMN id SET DEFAULT nextval('github_app_installations_id_seq'::regclass); -- --- Name: github_comments id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY github_comments ALTER COLUMN id SET DEFAULT nextval('github_comments_id_seq'::regclass); -- --- Name: github_events id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY github_events ALTER COLUMN id SET DEFAULT nextval('github_events_id_seq'::regclass); -- --- Name: github_issues id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY github_issues ALTER COLUMN id SET DEFAULT nextval('github_issues_id_seq'::regclass); -- --- Name: github_pull_requests id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY github_pull_requests ALTER COLUMN id SET DEFAULT nextval('github_pull_requests_id_seq'::regclass); -- --- Name: github_repos id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY github_repos ALTER COLUMN id SET DEFAULT nextval('github_repos_id_seq'::regclass); -- --- Name: organization_github_app_installations id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY organization_github_app_installations ALTER COLUMN id SET DEFAULT nextval('organization_github_app_installations_id_seq'::regclass); -- --- Name: organization_invites id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY organization_invites ALTER COLUMN id SET DEFAULT nextval('organization_invites_id_seq'::regclass); -- --- Name: organizations id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY organizations ALTER COLUMN id SET DEFAULT nextval('organizations_id_seq'::regclass); -- --- Name: previews id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY previews ALTER COLUMN id SET DEFAULT nextval('previews_id_seq'::regclass); -- --- Name: project_categories id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY project_categories ALTER COLUMN id SET DEFAULT nextval('project_categories_id_seq'::regclass); -- --- Name: project_github_repos id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY project_github_repos ALTER COLUMN id SET DEFAULT nextval('project_github_repos_id_seq'::regclass); -- --- Name: project_skills id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY project_skills ALTER COLUMN id SET DEFAULT nextval('project_skills_id_seq'::regclass); -- --- Name: project_users id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY project_users ALTER COLUMN id SET DEFAULT nextval('project_users_id_seq'::regclass); -- --- Name: projects id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY projects ALTER COLUMN id SET DEFAULT nextval('projects_id_seq'::regclass); -- --- Name: role_skills id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY role_skills ALTER COLUMN id SET DEFAULT nextval('role_skills_id_seq'::regclass); -- --- Name: roles id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY roles ALTER COLUMN id SET DEFAULT nextval('roles_id_seq'::regclass); -- --- Name: skills id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY skills ALTER COLUMN id SET DEFAULT nextval('skills_id_seq'::regclass); -- --- Name: slugged_routes id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY slugged_routes ALTER COLUMN id SET DEFAULT nextval('slugged_routes_id_seq'::regclass); -- --- Name: stripe_connect_accounts id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY stripe_connect_accounts ALTER COLUMN id SET DEFAULT nextval('stripe_connect_accounts_id_seq'::regclass); -- --- Name: stripe_connect_cards id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY stripe_connect_cards ALTER COLUMN id SET DEFAULT nextval('stripe_connect_cards_id_seq'::regclass); -- --- Name: stripe_connect_charges id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY stripe_connect_charges ALTER COLUMN id SET DEFAULT nextval('stripe_connect_charges_id_seq'::regclass); -- --- Name: stripe_connect_customers id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY stripe_connect_customers ALTER COLUMN id SET DEFAULT nextval('stripe_connect_customers_id_seq'::regclass); -- --- Name: stripe_connect_plans id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY stripe_connect_plans ALTER COLUMN id SET DEFAULT nextval('stripe_connect_plans_id_seq'::regclass); -- --- Name: stripe_connect_subscriptions id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY stripe_connect_subscriptions ALTER COLUMN id SET DEFAULT nextval('stripe_connect_subscriptions_id_seq'::regclass); -- --- Name: stripe_events id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY stripe_events ALTER COLUMN id SET DEFAULT nextval('stripe_events_id_seq'::regclass); -- --- Name: stripe_external_accounts id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY stripe_external_accounts ALTER COLUMN id SET DEFAULT nextval('stripe_external_accounts_id_seq'::regclass); -- --- Name: stripe_file_upload id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY stripe_file_upload ALTER COLUMN id SET DEFAULT nextval('stripe_file_upload_id_seq'::regclass); -- --- Name: stripe_invoices id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY stripe_invoices ALTER COLUMN id SET DEFAULT nextval('stripe_invoices_id_seq'::regclass); -- --- Name: stripe_platform_cards id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY stripe_platform_cards ALTER COLUMN id SET DEFAULT nextval('stripe_platform_cards_id_seq'::regclass); -- --- Name: stripe_platform_customers id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY stripe_platform_customers ALTER COLUMN id SET DEFAULT nextval('stripe_platform_customers_id_seq'::regclass); -- --- Name: task_lists id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY task_lists ALTER COLUMN id SET DEFAULT nextval('task_lists_id_seq'::regclass); -- --- Name: task_skills id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY task_skills ALTER COLUMN id SET DEFAULT nextval('task_skills_id_seq'::regclass); -- --- Name: tasks id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY tasks ALTER COLUMN id SET DEFAULT nextval('tasks_id_seq'::regclass); -- --- Name: user_categories id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY user_categories ALTER COLUMN id SET DEFAULT nextval('user_categories_id_seq'::regclass); -- --- Name: user_roles id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY user_roles ALTER COLUMN id SET DEFAULT nextval('user_roles_id_seq'::regclass); -- --- Name: user_skills id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY user_skills ALTER COLUMN id SET DEFAULT nextval('user_skills_id_seq'::regclass); -- --- Name: user_tasks id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY user_tasks ALTER COLUMN id SET DEFAULT nextval('user_tasks_id_seq'::regclass); -- --- Name: users id; Type: DEFAULT; Schema: public; Owner: - +-- Name: id; Type: DEFAULT; Schema: public; Owner: - -- ALTER TABLE ONLY users ALTER COLUMN id SET DEFAULT nextval('users_id_seq'::regclass); -- --- Name: auth_token auth_token_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: auth_token_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY auth_token @@ -2035,7 +2030,7 @@ ALTER TABLE ONLY auth_token -- --- Name: categories categories_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: categories_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY categories @@ -2043,7 +2038,7 @@ ALTER TABLE ONLY categories -- --- Name: comments comments_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: comments_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY comments @@ -2051,7 +2046,7 @@ ALTER TABLE ONLY comments -- --- Name: donation_goals donation_goals_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: donation_goals_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY donation_goals @@ -2059,7 +2054,7 @@ ALTER TABLE ONLY donation_goals -- --- Name: github_app_installations github_app_installations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: github_app_installations_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY github_app_installations @@ -2067,7 +2062,7 @@ ALTER TABLE ONLY github_app_installations -- --- Name: github_comments github_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: github_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY github_comments @@ -2075,7 +2070,7 @@ ALTER TABLE ONLY github_comments -- --- Name: github_events github_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: github_events_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY github_events @@ -2083,7 +2078,7 @@ ALTER TABLE ONLY github_events -- --- Name: github_issues github_issues_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: github_issues_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY github_issues @@ -2091,7 +2086,7 @@ ALTER TABLE ONLY github_issues -- --- Name: github_pull_requests github_pull_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: github_pull_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY github_pull_requests @@ -2099,7 +2094,7 @@ ALTER TABLE ONLY github_pull_requests -- --- Name: github_repos github_repos_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: github_repos_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY github_repos @@ -2107,7 +2102,7 @@ ALTER TABLE ONLY github_repos -- --- Name: organization_github_app_installations organization_github_app_installations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: organization_github_app_installations_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY organization_github_app_installations @@ -2115,7 +2110,7 @@ ALTER TABLE ONLY organization_github_app_installations -- --- Name: organization_invites organization_invites_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: organization_invites_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY organization_invites @@ -2123,7 +2118,7 @@ ALTER TABLE ONLY organization_invites -- --- Name: organizations organizations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: organizations_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY organizations @@ -2131,7 +2126,7 @@ ALTER TABLE ONLY organizations -- --- Name: previews previews_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: previews_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY previews @@ -2139,7 +2134,7 @@ ALTER TABLE ONLY previews -- --- Name: project_categories project_categories_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: project_categories_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY project_categories @@ -2147,7 +2142,7 @@ ALTER TABLE ONLY project_categories -- --- Name: project_github_repos project_github_repos_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: project_github_repos_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY project_github_repos @@ -2155,7 +2150,7 @@ ALTER TABLE ONLY project_github_repos -- --- Name: project_skills project_skills_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: project_skills_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY project_skills @@ -2163,7 +2158,7 @@ ALTER TABLE ONLY project_skills -- --- Name: project_users project_users_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: project_users_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY project_users @@ -2171,7 +2166,7 @@ ALTER TABLE ONLY project_users -- --- Name: projects projects_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: projects_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY projects @@ -2179,7 +2174,7 @@ ALTER TABLE ONLY projects -- --- Name: role_skills role_skills_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: role_skills_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY role_skills @@ -2187,7 +2182,7 @@ ALTER TABLE ONLY role_skills -- --- Name: roles roles_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: roles_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY roles @@ -2195,7 +2190,7 @@ ALTER TABLE ONLY roles -- --- Name: schema_migrations schema_migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: schema_migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY schema_migrations @@ -2203,7 +2198,7 @@ ALTER TABLE ONLY schema_migrations -- --- Name: skills skills_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: skills_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY skills @@ -2211,7 +2206,7 @@ ALTER TABLE ONLY skills -- --- Name: slugged_routes slugged_routes_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: slugged_routes_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY slugged_routes @@ -2219,7 +2214,7 @@ ALTER TABLE ONLY slugged_routes -- --- Name: stripe_connect_cards stripe_connect_cards_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: stripe_connect_cards_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY stripe_connect_cards @@ -2227,7 +2222,7 @@ ALTER TABLE ONLY stripe_connect_cards -- --- Name: stripe_connect_charges stripe_connect_charges_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: stripe_connect_charges_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY stripe_connect_charges @@ -2235,7 +2230,7 @@ ALTER TABLE ONLY stripe_connect_charges -- --- Name: stripe_connect_customers stripe_connect_customers_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: stripe_connect_customers_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY stripe_connect_customers @@ -2243,7 +2238,7 @@ ALTER TABLE ONLY stripe_connect_customers -- --- Name: stripe_events stripe_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: stripe_events_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY stripe_events @@ -2251,7 +2246,7 @@ ALTER TABLE ONLY stripe_events -- --- Name: stripe_external_accounts stripe_external_accounts_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: stripe_external_accounts_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY stripe_external_accounts @@ -2259,7 +2254,7 @@ ALTER TABLE ONLY stripe_external_accounts -- --- Name: stripe_file_upload stripe_file_upload_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: stripe_file_upload_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY stripe_file_upload @@ -2267,7 +2262,7 @@ ALTER TABLE ONLY stripe_file_upload -- --- Name: stripe_invoices stripe_invoices_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: stripe_invoices_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY stripe_invoices @@ -2275,7 +2270,7 @@ ALTER TABLE ONLY stripe_invoices -- --- Name: task_lists task_lists_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: task_lists_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY task_lists @@ -2283,7 +2278,7 @@ ALTER TABLE ONLY task_lists -- --- Name: task_skills task_skills_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: task_skills_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY task_skills @@ -2291,7 +2286,7 @@ ALTER TABLE ONLY task_skills -- --- Name: user_categories user_categories_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: user_categories_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY user_categories @@ -2299,7 +2294,7 @@ ALTER TABLE ONLY user_categories -- --- Name: user_roles user_roles_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: user_roles_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY user_roles @@ -2307,7 +2302,7 @@ ALTER TABLE ONLY user_roles -- --- Name: user_skills user_skills_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: user_skills_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY user_skills @@ -2315,7 +2310,7 @@ ALTER TABLE ONLY user_skills -- --- Name: user_tasks user_tasks_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: user_tasks_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY user_tasks @@ -2323,7 +2318,7 @@ ALTER TABLE ONLY user_tasks -- --- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- Name: users_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- ALTER TABLE ONLY users @@ -2331,861 +2326,861 @@ ALTER TABLE ONLY users -- --- Name: auth_token_user_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: auth_token_user_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX auth_token_user_id_index ON auth_token USING btree (user_id); -- --- Name: auth_token_value_index; Type: INDEX; Schema: public; Owner: - +-- Name: auth_token_value_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX auth_token_value_index ON auth_token USING btree (value); -- --- Name: comments_github_comment_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: comments_github_comment_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX comments_github_comment_id_index ON comments USING btree (github_comment_id); -- --- Name: comments_task_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: comments_task_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX comments_task_id_index ON comments USING btree (task_id); -- --- Name: comments_user_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: comments_user_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX comments_user_id_index ON comments USING btree (user_id); -- --- Name: donation_goals_current_unique_to_project; Type: INDEX; Schema: public; Owner: - +-- Name: donation_goals_current_unique_to_project; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX donation_goals_current_unique_to_project ON donation_goals USING btree (project_id) WHERE current; -- --- Name: donation_goals_project_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: donation_goals_project_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX donation_goals_project_id_index ON donation_goals USING btree (project_id); -- --- Name: github_app_installations_github_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: github_app_installations_github_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX github_app_installations_github_id_index ON github_app_installations USING btree (github_id); -- --- Name: github_app_installations_project_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: github_app_installations_project_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX github_app_installations_project_id_index ON github_app_installations USING btree (project_id); -- --- Name: github_app_installations_user_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: github_app_installations_user_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX github_app_installations_user_id_index ON github_app_installations USING btree (user_id); -- --- Name: github_comments_github_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: github_comments_github_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX github_comments_github_id_index ON github_comments USING btree (github_id); -- --- Name: github_comments_github_issue_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: github_comments_github_issue_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX github_comments_github_issue_id_index ON github_comments USING btree (github_issue_id); -- --- Name: github_events_github_delivery_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: github_events_github_delivery_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX github_events_github_delivery_id_index ON github_events USING btree (github_delivery_id); -- --- Name: github_events_status_index; Type: INDEX; Schema: public; Owner: - +-- Name: github_events_status_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX github_events_status_index ON github_events USING btree (status); -- --- Name: github_issues_github_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: github_issues_github_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX github_issues_github_id_index ON github_issues USING btree (github_id); -- --- Name: github_issues_github_pull_request_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: github_issues_github_pull_request_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX github_issues_github_pull_request_id_index ON github_issues USING btree (github_pull_request_id); -- --- Name: github_issues_github_repo_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: github_issues_github_repo_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX github_issues_github_repo_id_index ON github_issues USING btree (github_repo_id); -- --- Name: github_pull_requests_github_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: github_pull_requests_github_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX github_pull_requests_github_id_index ON github_pull_requests USING btree (github_id); -- --- Name: github_pull_requests_github_repo_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: github_pull_requests_github_repo_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX github_pull_requests_github_repo_id_index ON github_pull_requests USING btree (github_repo_id); -- --- Name: github_repos_github_app_installation_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: github_repos_github_app_installation_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX github_repos_github_app_installation_id_index ON github_repos USING btree (github_app_installation_id); -- --- Name: github_repos_github_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: github_repos_github_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX github_repos_github_id_index ON github_repos USING btree (github_id); -- --- Name: github_repos_sync_state_index; Type: INDEX; Schema: public; Owner: - +-- Name: github_repos_sync_state_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX github_repos_sync_state_index ON github_repos USING btree (sync_state); -- --- Name: index_categories_on_slug; Type: INDEX; Schema: public; Owner: - +-- Name: index_categories_on_slug; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX index_categories_on_slug ON categories USING btree (lower((slug)::text)); -- --- Name: index_projects_on_role_id_skill_id; Type: INDEX; Schema: public; Owner: - +-- Name: index_projects_on_role_id_skill_id; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX index_projects_on_role_id_skill_id ON role_skills USING btree (role_id, skill_id); -- --- Name: index_projects_on_slug; Type: INDEX; Schema: public; Owner: - +-- Name: index_projects_on_slug; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX index_projects_on_slug ON projects USING btree (lower((slug)::text)); -- --- Name: index_projects_on_user_id_skill_id; Type: INDEX; Schema: public; Owner: - +-- Name: index_projects_on_user_id_skill_id; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX index_projects_on_user_id_skill_id ON user_skills USING btree (user_id, skill_id); -- --- Name: index_skills_on_title; Type: INDEX; Schema: public; Owner: - +-- Name: index_skills_on_title; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX index_skills_on_title ON skills USING btree (lower((title)::text)); -- --- Name: organization_github_app_installations_github_app_installation_i; Type: INDEX; Schema: public; Owner: - +-- Name: organization_github_app_installations_github_app_installation_i; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX organization_github_app_installations_github_app_installation_i ON organization_github_app_installations USING btree (github_app_installation_id); -- --- Name: organization_github_app_installations_organization_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: organization_github_app_installations_organization_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX organization_github_app_installations_organization_id_index ON organization_github_app_installations USING btree (organization_id); -- --- Name: organization_invites_code_index; Type: INDEX; Schema: public; Owner: - +-- Name: organization_invites_code_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX organization_invites_code_index ON organization_invites USING btree (code); -- --- Name: organization_invites_email_index; Type: INDEX; Schema: public; Owner: - +-- Name: organization_invites_email_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX organization_invites_email_index ON organization_invites USING btree (email); -- --- Name: organizations_approved_index; Type: INDEX; Schema: public; Owner: - +-- Name: organizations_approved_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX organizations_approved_index ON organizations USING btree (approved); -- --- Name: organizations_lower_slug_index; Type: INDEX; Schema: public; Owner: - +-- Name: organizations_lower_slug_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX organizations_lower_slug_index ON organizations USING btree (lower((slug)::text)); -- --- Name: organizations_owner_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: organizations_owner_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX organizations_owner_id_index ON organizations USING btree (owner_id); -- --- Name: previews_user_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: previews_user_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX previews_user_id_index ON previews USING btree (user_id); -- --- Name: project_categories_category_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: project_categories_category_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX project_categories_category_id_index ON project_categories USING btree (category_id); -- --- Name: project_categories_project_id_category_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: project_categories_project_id_category_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX project_categories_project_id_category_id_index ON project_categories USING btree (project_id, category_id); -- --- Name: project_categories_project_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: project_categories_project_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX project_categories_project_id_index ON project_categories USING btree (project_id); -- --- Name: project_github_repos_github_repo_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: project_github_repos_github_repo_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX project_github_repos_github_repo_id_index ON project_github_repos USING btree (github_repo_id); -- --- Name: project_github_repos_project_id_github_repo_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: project_github_repos_project_id_github_repo_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX project_github_repos_project_id_github_repo_id_index ON project_github_repos USING btree (project_id, github_repo_id); -- --- Name: project_github_repos_project_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: project_github_repos_project_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX project_github_repos_project_id_index ON project_github_repos USING btree (project_id); -- --- Name: project_skills_project_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: project_skills_project_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX project_skills_project_id_index ON project_skills USING btree (project_id); -- --- Name: project_skills_project_id_skill_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: project_skills_project_id_skill_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX project_skills_project_id_skill_id_index ON project_skills USING btree (project_id, skill_id); -- --- Name: project_skills_skill_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: project_skills_skill_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX project_skills_skill_id_index ON project_skills USING btree (skill_id); -- --- Name: project_users_project_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: project_users_project_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX project_users_project_id_index ON project_users USING btree (project_id); -- --- Name: project_users_user_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: project_users_user_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX project_users_user_id_index ON project_users USING btree (user_id); -- --- Name: project_users_user_id_project_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: project_users_user_id_project_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX project_users_user_id_project_id_index ON project_users USING btree (user_id, project_id); -- --- Name: projects_approved_index; Type: INDEX; Schema: public; Owner: - +-- Name: projects_approved_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX projects_approved_index ON projects USING btree (approved); -- --- Name: projects_organization_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: projects_organization_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX projects_organization_id_index ON projects USING btree (organization_id); -- --- Name: role_skills_role_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: role_skills_role_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX role_skills_role_id_index ON role_skills USING btree (role_id); -- --- Name: role_skills_skill_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: role_skills_skill_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX role_skills_skill_id_index ON role_skills USING btree (skill_id); -- --- Name: slugged_routes_lower_slug_index; Type: INDEX; Schema: public; Owner: - +-- Name: slugged_routes_lower_slug_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX slugged_routes_lower_slug_index ON slugged_routes USING btree (lower((slug)::text)); -- --- Name: slugged_routes_organization_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: slugged_routes_organization_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX slugged_routes_organization_id_index ON slugged_routes USING btree (organization_id); -- --- Name: slugged_routes_user_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: slugged_routes_user_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX slugged_routes_user_id_index ON slugged_routes USING btree (user_id); -- --- Name: stripe_connect_accounts_id_from_stripe_index; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_connect_accounts_id_from_stripe_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX stripe_connect_accounts_id_from_stripe_index ON stripe_connect_accounts USING btree (id_from_stripe); -- --- Name: stripe_connect_accounts_organization_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_connect_accounts_organization_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX stripe_connect_accounts_organization_id_index ON stripe_connect_accounts USING btree (organization_id); -- --- Name: stripe_connect_accounts_pkey; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_connect_accounts_pkey; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX stripe_connect_accounts_pkey ON stripe_connect_accounts USING btree (id); -- --- Name: stripe_connect_cards_id_from_stripe_index; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_connect_cards_id_from_stripe_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX stripe_connect_cards_id_from_stripe_index ON stripe_connect_cards USING btree (id_from_stripe); -- --- Name: stripe_connect_cards_stripe_connect_account_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_connect_cards_stripe_connect_account_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX stripe_connect_cards_stripe_connect_account_id_index ON stripe_connect_cards USING btree (stripe_connect_account_id); -- --- Name: stripe_connect_cards_stripe_connect_account_id_stripe_platform_; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_connect_cards_stripe_connect_account_id_stripe_platform_; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX stripe_connect_cards_stripe_connect_account_id_stripe_platform_ ON stripe_connect_cards USING btree (stripe_connect_account_id, stripe_platform_card_id); -- --- Name: stripe_connect_charges_id_from_stripe_index; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_connect_charges_id_from_stripe_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX stripe_connect_charges_id_from_stripe_index ON stripe_connect_charges USING btree (id_from_stripe); -- --- Name: stripe_connect_charges_stripe_connect_account_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_connect_charges_stripe_connect_account_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX stripe_connect_charges_stripe_connect_account_id_index ON stripe_connect_charges USING btree (stripe_connect_account_id); -- --- Name: stripe_connect_charges_stripe_connect_customer_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_connect_charges_stripe_connect_customer_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX stripe_connect_charges_stripe_connect_customer_id_index ON stripe_connect_charges USING btree (stripe_connect_customer_id); -- --- Name: stripe_connect_charges_user_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_connect_charges_user_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX stripe_connect_charges_user_id_index ON stripe_connect_charges USING btree (user_id); -- --- Name: stripe_connect_customers_id_from_stripe_index; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_connect_customers_id_from_stripe_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX stripe_connect_customers_id_from_stripe_index ON stripe_connect_customers USING btree (id_from_stripe); -- --- Name: stripe_connect_customers_stripe_connect_account_id_stripe_platf; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_connect_customers_stripe_connect_account_id_stripe_platf; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX stripe_connect_customers_stripe_connect_account_id_stripe_platf ON stripe_connect_customers USING btree (stripe_connect_account_id, stripe_platform_customer_id); -- --- Name: stripe_connect_customers_stripe_platform_customer_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_connect_customers_stripe_platform_customer_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX stripe_connect_customers_stripe_platform_customer_id_index ON stripe_connect_customers USING btree (stripe_platform_customer_id); -- --- Name: stripe_connect_customers_user_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_connect_customers_user_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX stripe_connect_customers_user_id_index ON stripe_connect_customers USING btree (user_id); -- --- Name: stripe_connect_plans_id_from_stripe_index; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_connect_plans_id_from_stripe_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX stripe_connect_plans_id_from_stripe_index ON stripe_connect_plans USING btree (id_from_stripe); -- --- Name: stripe_connect_plans_pkey; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_connect_plans_pkey; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX stripe_connect_plans_pkey ON stripe_connect_plans USING btree (id); -- --- Name: stripe_connect_plans_project_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_connect_plans_project_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX stripe_connect_plans_project_id_index ON stripe_connect_plans USING btree (project_id); -- --- Name: stripe_connect_subscriptions_id_from_stripe_index; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_connect_subscriptions_id_from_stripe_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX stripe_connect_subscriptions_id_from_stripe_index ON stripe_connect_subscriptions USING btree (id_from_stripe); -- --- Name: stripe_connect_subscriptions_pkey; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_connect_subscriptions_pkey; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX stripe_connect_subscriptions_pkey ON stripe_connect_subscriptions USING btree (id); -- --- Name: stripe_connect_subscriptions_plan_id_from_stripe_index; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_connect_subscriptions_plan_id_from_stripe_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX stripe_connect_subscriptions_plan_id_from_stripe_index ON stripe_connect_subscriptions USING btree (plan_id_from_stripe); -- --- Name: stripe_connect_subscriptions_stripe_connect_plan_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_connect_subscriptions_stripe_connect_plan_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX stripe_connect_subscriptions_stripe_connect_plan_id_index ON stripe_connect_subscriptions USING btree (stripe_connect_plan_id); -- --- Name: stripe_connect_subscriptions_user_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_connect_subscriptions_user_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX stripe_connect_subscriptions_user_id_index ON stripe_connect_subscriptions USING btree (user_id); -- --- Name: stripe_events_id_from_stripe_index; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_events_id_from_stripe_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX stripe_events_id_from_stripe_index ON stripe_events USING btree (id_from_stripe); -- --- Name: stripe_external_accounts_id_from_stripe_index; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_external_accounts_id_from_stripe_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX stripe_external_accounts_id_from_stripe_index ON stripe_external_accounts USING btree (id_from_stripe); -- --- Name: stripe_external_accounts_stripe_connect_account_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_external_accounts_stripe_connect_account_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX stripe_external_accounts_stripe_connect_account_id_index ON stripe_external_accounts USING btree (stripe_connect_account_id); -- --- Name: stripe_file_upload_id_from_stripe_index; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_file_upload_id_from_stripe_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX stripe_file_upload_id_from_stripe_index ON stripe_file_upload USING btree (id_from_stripe); -- --- Name: stripe_file_upload_stripe_connect_account_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_file_upload_stripe_connect_account_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX stripe_file_upload_stripe_connect_account_id_index ON stripe_file_upload USING btree (stripe_connect_account_id); -- --- Name: stripe_invoices_id_from_stripe_index; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_invoices_id_from_stripe_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX stripe_invoices_id_from_stripe_index ON stripe_invoices USING btree (id_from_stripe); -- --- Name: stripe_invoices_stripe_connect_subscription_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_invoices_stripe_connect_subscription_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX stripe_invoices_stripe_connect_subscription_id_index ON stripe_invoices USING btree (stripe_connect_subscription_id); -- --- Name: stripe_invoices_user_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_invoices_user_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX stripe_invoices_user_id_index ON stripe_invoices USING btree (user_id); -- --- Name: stripe_platform_cards_id_from_stripe_index; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_platform_cards_id_from_stripe_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX stripe_platform_cards_id_from_stripe_index ON stripe_platform_cards USING btree (id_from_stripe); -- --- Name: stripe_platform_cards_pkey; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_platform_cards_pkey; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX stripe_platform_cards_pkey ON stripe_platform_cards USING btree (id); -- --- Name: stripe_platform_cards_user_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_platform_cards_user_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX stripe_platform_cards_user_id_index ON stripe_platform_cards USING btree (user_id); -- --- Name: stripe_platform_customers_id_from_stripe_index; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_platform_customers_id_from_stripe_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX stripe_platform_customers_id_from_stripe_index ON stripe_platform_customers USING btree (id_from_stripe); -- --- Name: stripe_platform_customers_pkey; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_platform_customers_pkey; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX stripe_platform_customers_pkey ON stripe_platform_customers USING btree (id); -- --- Name: stripe_platform_customers_user_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: stripe_platform_customers_user_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX stripe_platform_customers_user_id_index ON stripe_platform_customers USING btree (user_id); -- --- Name: task_lists_inbox_index; Type: INDEX; Schema: public; Owner: - +-- Name: task_lists_inbox_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX task_lists_inbox_index ON task_lists USING btree (inbox); -- --- Name: task_lists_order_index; Type: INDEX; Schema: public; Owner: - +-- Name: task_lists_order_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX task_lists_order_index ON task_lists USING btree ("order"); -- --- Name: task_lists_project_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: task_lists_project_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX task_lists_project_id_index ON task_lists USING btree (project_id); -- --- Name: task_skills_skill_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: task_skills_skill_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX task_skills_skill_id_index ON task_skills USING btree (skill_id); -- --- Name: task_skills_task_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: task_skills_task_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX task_skills_task_id_index ON task_skills USING btree (task_id); -- --- Name: task_skills_task_id_skill_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: task_skills_task_id_skill_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX task_skills_task_id_skill_id_index ON task_skills USING btree (task_id, skill_id); -- --- Name: tasks_archived_index; Type: INDEX; Schema: public; Owner: - +-- Name: tasks_archived_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX tasks_archived_index ON tasks USING btree (archived); -- --- Name: tasks_github_issue_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: tasks_github_issue_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX tasks_github_issue_id_index ON tasks USING btree (github_issue_id); -- --- Name: tasks_github_repo_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: tasks_github_repo_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX tasks_github_repo_id_index ON tasks USING btree (github_repo_id); -- --- Name: tasks_number_index; Type: INDEX; Schema: public; Owner: - +-- Name: tasks_number_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX tasks_number_index ON tasks USING btree (number); -- --- Name: tasks_number_project_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: tasks_number_project_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX tasks_number_project_id_index ON tasks USING btree (number, project_id); -- --- Name: tasks_order_index; Type: INDEX; Schema: public; Owner: - +-- Name: tasks_order_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX tasks_order_index ON tasks USING btree ("order"); -- --- Name: tasks_pkey; Type: INDEX; Schema: public; Owner: - +-- Name: tasks_pkey; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX tasks_pkey ON tasks USING btree (id); -- --- Name: tasks_project_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: tasks_project_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX tasks_project_id_index ON tasks USING btree (project_id); -- --- Name: tasks_status_index; Type: INDEX; Schema: public; Owner: - +-- Name: tasks_status_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX tasks_status_index ON tasks USING btree (status); -- --- Name: tasks_task_list_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: tasks_task_list_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX tasks_task_list_id_index ON tasks USING btree (task_list_id); -- --- Name: tasks_user_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: tasks_user_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX tasks_user_id_index ON tasks USING btree (user_id); -- --- Name: user_categories_category_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: user_categories_category_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX user_categories_category_id_index ON user_categories USING btree (category_id); -- --- Name: user_categories_user_id_category_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: user_categories_user_id_category_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX user_categories_user_id_category_id_index ON user_categories USING btree (user_id, category_id); -- --- Name: user_categories_user_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: user_categories_user_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX user_categories_user_id_index ON user_categories USING btree (user_id); -- --- Name: user_roles_role_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: user_roles_role_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX user_roles_role_id_index ON user_roles USING btree (role_id); -- --- Name: user_roles_user_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: user_roles_user_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX user_roles_user_id_index ON user_roles USING btree (user_id); -- --- Name: user_roles_user_id_role_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: user_roles_user_id_role_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX user_roles_user_id_role_id_index ON user_roles USING btree (user_id, role_id); -- --- Name: user_skills_skill_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: user_skills_skill_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX user_skills_skill_id_index ON user_skills USING btree (skill_id); -- --- Name: user_skills_user_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: user_skills_user_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX user_skills_user_id_index ON user_skills USING btree (user_id); -- --- Name: user_tasks_task_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: user_tasks_task_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX user_tasks_task_id_index ON user_tasks USING btree (task_id); -- --- Name: user_tasks_user_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: user_tasks_user_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE INDEX user_tasks_user_id_index ON user_tasks USING btree (user_id); -- --- Name: user_tasks_user_id_task_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: user_tasks_user_id_task_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX user_tasks_user_id_task_id_index ON user_tasks USING btree (user_id, task_id); -- --- Name: users_email_index; Type: INDEX; Schema: public; Owner: - +-- Name: users_email_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX users_email_index ON users USING btree (email); -- --- Name: users_github_id_index; Type: INDEX; Schema: public; Owner: - +-- Name: users_github_id_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX users_github_id_index ON users USING btree (github_id); -- --- Name: users_lower_username_index; Type: INDEX; Schema: public; Owner: - +-- Name: users_lower_username_index; Type: INDEX; Schema: public; Owner: -; Tablespace: -- CREATE UNIQUE INDEX users_lower_username_index ON users USING btree (lower((username)::text)); -- --- Name: tasks task_created; Type: TRIGGER; Schema: public; Owner: - +-- Name: task_created; Type: TRIGGER; Schema: public; Owner: - -- CREATE TRIGGER task_created BEFORE INSERT ON tasks FOR EACH ROW EXECUTE PROCEDURE assign_number(); -- --- Name: auth_token auth_token_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: auth_token_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY auth_token @@ -3193,7 +3188,7 @@ ALTER TABLE ONLY auth_token -- --- Name: comments comments_github_comment_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: comments_github_comment_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY comments @@ -3201,7 +3196,7 @@ ALTER TABLE ONLY comments -- --- Name: comments comments_task_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: comments_task_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY comments @@ -3209,7 +3204,7 @@ ALTER TABLE ONLY comments -- --- Name: comments comments_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: comments_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY comments @@ -3217,7 +3212,7 @@ ALTER TABLE ONLY comments -- --- Name: donation_goals donation_goals_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: donation_goals_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY donation_goals @@ -3225,7 +3220,7 @@ ALTER TABLE ONLY donation_goals -- --- Name: github_app_installations github_app_installations_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: github_app_installations_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY github_app_installations @@ -3233,7 +3228,7 @@ ALTER TABLE ONLY github_app_installations -- --- Name: github_app_installations github_app_installations_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: github_app_installations_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY github_app_installations @@ -3241,7 +3236,7 @@ ALTER TABLE ONLY github_app_installations -- --- Name: github_comments github_comments_github_issue_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: github_comments_github_issue_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY github_comments @@ -3249,7 +3244,7 @@ ALTER TABLE ONLY github_comments -- --- Name: github_issues github_issues_github_pull_request_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: github_issues_github_pull_request_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY github_issues @@ -3257,7 +3252,7 @@ ALTER TABLE ONLY github_issues -- --- Name: github_issues github_issues_github_repo_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: github_issues_github_repo_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY github_issues @@ -3265,7 +3260,7 @@ ALTER TABLE ONLY github_issues -- --- Name: github_pull_requests github_pull_requests_github_repo_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: github_pull_requests_github_repo_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY github_pull_requests @@ -3273,7 +3268,7 @@ ALTER TABLE ONLY github_pull_requests -- --- Name: github_repos github_repos_github_app_installation_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: github_repos_github_app_installation_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY github_repos @@ -3281,7 +3276,7 @@ ALTER TABLE ONLY github_repos -- --- Name: organization_github_app_installations organization_github_app_installations_github_app_installation_i; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: organization_github_app_installations_github_app_installation_i; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY organization_github_app_installations @@ -3289,7 +3284,7 @@ ALTER TABLE ONLY organization_github_app_installations -- --- Name: organization_github_app_installations organization_github_app_installations_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: organization_github_app_installations_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY organization_github_app_installations @@ -3297,7 +3292,7 @@ ALTER TABLE ONLY organization_github_app_installations -- --- Name: organizations organizations_owner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: organizations_owner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY organizations @@ -3305,7 +3300,7 @@ ALTER TABLE ONLY organizations -- --- Name: previews previews_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: previews_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY previews @@ -3313,7 +3308,7 @@ ALTER TABLE ONLY previews -- --- Name: project_categories project_categories_category_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: project_categories_category_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY project_categories @@ -3321,7 +3316,7 @@ ALTER TABLE ONLY project_categories -- --- Name: project_categories project_categories_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: project_categories_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY project_categories @@ -3329,7 +3324,7 @@ ALTER TABLE ONLY project_categories -- --- Name: project_github_repos project_github_repos_github_repo_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: project_github_repos_github_repo_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY project_github_repos @@ -3337,7 +3332,7 @@ ALTER TABLE ONLY project_github_repos -- --- Name: project_github_repos project_github_repos_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: project_github_repos_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY project_github_repos @@ -3345,7 +3340,7 @@ ALTER TABLE ONLY project_github_repos -- --- Name: project_skills project_skills_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: project_skills_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY project_skills @@ -3353,7 +3348,7 @@ ALTER TABLE ONLY project_skills -- --- Name: project_skills project_skills_skill_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: project_skills_skill_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY project_skills @@ -3361,7 +3356,7 @@ ALTER TABLE ONLY project_skills -- --- Name: project_users project_users_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: project_users_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY project_users @@ -3369,7 +3364,7 @@ ALTER TABLE ONLY project_users -- --- Name: project_users project_users_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: project_users_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY project_users @@ -3377,7 +3372,7 @@ ALTER TABLE ONLY project_users -- --- Name: projects projects_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: projects_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY projects @@ -3385,7 +3380,7 @@ ALTER TABLE ONLY projects -- --- Name: role_skills role_skills_role_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: role_skills_role_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY role_skills @@ -3393,7 +3388,7 @@ ALTER TABLE ONLY role_skills -- --- Name: role_skills role_skills_skill_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: role_skills_skill_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY role_skills @@ -3401,7 +3396,7 @@ ALTER TABLE ONLY role_skills -- --- Name: slugged_routes slugged_routes_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: slugged_routes_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY slugged_routes @@ -3409,7 +3404,7 @@ ALTER TABLE ONLY slugged_routes -- --- Name: slugged_routes slugged_routes_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: slugged_routes_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY slugged_routes @@ -3417,7 +3412,7 @@ ALTER TABLE ONLY slugged_routes -- --- Name: stripe_connect_accounts stripe_connect_accounts_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: stripe_connect_accounts_organization_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY stripe_connect_accounts @@ -3425,7 +3420,7 @@ ALTER TABLE ONLY stripe_connect_accounts -- --- Name: stripe_connect_cards stripe_connect_cards_stripe_connect_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: stripe_connect_cards_stripe_connect_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY stripe_connect_cards @@ -3433,7 +3428,7 @@ ALTER TABLE ONLY stripe_connect_cards -- --- Name: stripe_connect_cards stripe_connect_cards_stripe_platform_card_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: stripe_connect_cards_stripe_platform_card_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY stripe_connect_cards @@ -3441,7 +3436,7 @@ ALTER TABLE ONLY stripe_connect_cards -- --- Name: stripe_connect_charges stripe_connect_charges_stripe_connect_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: stripe_connect_charges_stripe_connect_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY stripe_connect_charges @@ -3449,7 +3444,7 @@ ALTER TABLE ONLY stripe_connect_charges -- --- Name: stripe_connect_charges stripe_connect_charges_stripe_connect_customer_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: stripe_connect_charges_stripe_connect_customer_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY stripe_connect_charges @@ -3457,7 +3452,7 @@ ALTER TABLE ONLY stripe_connect_charges -- --- Name: stripe_connect_charges stripe_connect_charges_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: stripe_connect_charges_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY stripe_connect_charges @@ -3465,7 +3460,7 @@ ALTER TABLE ONLY stripe_connect_charges -- --- Name: stripe_connect_customers stripe_connect_customers_stripe_connect_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: stripe_connect_customers_stripe_connect_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY stripe_connect_customers @@ -3473,7 +3468,7 @@ ALTER TABLE ONLY stripe_connect_customers -- --- Name: stripe_connect_customers stripe_connect_customers_stripe_platform_customer_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: stripe_connect_customers_stripe_platform_customer_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY stripe_connect_customers @@ -3481,7 +3476,7 @@ ALTER TABLE ONLY stripe_connect_customers -- --- Name: stripe_connect_customers stripe_connect_customers_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: stripe_connect_customers_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY stripe_connect_customers @@ -3489,7 +3484,7 @@ ALTER TABLE ONLY stripe_connect_customers -- --- Name: stripe_connect_plans stripe_connect_plans_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: stripe_connect_plans_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY stripe_connect_plans @@ -3497,7 +3492,7 @@ ALTER TABLE ONLY stripe_connect_plans -- --- Name: stripe_connect_subscriptions stripe_connect_subscriptions_stripe_connect_plan_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: stripe_connect_subscriptions_stripe_connect_plan_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY stripe_connect_subscriptions @@ -3505,7 +3500,7 @@ ALTER TABLE ONLY stripe_connect_subscriptions -- --- Name: stripe_connect_subscriptions stripe_connect_subscriptions_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: stripe_connect_subscriptions_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY stripe_connect_subscriptions @@ -3513,7 +3508,7 @@ ALTER TABLE ONLY stripe_connect_subscriptions -- --- Name: stripe_external_accounts stripe_external_accounts_stripe_connect_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: stripe_external_accounts_stripe_connect_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY stripe_external_accounts @@ -3521,7 +3516,7 @@ ALTER TABLE ONLY stripe_external_accounts -- --- Name: stripe_file_upload stripe_file_upload_stripe_connect_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: stripe_file_upload_stripe_connect_account_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY stripe_file_upload @@ -3529,7 +3524,7 @@ ALTER TABLE ONLY stripe_file_upload -- --- Name: stripe_invoices stripe_invoices_stripe_connect_subscription_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: stripe_invoices_stripe_connect_subscription_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY stripe_invoices @@ -3537,7 +3532,7 @@ ALTER TABLE ONLY stripe_invoices -- --- Name: stripe_invoices stripe_invoices_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: stripe_invoices_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY stripe_invoices @@ -3545,7 +3540,7 @@ ALTER TABLE ONLY stripe_invoices -- --- Name: stripe_platform_cards stripe_platform_cards_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: stripe_platform_cards_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY stripe_platform_cards @@ -3553,7 +3548,7 @@ ALTER TABLE ONLY stripe_platform_cards -- --- Name: stripe_platform_customers stripe_platform_customers_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: stripe_platform_customers_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY stripe_platform_customers @@ -3561,7 +3556,7 @@ ALTER TABLE ONLY stripe_platform_customers -- --- Name: task_lists task_lists_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: task_lists_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY task_lists @@ -3569,7 +3564,7 @@ ALTER TABLE ONLY task_lists -- --- Name: task_skills task_skills_skill_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: task_skills_skill_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY task_skills @@ -3577,7 +3572,7 @@ ALTER TABLE ONLY task_skills -- --- Name: task_skills task_skills_task_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: task_skills_task_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY task_skills @@ -3585,7 +3580,7 @@ ALTER TABLE ONLY task_skills -- --- Name: tasks tasks_github_issue_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: tasks_github_issue_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY tasks @@ -3593,7 +3588,7 @@ ALTER TABLE ONLY tasks -- --- Name: tasks tasks_github_repo_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: tasks_github_repo_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY tasks @@ -3601,7 +3596,7 @@ ALTER TABLE ONLY tasks -- --- Name: tasks tasks_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: tasks_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY tasks @@ -3609,7 +3604,7 @@ ALTER TABLE ONLY tasks -- --- Name: tasks tasks_task_list_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: tasks_task_list_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY tasks @@ -3617,7 +3612,7 @@ ALTER TABLE ONLY tasks -- --- Name: tasks tasks_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: tasks_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY tasks @@ -3625,7 +3620,7 @@ ALTER TABLE ONLY tasks -- --- Name: user_categories user_categories_category_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: user_categories_category_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY user_categories @@ -3633,7 +3628,7 @@ ALTER TABLE ONLY user_categories -- --- Name: user_categories user_categories_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: user_categories_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY user_categories @@ -3641,7 +3636,7 @@ ALTER TABLE ONLY user_categories -- --- Name: user_roles user_roles_role_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: user_roles_role_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY user_roles @@ -3649,7 +3644,7 @@ ALTER TABLE ONLY user_roles -- --- Name: user_roles user_roles_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: user_roles_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY user_roles @@ -3657,7 +3652,7 @@ ALTER TABLE ONLY user_roles -- --- Name: user_skills user_skills_skill_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: user_skills_skill_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY user_skills @@ -3665,7 +3660,7 @@ ALTER TABLE ONLY user_skills -- --- Name: user_skills user_skills_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: user_skills_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY user_skills @@ -3673,7 +3668,7 @@ ALTER TABLE ONLY user_skills -- --- Name: user_tasks user_tasks_task_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: user_tasks_task_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY user_tasks @@ -3681,7 +3676,7 @@ ALTER TABLE ONLY user_tasks -- --- Name: user_tasks user_tasks_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- Name: user_tasks_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY user_tasks diff --git a/test/lib/code_corps_web/views/task_list_view_test.exs b/test/lib/code_corps_web/views/task_list_view_test.exs index f57181026..f47f15ceb 100644 --- a/test/lib/code_corps_web/views/task_list_view_test.exs +++ b/test/lib/code_corps_web/views/task_list_view_test.exs @@ -40,6 +40,10 @@ defmodule CodeCorpsWeb.TaskListViewTest do } } + { included, rendered_json } = Map.pop(rendered_json, "included") assert rendered_json == expected_json + assert included |> Enum.count == 1 + [ tasks ] = included + assert tasks end end