chore: initial commit

This commit is contained in:
2026-07-22 17:50:33 +08:00
parent 82936a8987
commit ee9f50b859
107 changed files with 8346 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
CREATE TABLE post_viewers
(
post_id INTEGER NOT NULL,
ip INET NOT NULL,
last_viewed_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
PRIMARY KEY(post_id, ip)
);
COMMENT ON COLUMN post_viewers.post_id IS '文章id';
COMMENT ON COLUMN post_viewers.ip IS '访问ip';
COMMENT ON COLUMN post_viewers.last_viewed_at IS '最后访问时间';