feat: 第一次上传

This commit is contained in:
2025-12-14 22:21:03 +08:00
commit 366ab0b2e8
19 changed files with 1008 additions and 0 deletions

28
db/init_db.py Normal file
View File

@@ -0,0 +1,28 @@
import sqlite3
from config import DB_PATH
def init_db():
conn = sqlite3.connect(DB_PATH)
cur = conn.cursor()
cur.execute(
"""
CREATE TABLE IF NOT EXISTS student (
token TEXT PRIMARY KEY,
student_id TEXT,
student_number TEXT,
student_name TEXT,
student_sex TEXT,
dept_name TEXT,
college_name TEXT,
professional_name TEXT,
school_name TEXT,
raw_json TEXT,
updated_at INTEGER
)
"""
)
conn.commit()
conn.close()