feat: add posts

This commit is contained in:
Rogee
2025-01-15 14:47:10 +08:00
parent ab827715fb
commit 9002862415
13 changed files with 374 additions and 104 deletions

View File

@@ -17,13 +17,13 @@ CREATE TABLE
title VARCHAR(128) NOT NULL,
description VARCHAR(256) NOT NULL,
poster_asset_id INT8 NOT NULL,
content TEXT NOT NULL,
price INT8 NOT NULL default 0,
discount INT2 NOT NULL default 100,
views INT8 NOT NULL default 0,
likes INT8 NOT NULL default 0,
meta jsonb default '{}'::jsonb,
tags jsonb default '{}'::jsonb,
assets jsonb default '{}'::jsonb
);
-- create indexes