hitman/migrations/20240317182405_hits.up.sql

10 lines
314 B
MySQL
Raw Normal View History

create table if not exists hits (
id integer primary key,
page text not null, -- the slug from the page
2024-03-28 16:37:39 +00:00
hit_key text not null unique,
2024-03-30 20:07:56 +00:00
viewed timestamp not null default CURRENT_TIMESTAMP
);
create index if not exists hits_page_dex on hits(page);
2024-03-30 20:07:56 +00:00
create index if not exists hits_viewed_dex on hits(viewed);