feat: add city/state/country to complex, new settings page with sidebar, and Biome linting
- Added city, state, and country optional fields to Complex model - Updated onboarding to include optional location fields - Created new settings page with sidebar navigation (Datos del Complejo, Canchas) - Replaced ESLint with Biome for frontend and backend linting - Added parallel dev script with concurrently - Migrated register-routes to use direct app.route() pattern
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
import 'dotenv/config'
|
||||
import { PrismaPg } from '@prisma/adapter-pg'
|
||||
import { v7 as uuidv7 } from 'uuid'
|
||||
import { PrismaClient } from '../src/generated/prisma/client'
|
||||
import { planSeeds } from './plans.seed-data'
|
||||
import { sportSeeds } from './sports.seed-data'
|
||||
import 'dotenv/config';
|
||||
import { PrismaPg } from '@prisma/adapter-pg';
|
||||
import { v7 as uuidv7 } from 'uuid';
|
||||
import { PrismaClient } from '../src/generated/prisma/client';
|
||||
import { planSeeds } from './plans.seed-data';
|
||||
import { sportSeeds } from './sports.seed-data';
|
||||
|
||||
const databaseUrl = process.env.DATABASE_URL
|
||||
const databaseUrl = process.env.DATABASE_URL;
|
||||
|
||||
if (!databaseUrl) {
|
||||
throw new Error('Missing DATABASE_URL in environment for seeding.')
|
||||
throw new Error('Missing DATABASE_URL in environment for seeding.');
|
||||
}
|
||||
|
||||
const adapter = new PrismaPg({
|
||||
connectionString: databaseUrl,
|
||||
})
|
||||
});
|
||||
|
||||
const prisma = new PrismaClient({ adapter })
|
||||
const prisma = new PrismaClient({ adapter });
|
||||
|
||||
async function run() {
|
||||
for (const plan of planSeeds) {
|
||||
@@ -33,7 +33,7 @@ async function run() {
|
||||
price: plan.price,
|
||||
rules: plan.rules,
|
||||
},
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
for (const sport of sportSeeds) {
|
||||
@@ -49,16 +49,16 @@ async function run() {
|
||||
slug: sport.slug,
|
||||
isActive: true,
|
||||
},
|
||||
})
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
run()
|
||||
.then(async () => {
|
||||
await prisma.$disconnect()
|
||||
await prisma.$disconnect();
|
||||
})
|
||||
.catch(async (error) => {
|
||||
console.error(error)
|
||||
await prisma.$disconnect()
|
||||
process.exit(1)
|
||||
})
|
||||
console.error(error);
|
||||
await prisma.$disconnect();
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user