diff --git a/config/config.exs b/config/config.exs index fb2f02328..bb5322e24 100644 --- a/config/config.exs +++ b/config/config.exs @@ -94,3 +94,6 @@ import_config "scout_apm.exs" config :code_corps, CodeCorps.Repo, loggers: [{Ecto.LogEntry, :log, []}, {ScoutApm.Instruments.EctoLogger, :log, []}] + +config :jsonapi, + remove_links: true \ No newline at end of file diff --git a/lib/code_corps_web/controllers/category_controller.ex b/lib/code_corps_web/controllers/category_controller.ex index 48841d3b6..38ca96225 100644 --- a/lib/code_corps_web/controllers/category_controller.ex +++ b/lib/code_corps_web/controllers/category_controller.ex @@ -13,6 +13,12 @@ defmodule CodeCorpsWeb.CategoryController do conn |> render("index.json-api", data: categories) end + def show_with_jsonapi(%Conn{} = conn, %{"id" => id}) do + with %Category{} = category <- Category |> Repo.get(id) |> preload() do + conn |> render(CodeCorpsWeb.CategoryjsonapiView, "show.json-api", %{ data: category, conn: conn, params: id }) + end + end + @spec show(Conn.t, map) :: Conn.t def show(%Conn{} = conn, %{"id" => id}) do with %Category{} = category <- Category |> Repo.get(id) |> preload() do diff --git a/lib/code_corps_web/views/categoryjsonapi_view.ex b/lib/code_corps_web/views/categoryjsonapi_view.ex new file mode 100644 index 000000000..d721c7f11 --- /dev/null +++ b/lib/code_corps_web/views/categoryjsonapi_view.ex @@ -0,0 +1,12 @@ +defmodule CodeCorpsWeb.CategoryjsonapiView do + @moduledoc false + use CodeCorpsWeb, :view + use JSONAPI.View, type: "category" + + def render("show.json-api", %{ data: category, conn: conn, params: params }) do + __MODULE__.show(category, conn, params) + end + + def fields, do: [:name, :slug, :description] + def relationships, do: [project_categories: CodeCorpsWeb.ProjectCategoryjsonapiView] +end diff --git a/lib/code_corps_web/views/comment_view.ex b/lib/code_corps_web/views/comment_view.ex index 10c703959..add4589e6 100644 --- a/lib/code_corps_web/views/comment_view.ex +++ b/lib/code_corps_web/views/comment_view.ex @@ -2,6 +2,7 @@ defmodule CodeCorpsWeb.CommentView do @moduledoc false use CodeCorpsWeb, :view use JaSerializer.PhoenixView + use JSONAPI.View, type: "comment" attributes [ :body, :created_at, :created_from, :inserted_at, :markdown, :modified_at, diff --git a/lib/code_corps_web/views/project_categoryjsonapi_view.ex b/lib/code_corps_web/views/project_categoryjsonapi_view.ex new file mode 100644 index 000000000..f35deb237 --- /dev/null +++ b/lib/code_corps_web/views/project_categoryjsonapi_view.ex @@ -0,0 +1,9 @@ +defmodule CodeCorpsWeb.ProjectCategoryjsonapiView do + @moduledoc false + use CodeCorpsWeb, :view + use JSONAPI.View, type: "project-category" + + def fields, do: [] + def relationships, do: [project: CodeCorpsWeb.ProjectView, + category: CodeCorpsWeb.CategoryjsonapiView] +end diff --git a/lib/code_corps_web/views/project_view.ex b/lib/code_corps_web/views/project_view.ex index 6ce94d29b..9f8144f42 100644 --- a/lib/code_corps_web/views/project_view.ex +++ b/lib/code_corps_web/views/project_view.ex @@ -5,6 +5,7 @@ defmodule CodeCorpsWeb.ProjectView do use CodeCorpsWeb, :view use JaSerializer.PhoenixView + use JSONAPI.View, type: "project" attributes [ :approved, :can_activate_donations, :cloudinary_public_id, diff --git a/lib/code_corps_web/views/task_listjsonapi_view.ex b/lib/code_corps_web/views/task_listjsonapi_view.ex new file mode 100644 index 000000000..f26dfb386 --- /dev/null +++ b/lib/code_corps_web/views/task_listjsonapi_view.ex @@ -0,0 +1,12 @@ +defmodule CodeCorpsWeb.TaskListjsonapiView do + @moduledoc false + use CodeCorpsWeb, :view + use JSONAPI.View, type: "task-list" + + def render("show.json-api", %{ data: task_list, conn: conn, params: params }) do + __MODULE__.show(task_list, conn, params) + end + + def fields, do: [:inbox, :name, :order, :inserted_at, :updated_at] + def relationships, do: [project: CodeCorpsWeb.ProjectView, tasks: CodeCorpsWeb.TaskjsonapiView] +end diff --git a/lib/code_corps_web/views/taskjsonapi_view.ex b/lib/code_corps_web/views/taskjsonapi_view.ex new file mode 100644 index 000000000..2378683b7 --- /dev/null +++ b/lib/code_corps_web/views/taskjsonapi_view.ex @@ -0,0 +1,10 @@ +defmodule CodeCorpsWeb.TaskjsonapiView do + @moduledoc false + use CodeCorpsWeb, :view + use JSONAPI.View, type: "task" + + def fields, do: [:archived, :body, :created_at, :created_from, :inserted_at, :markdown, + :modified_at, :modified_from, :number, :order, :status, :title, :updated_at] + + def relationships, do: [comments: CodeCorpsWeb.CommentView] +end diff --git a/mix.exs b/mix.exs index c3cc6edc0..9a46d6d20 100644 --- a/mix.exs +++ b/mix.exs @@ -53,6 +53,8 @@ defmodule CodeCorps.Mixfile do {:gettext, "~> 0.12"}, {:cowboy, "~> 1.0"}, {:benchfella, "~> 0.3.0", only: :dev}, + {:benchee, "~> 0.10", only: :dev}, + {:jsonapi, git: "https://github.com/jeregrine/jsonapi.git"}, {:bypass, "~> 0.8.1", only: :test}, {:cloudex, "~> 0.2.2"}, {:comeonin, "~> 3.1"}, diff --git a/mix.lock b/mix.lock index bc9376f7c..eacabea8f 100644 --- a/mix.lock +++ b/mix.lock @@ -2,6 +2,7 @@ "bamboo": {:hex, :bamboo, "0.8.0", "573889a3efcb906bb9d25a1c4caa4ca22f479235e1b8cc3260d8b88dabeb4b14", [:mix], [{:hackney, "~> 1.6", [hex: :hackney, optional: false]}, {:plug, "~> 1.0", [hex: :plug, optional: false]}, {:poison, ">= 1.5.0", [hex: :poison, optional: false]}]}, "bamboo_postmark": {:hex, :bamboo_postmark, "0.4.1", "2ec8fad4d221944f5169ea4346e6e1aef3578282c352c9f7184306d872aa1c26", [:mix], [{:bamboo, "~> 0.5", [hex: :bamboo, optional: false]}, {:hackney, "~> 1.6", [hex: :hackney, optional: false]}, {:plug, "~> 1.0", [hex: :plug, optional: false]}, {:poison, ">= 1.5.0", [hex: :poison, optional: false]}]}, "base64url": {:hex, :base64url, "0.0.1", "36a90125f5948e3afd7be97662a1504b934dd5dac78451ca6e9abf85a10286be", [], []}, + "benchee": {:hex, :benchee, "0.10.0", "7227e83ab81e4753610125d251bbf78c99167fbe7f931a8cbfbc3eda8526259c", [:mix], [{:deep_merge, "~> 0.1", [hex: :deep_merge, repo: "hexpm", optional: false]}], "hexpm"}, "benchfella": {:hex, :benchfella, "0.3.5", "b2122c234117b3f91ed7b43b6e915e19e1ab216971154acd0a80ce0e9b8c05f5", [:mix], []}, "bunt": {:hex, :bunt, "0.2.0", "951c6e801e8b1d2cbe58ebbd3e616a869061ddadcc4863d0a2182541acae9a38", [:mix], []}, "bypass": {:hex, :bypass, "0.8.1", "16d409e05530ece4a72fabcf021a3e5c7e15dcc77f911423196a0c551f2a15ca", [:mix], [{:cowboy, "~> 1.0", [hex: :cowboy, optional: false]}, {:plug, "~> 1.0", [hex: :plug, optional: false]}]}, @@ -16,6 +17,7 @@ "credo": {:hex, :credo, "0.8.6", "335f723772d35da499b5ebfdaf6b426bfb73590b6fcbc8908d476b75f8cbca3f", [:mix], [{:bunt, "~> 0.2.0", [hex: :bunt, optional: false]}]}, "db_connection": {:hex, :db_connection, "1.1.2", "2865c2a4bae0714e2213a0ce60a1b12d76a6efba0c51fbda59c9ab8d1accc7a8", [:mix], [{:connection, "~> 1.0.2", [hex: :connection, optional: false]}, {:poolboy, "~> 1.5", [hex: :poolboy, optional: true]}, {:sbroker, "~> 1.0", [hex: :sbroker, optional: true]}]}, "decimal": {:hex, :decimal, "1.4.0", "fac965ce71a46aab53d3a6ce45662806bdd708a4a95a65cde8a12eb0124a1333", [:mix], []}, + "deep_merge": {:hex, :deep_merge, "0.1.1", "c27866a7524a337b6a039eeb8dd4f17d458fd40fbbcb8c54661b71a22fffe846", [:mix], [], "hexpm"}, "dialyxir": {:hex, :dialyxir, "0.5.1", "b331b091720fd93e878137add264bac4f644e1ddae07a70bf7062c7862c4b952", [:mix], []}, "earmark": {:hex, :earmark, "1.2.3", "206eb2e2ac1a794aa5256f3982de7a76bf4579ff91cb28d0e17ea2c9491e46a4", [:mix], []}, "ecto": {:hex, :ecto, "2.2.2", "e9bd6ebc044eaaab1cb369e3465686d8aca830aa5bf545ef2bae000a3d42c54b", [:mix], [{:db_connection, "~> 1.1", [hex: :db_connection, optional: true]}, {:decimal, "~> 1.2", [hex: :decimal, optional: false]}, {:mariaex, "~> 0.8.0", [hex: :mariaex, optional: true]}, {:poison, "~> 2.2 or ~> 3.0", [hex: :poison, optional: true]}, {:poolboy, "~> 1.5", [hex: :poolboy, optional: false]}, {:postgrex, "~> 0.13.0", [hex: :postgrex, optional: true]}, {:sbroker, "~> 1.0", [hex: :sbroker, optional: true]}]}, @@ -37,6 +39,7 @@ "ja_serializer": {:hex, :ja_serializer, "0.12.0", "ba4ec5fc7afa6daba815b5cb2b9bd0de410554ac4f0ed54e954d39decb353ca4", [:mix], [{:inflex, "~> 1.4", [hex: :inflex, optional: false]}, {:plug, "> 1.0.0", [hex: :plug, optional: false]}, {:poison, ">= 1.4.0", [hex: :poison, optional: false]}, {:scrivener, "~> 1.2 or ~> 2.0", [hex: :scrivener, optional: true]}]}, "joken": {:hex, :joken, "1.5.0", "42a0953e80bd933fc98a0874e156771f78bf0e92abe6c3a9c22feb6da28efb0b", [:mix], [{:jose, "~> 1.8", [hex: :jose, optional: false]}, {:plug, "~> 1.0", [hex: :plug, optional: true]}, {:poison, "~> 1.5 or ~> 2.0 or ~> 3.0", [hex: :poison, optional: true]}]}, "jose": {:hex, :jose, "1.8.4", "7946d1e5c03a76ac9ef42a6e6a20001d35987afd68c2107bcd8f01a84e75aa73", [:mix, :rebar3], [{:base64url, "~> 0.0.1", [hex: :base64url, optional: false]}]}, + "jsonapi": {:git, "https://github.com/jeregrine/jsonapi.git", "1cb176095773c8d481c38ec0f6b22c36fbff618a", []}, "jsx": {:hex, :jsx, "2.8.2", "7acc7d785b5abe8a6e9adbde926a24e481f29956dd8b4df49e3e4e7bcc92a018", [:mix, :rebar3], []}, "metrics": {:hex, :metrics, "1.0.1", "25f094dea2cda98213cecc3aeff09e940299d950904393b2a29d191c346a8486", [], []}, "mime": {:hex, :mime, "1.1.0", "01c1d6f4083d8aa5c7b8c246ade95139620ef8effb009edde934e0ec3b28090a", [:mix], []}, diff --git a/priv/repo/benchit.exs b/priv/repo/benchit.exs new file mode 100644 index 000000000..c0996b060 --- /dev/null +++ b/priv/repo/benchit.exs @@ -0,0 +1,15 @@ +alias CodeCorps.{ + TaskList,Repo +} +import Phoenix.View, only: [render: 3] + +# category = %Category{ +# id: 12 +# } + +task_list = TaskList |> Repo.get(1) |> Repo.preload([:tasks]) + +Benchee.run(%{ + "jsonapi" => fn -> render(CodeCorpsWeb.TaskListjsonapiView, "show.json-api", %{ data: task_list, conn: nil, params: task_list.id }) end, + "existing" => fn -> render(CodeCorpsWeb.TaskListView, "show.json-api", data: task_list) end +}, time: 10) \ No newline at end of file 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