diff --git a/index.ts b/index.ts index d356f03..6ab8792 100644 --- a/index.ts +++ b/index.ts @@ -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;