6 lines
204 B
MySQL
6 lines
204 B
MySQL
|
CREATE TABLE IF NOT EXISTS replied_items (
|
||
|
id INT NOT NULL PRIMARY KEY,
|
||
|
item_type TEXT NOT NULL CHECK( item_type IN ('p', 'c') ),
|
||
|
updated_time INT NOT NULL,
|
||
|
UNIQUE(id, item_type)
|
||
|
);
|