db stuff
This commit is contained in:
parent
c8697a4d84
commit
5b6778337a
|
@ -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);
|
|
@ -0,0 +1,5 @@
|
||||||
|
CREATE TABLE users (
|
||||||
|
id SERIAL NOT NULL PRIMARY KEY,
|
||||||
|
email VARCHAR(320) NOT NULL,
|
||||||
|
totp_secret VARCHAR(512) NOT NULL
|
||||||
|
)
|
|
@ -0,0 +1 @@
|
||||||
|
-- Add migration script here
|
Loading…
Reference in New Issue