Skip to content

Commit 3b1d1da

Browse files
committed
Add license table
1 parent 9ac7ace commit 3b1d1da

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

database/dump.sql

+6
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ CREATE TABLE api_keys (
3030
devurl_token boolean DEFAULT false NOT NULL
3131
);
3232

33+
CREATE TABLE licenses (
34+
id integer NOT NULL,
35+
license jsonb NOT NULL,
36+
created_at timestamp with time zone NOT NULL
37+
);
38+
3339
CREATE TABLE organization_members (
3440
organization_id text NOT NULL,
3541
user_id text NOT NULL,

database/migrations/000001_base.up.sql

+6
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,9 @@ CREATE TABLE IF NOT EXISTS api_keys (
8484
oidc_expiry timestamp with time zone DEFAULT '0001-01-01 00:00:00+00'::timestamp with time zone NOT NULL,
8585
devurl_token boolean DEFAULT false NOT NULL
8686
);
87+
88+
CREATE TABLE licenses (
89+
id integer NOT NULL,
90+
license jsonb NOT NULL,
91+
created_at timestamp with time zone NOT NULL
92+
);

database/models.go

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)