feat: fix alot of issues

This commit is contained in:
2026-10-08 00:25:30 +02:00
parent 8b1e38cb4d
commit e5580767a5
35 changed files with 127 additions and 615 deletions
+2 -2
View File
@@ -21,9 +21,9 @@ async function main() {
const venueId = uuidv4();
await prisma.venue.create({
data: { id: venueId, name: 'KoolTab Demo Bar' },
data: { id: venueId, name: 'KoolTap Demo Bar' },
});
console.log(`Created venue: KoolTab Demo Bar (${venueId})`);
console.log(`Created venue: KoolTap Demo Bar (${venueId})`);
const adminHash = await bcrypt.hash('Admin123!', 10);
await prisma.clientUser.create({
+2 -2
View File
@@ -23,9 +23,9 @@ async function main() {
// Create venue
const venueId = uuidv4();
await prisma.venue.create({
data: { id: venueId, name: 'KoolTab Demo Bar' },
data: { id: venueId, name: 'KoolTap Demo Bar' },
});
console.log(`Created venue: KoolTab Demo Bar (${venueId})`);
console.log(`Created venue: KoolTap Demo Bar (${venueId})`);
// Create admin user
const adminHash = await bcrypt.hash('Admin123!', 10);
+2 -2
View File
@@ -10,7 +10,7 @@ const ADMIN_EMAIL = process.env.SETUP_ADMIN_EMAIL || process.argv[3] || 'admin@e
const ADMIN_PASSWORD = process.env.SETUP_ADMIN_PASSWORD || process.argv[4] || 'admin123';
async function main() {
console.log('=== KoolTab Production Setup ===\n');
console.log('=== KoolTap Production Setup ===\n');
// Wipe everything
await prisma.auditLog.deleteMany();
@@ -49,7 +49,7 @@ async function main() {
console.log(` Admin: ${ADMIN_EMAIL}`);
console.log(` Password: ${ADMIN_PASSWORD}`);
console.log('\nSave the Venue ID — the Flutter app needs it to find your venue.');
console.log('Login at https://kooltab.com with the admin credentials above.');
console.log('Login at https://kooltap.com with the admin credentials above.');
await prisma.$disconnect();
}