showcase/models/showcase_likes.json
yumoqing 1cce05a119 feat: showcase模块 - 产品展示平台(MVP)
- 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三规范
2026-06-11 14:46:02 +08:00

22 lines
865 B
JSON

{
"summary": [
{
"name": "showcase_likes",
"title": "作品点赞表",
"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": "created_at", "title": "点赞时间", "type": "timestamp", "nullable": "no"}
],
"indexes": [
{"name": "idx_likes_post", "idxtype": "index", "idxfields": ["post_id"]},
{"name": "idx_likes_user", "idxtype": "index", "idxfields": ["user_id"]},
{"name": "idx_likes_unique", "idxtype": "unique", "idxfields": ["post_id", "user_id"]}
],
"codes": []
}