auth-server/migrations/2020-03-01-120634_create_users/up.sql
2020-03-01 19:36:10 +01:00

9 lines
242 B
SQL

-- Your SQL goes here
CREATE TABLE users (
id SERIAL PRIMARY KEY,
username VARCHAR(32) UNIQUE NOT NULL,
is_active BOOLEAN DEFAULT TRUE NOT NULL,
created_at TIMESTAMPTZ DEFAULT now(),
updated_at TIMESTAMPTZ DEFAULT NULL
);