🔧 Remove unused DB files (static site only)
This commit is contained in:
@@ -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"
|
|
||||||
@@ -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,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
Reference in New Issue
Block a user