Archived
1
0
Fork 0
This repository has been archived on 2024-07-25. You can view files and clone it, but cannot push or open issues or pull requests.
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
);