feat(家庭成员): 添加家庭成员模型并关联感悟和计划
添加家庭成员模型(FamilyMember)并关联到感悟记录(InsightRecord)和今日计划(TodayPlan) 修改相关表单、视图和模板以支持发言人功能 添加数据库迁移文件和初始化脚本 更新报告模板显示发言人信息
This commit is contained in:
10
verify_db.py
Normal file
10
verify_db.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import sqlite3
|
||||
conn = sqlite3.connect('db.sqlite3')
|
||||
cursor = conn.cursor()
|
||||
cursor.execute("SELECT name FROM sqlite_master WHERE type='table' AND name LIKE 'core_%' ORDER BY name;")
|
||||
print("Tables:", [r[0] for r in cursor.fetchall()])
|
||||
cursor.execute("SELECT COUNT(*) FROM core_familymember;")
|
||||
print("Family members count:", cursor.fetchone()[0])
|
||||
cursor.execute("SELECT sql FROM sqlite_master WHERE type='table' AND name='core_insightrecord';")
|
||||
print("InsightRecord schema:", cursor.fetchone()[0])
|
||||
conn.close()
|
||||
Reference in New Issue
Block a user