🔧 Remove unused DB files (static site only)

This commit is contained in:
Kunthawat Greethong committed 2026-03-09 20:53:23 +07:00
1 parent c8a9a38430
commit c917a69dae
2 files changed
-35

No files matched your search

-13
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"
-22
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,
},
};