From c917a69dae1024b06a8ae84bb8a99597c9b0c3d9 Mon Sep 17 00:00:00 2001 From: Kunthawat Greethong Date: Mon, 9 Mar 2026 20:53:23 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Remove=20unused=20DB=20files=20(?= =?UTF-8?q?static=20site=20only)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dealplustech-astro/.env.example | 13 ------------- dealplustech-astro/db/config.ts | 22 ---------------------- 2 files changed, 35 deletions(-) delete mode 100644 dealplustech-astro/.env.example delete mode 100644 dealplustech-astro/db/config.ts diff --git a/dealplustech-astro/.env.example b/dealplustech-astro/.env.example deleted file mode 100644 index e8c5a551a..000000000 --- a/dealplustech-astro/.env.example +++ /dev/null @@ -1,13 +0,0 @@ -# Admin -ADMIN_PASSWORD=dealplustech - -# Database (SQLite file path) -ASTRO_DB_REMOTE_URL=file:./data/consent.db - -# Umami Analytics (fill in later) -# UMAMI_WEBSITE_ID= -# UMAMI_DOMAIN=analytics.yourdomain.com - -# Site Configuration -SITE_URL=https://dealplustech.co.th -SITE_NAME="Deal Plus Tech" diff --git a/dealplustech-astro/db/config.ts b/dealplustech-astro/db/config.ts deleted file mode 100644 index 713098e65..000000000 --- a/dealplustech-astro/db/config.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { defineTable, column, NOW } from 'astro:db'; - -const ConsentLog = defineTable({ - columns: { - id: column.number({ primaryKey: true, autoIncrement: true }), - sessionId: column.text({ unique: true }), - timestamp: column.date({ default: NOW }), - locale: column.text({ default: 'th' }), - essential: column.boolean({ default: true }), - analytics: column.boolean({ default: false }), - marketing: column.boolean({ default: false }), - policyVersion: column.text({ default: '1.0' }), - ipHash: column.text(), - userAgent: column.text(), - }, -}); - -export default { - tables: { - ConsentLog, - }, -};