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, - }, -};