8000 feat: Add v1 schema types by kylecarbs · Pull Request #17 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

feat: Add v1 schema types #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 12, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add license table
  • Loading branch information
kylecarbs committed Jan 12, 2022
commit 3b1d1da3a88ff0705afe765af51ab79980a1e5c4
6 changes: 6 additions & 0 deletions database/dump.sql
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ CREATE TABLE api_keys (
devurl_token boolean DEFAULT false NOT NULL
);

CREATE TABLE licenses (
id integer NOT NULL,
license jsonb NOT NULL,
created_at timestamp with time zone NOT NULL
);

CREATE TABLE organization_members (
organization_id text NOT NULL,
user_id text NOT NULL,
Expand Down
6 changes: 6 additions & 0 deletions database/migrations/000001_base.up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,9 @@ CREATE TABLE IF NOT EXISTS api_keys (
oidc_expiry timestamp with time zone DEFAULT '0001-01-01 00:00:00+00'::timestamp with time zone NOT NULL,
devurl_token boolean DEFAULT false NOT NULL
);

CREATE TABLE licenses (
id integer NOT NULL,
license jsonb NOT NULL,
created_at timestamp with time zone NOT NULL
);
7 changes: 7 additions & 0 deletions database/models.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0