summaryrefslogtreecommitdiffstats
path: root/server/migrations/2019-02-26-002946_create_user/up.sql
blob: d4edb3708c6f9c6fa81310ad046a6808a8ace346 (plain)
1
2
3
4
5
6
7
8
9
10
create table user_ (
  id serial primary key,
  name varchar(20) not null unique,
  preferred_username varchar(20),
  password_encrypted text not null,
  email text unique,
  icon bytea,
  published timestamp not null default now(),
  updated timestamp
)