8 lines
222 B
SQL
8 lines
222 B
SQL
CREATE TABLE users (
|
|
id SERIAL PRIMARY KEY,
|
|
name VARCHAR NOT NULL,
|
|
domain VARCHAR NOT NULL,
|
|
display_name VARCHAR DEFAULT NULL
|
|
);
|
|
|
|
CREATE UNIQUE INDEX index_users_on_name_and_domain ON users (name, domain);
|