bitque/jirs-server/migrations/2020-03-25-150007_create_users/up.sql

10 lines
285 B
MySQL
Raw Normal View History

2020-04-02 16:14:07 +02:00
CREATE TABLE users (
id serial primary key not null,
name text not null,
email text not null,
avatar_url text,
project_id integer not null references projects (id),
created_at timestamp not null default now(),
updated_at timestamp not null default now()
);