mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2024-11-22 03:19:53 -08:00
11 lines
305 B
SQL
11 lines
305 B
SQL
CREATE TABLE search_history (
|
|
id integer PRIMARY KEY AUTOINCREMENT,
|
|
anime_name varchar(200) NOT NULL,
|
|
search_date DATETIME NOT NULL,
|
|
CHECK (LENGTH(anime_name) > 0),
|
|
UNIQUE (anime_name, search_date)
|
|
);
|
|
|
|
CREATE UNIQUE INDEX anime_search_idx ON search_history (anime_name, search_date);
|
|
|