table_name : follows | |
column_name | type |
follower_id | int |
followed_id | int |
timestamp | datetime |
table_name : users | |
column_name | type |
id | int |
varchar(64) | |
username | varchar(64) |
password_hash | varchar(225) |
location | text |
about_me | text |
member_since | datetime |
profile_filename | varchar(200) |
post_count | int |
follow_count | int |
following_count | int |
table_name : posts & deletepost | |
column_name | type |
id | int |
author_id | int |
name | varchar(200) |
timestamp | datetime |
comment_count | int |
table_name : comments & deletecomments | |
column_name | type |
id | int |
author_id | int |
post_id | int |
body | text |
timestamp | datetime |
groupnum | int |
parent | int |
- flask_app = flasky.py
- flask shell
>>> db.create_all()