16 lines
380 B
SQL
16 lines
380 B
SQL
-- +goose Up
|
|
-- +goose StatementBegin
|
|
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
|
|
|
|
CREATE TABLE user_account (
|
|
user_id uuid PRIMARY KEY DEFAULT uuid_generate_v4(),
|
|
created_at timestamptz NOT NULL,
|
|
fullname text NOT NULL,
|
|
username text NOT NULL UNIQUE,
|
|
email text NOT NULL UNIQUE,
|
|
password_hash text NOT NULL,
|
|
avatar_url text
|
|
);
|
|
-- +goose StatementEnd
|
|
|