- 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三规范
30 lines
1.6 KiB
JSON
30 lines
1.6 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "showcase_comments",
|
|
"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": "user_name", "title": "评论者名称", "type": "str", "length": 128},
|
|
{"name": "parent_id", "title": "父评论ID(嵌套回复)", "type": "str", "length": 32},
|
|
{"name": "reply_to_user_id", "title": "回复目标用户ID", "type": "str", "length": 32},
|
|
{"name": "reply_to_user_name", "title": "回复目标用户名", "type": "str", "length": 128},
|
|
{"name": "content", "title": "评论内容", "type": "text", "nullable": "no"},
|
|
{"name": "like_count", "title": "评论点赞数", "type": "int", "default": "0"},
|
|
{"name": "reply_count", "title": "回复数", "type": "int", "default": "0"},
|
|
{"name": "status", "title": "状态(1正常/0隐藏/2删除)", "type": "str", "length": 1, "default": "1"},
|
|
{"name": "created_at", "title": "创建时间", "type": "timestamp", "nullable": "no"}
|
|
],
|
|
"indexes": [
|
|
{"name": "idx_comments_post", "idxtype": "index", "idxfields": ["post_id"]},
|
|
{"name": "idx_comments_parent", "idxtype": "index", "idxfields": ["parent_id"]},
|
|
{"name": "idx_comments_user", "idxtype": "index", "idxfields": ["user_id"]}
|
|
],
|
|
"codes": []
|
|
}
|