fix: remove debug sql

This commit is contained in:
2026-02-02 14:45:30 +08:00
parent e13b25ffcd
commit 2e4d7681b6

View File

@@ -3,19 +3,6 @@ import { Database } from "bun:sqlite";
// 初始化 SQLite 數據庫
const db = new Database("orders.db");
// 創建 orders 表
db.run(`
CREATE TABLE IF NOT EXISTS orders (
id INTEGER PRIMARY KEY AUTOINCREMENT,
customer_name TEXT NOT NULL,
product_name TEXT NOT NULL,
quantity INTEGER NOT NULL,
price REAL NOT NULL,
status TEXT DEFAULT 'pending',
created_at DATETIME DEFAULT CURRENT_TIMESTAMP
)
`);
// 定義類型
interface Order {
id?: number;