trifid/trifid-api/migrations/20230203003134_create_orgs.sql

6 lines
258 B
MySQL
Raw Normal View History

2023-02-03 02:53:11 +00:00
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);