20 lines
413 B
MySQL
20 lines
413 B
MySQL
|
-- Deploy numerus:user to pg
|
||
|
-- requires: roles
|
||
|
-- requires: schema_auth
|
||
|
-- requires: email
|
||
|
|
||
|
begin;
|
||
|
|
||
|
set search_path to auth, numerus;
|
||
|
|
||
|
create table "user" (
|
||
|
user_id serial primary key,
|
||
|
email email not null unique,
|
||
|
name text not null,
|
||
|
password text not null check (length(password) < 512),
|
||
|
role name not null check (length(role) < 512),
|
||
|
created_at timestamptz not null default current_timestamp
|
||
|
);
|
||
|
|
||
|
commit;
|