8 lines
231 B
MySQL
8 lines
231 B
MySQL
|
-- Your SQL goes here
|
||
|
|
||
|
CREATE TABLE tags (
|
||
|
id serial PRIMARY KEY,
|
||
|
name text NOT NULL UNIQUE CHECK(length(name) > 0),
|
||
|
created_at timestamp NOT NULL DEFAULT current_timestamp
|
||
|
);
|