fix: remove debug sql
This commit is contained in:
13
index.ts
13
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;
|
||||
|
||||
Reference in New Issue
Block a user