From 2e4d7681b66118ce581e480d68cf344a3f9f9d66 Mon Sep 17 00:00:00 2001 From: ddmt Date: Mon, 2 Feb 2026 14:45:30 +0800 Subject: [PATCH] fix: remove debug sql --- index.ts | 13 ------------- 1 file changed, 13 deletions(-) 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;