Files
baiyue-logistics-chat/add_orders.py
T

12 lines
258 B
Python
Raw Normal View History

import sqlite3
c = sqlite3.connect('history.db')
c.execute('''CREATE TABLE IF NOT EXISTS orders (
id INTEGER PRIMARY KEY AUTOINCREMENT,
phone TEXT,
track_no TEXT,
status TEXT DEFAULT "运输中",
created TEXT
)''')
c.commit()
print("ok")