9 lines
320 B
SQL
9 lines
320 B
SQL
create table if not exists hits (
|
|
id integer primary key,
|
|
page text not null, -- the slug from the page
|
|
hit_key blob not null unique,
|
|
accessed timestamp not null default CURRENT_TIMESTAMP
|
|
);
|
|
|
|
create index if not exists hits_page_dex on hits(page);
|
|
create index if not exists hits_accessed_dex on hits(accessed);
|