mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2024-10-28 04:44:11 -07:00
10 lines
274 B
SQL
10 lines
274 B
SQL
CREATE TABLE search_history (
|
|
id integer PRIMARY KEY AUTOINCREMENT,
|
|
anime_name varchar(200) NOT NULL UNIQUE,
|
|
search_date DATETIME NOT NULL,
|
|
CHECK (LENGTH(anime_name) > 0)
|
|
);
|
|
|
|
CREATE UNIQUE INDEX anime_search_idx ON search_history (anime_name, search_date);
|
|
|