This commit is contained in:
core 2023-02-02 21:53:11 -05:00
parent c8697a4d84
commit 5b6778337a
Signed by: core
GPG Key ID: FDBF740DADDCEECF
3 changed files with 12 additions and 1 deletions

View File

@ -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);

View 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
)

View File

@ -0,0 +1 @@
-- Add migration script here