🔧 Remove unused DB files (static site only)

This commit is contained in:
Kunthawat Greethong
2026-03-09 20:53:23 +07:00
parent c8a9a38430
commit c917a69dae
2 changed files with 0 additions and 35 deletions

View File

@@ -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"

View File

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