- 4张数据表: posts/comments/likes/downloads - 5种媒体类型: music/mtv/short_video/long_video/ktv - 社交功能: 点赞(toggle)、评论(嵌套回复) - KTV付费下载: 购买记录、下载计数 - 11个dspy API端点 - 3个CRUD管理界面(posts/comments/downloads) - Feed流(类型筛选+分页)、作品详情(浏览计数+点赞状态) - load_path.py RBAC权限注册 - 符合module/db-table/crud三规范
26 lines
1.3 KiB
JSON
26 lines
1.3 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "showcase_downloads",
|
|
"title": "KTV付费下载记录表",
|
|
"primary": ["id"]
|
|
}
|
|
],
|
|
"fields": [
|
|
{"name": "id", "title": "主键ID", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "post_id", "title": "作品ID", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "user_id", "title": "购买用户ID", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "price", "title": "购买价格", "type": "double", "length": 10, "dec": 2, "nullable": "no"},
|
|
{"name": "payment_status", "title": "支付状态(0待支付/1已支付/2已退款)", "type": "str", "length": 1, "default": "0"},
|
|
{"name": "download_url", "title": "下载链接", "type": "str", "length": 1024},
|
|
{"name": "download_count", "title": "已下载次数", "type": "int", "default": "0"},
|
|
{"name": "created_at", "title": "购买时间", "type": "timestamp", "nullable": "no"}
|
|
],
|
|
"indexes": [
|
|
{"name": "idx_dl_post", "idxtype": "index", "idxfields": ["post_id"]},
|
|
{"name": "idx_dl_user", "idxtype": "index", "idxfields": ["user_id"]},
|
|
{"name": "idx_dl_unique", "idxtype": "unique", "idxfields": ["post_id", "user_id"]}
|
|
],
|
|
"codes": []
|
|
}
|