migra/sample/database/schema.sql

7 lines
209 B
MySQL
Raw Normal View History

2021-02-01 23:49:26 +03:00
2021-02-22 16:28:14 +03:00
CREATE TABLE tags (
id serial PRIMARY KEY,
name text NOT NULL UNIQUE CHECK(length(name) > 0),
created_at timestamp NOT NULL DEFAULT current_timestamp
2021-02-01 23:49:26 +03:00
);