Flaskbb开发过程记录(一)

Flaskbb开发过程记录(一)

Forum Models学习

  • *外键
类名字段方法
Categoryid
title
description
forums(一对多关联Forum)
delete
get_all
get_forums
Forumid
category_id
title
description
position
locked
show_moderators
external
post_count
topic_count
last_post_id
last_post(一对一关联Post)
last_post_user_id
last_post_user(一对一关联User)
last_post_title
last_post_username
last_post_created
topics(一对多关联topics)
moderators(版主;多对多关联;中间表字段为user_id和forum_id)
groups(多对多关联;中间表字段为group_id和forum_id)
update_last_post
update_read
recalculate
save
delete
move_topics_to
get_forum
get_topics
Topicid
forum_id*
title
user_id*
username
date_created
last_updated
locked
important
views
post_count
first_post_id*
first_post(一对一关联Post)
last_post_id*
last_post(一对一关联Post)
posts(一对多关联Post)
is_first_post
first_unread
get_topic
tracker_needs_update
update_read
recalculate
move
save
delete
hide
unhide
involved_users
Postid
topic_id*
user_id*
username
content
date_created
date_modified
modified_by
is_first_post
save
delete
hide
unhide
Reportid
reporter_id*
reported
post_id*
zapped
zapped_by*
reason
post(一对多关联Post)
reporter(一对多关联User)
zapper(一对多关联User)
save
TopicsReaduser_id*
user(一对多关联User)
topic_id*
topic(一对多关联Topic)
forum_id*
forum(一对多关联Forum)
last_read
-
ForumsReaduser_id*
user(一对多关联User)
forum_id*
forum(一对多关联Forum)
last_read
cleared
-
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值