db stuff
This commit is contained in:
parent
c8697a4d84
commit
5b6778337a
3 changed files with 12 additions and 1 deletions
|
@ -1 +1,6 @@
|
||||||
-- Add migration script here
|
CREATE TABLE organizations (
|
||||||
|
id SERIAL NOT NULL PRIMARY KEY,
|
||||||
|
network_range VARCHAR(18) NOT NULL, -- https://docs.defined.net/guides/choosing-a-cidr/
|
||||||
|
org_name VARCHAR(258) NOT NULL
|
||||||
|
);
|
||||||
|
CREATE INDEX idx_organizations_name ON organizations(org_name);
|
5
trifid-api/migrations/20230203025121_create_users.sql
Normal file
5
trifid-api/migrations/20230203025121_create_users.sql
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
CREATE TABLE users (
|
||||||
|
id SERIAL NOT NULL PRIMARY KEY,
|
||||||
|
email VARCHAR(320) NOT NULL,
|
||||||
|
totp_secret VARCHAR(512) NOT NULL
|
||||||
|
)
|
1
trifid-api/migrations/20230203025138_create_roles.sql
Normal file
1
trifid-api/migrations/20230203025138_create_roles.sql
Normal file
|
@ -0,0 +1 @@
|
||||||
|
-- Add migration script here
|
Loading…
Add table
Reference in a new issue