Remove unused references to Property
This commit is contained in:
parent
e300d3e780
commit
50039a3a11
@ -1,14 +1,10 @@
|
||||
import { defineEventHandler } from "h3";
|
||||
import connectToDatabase from "~/server/db/mysql";
|
||||
import Property from "~/server/db/mysql/models/Property";
|
||||
|
||||
// Inicializar Sequelize con las configuraciones de Nuxt
|
||||
export default defineEventHandler(async (event) => {
|
||||
const sequelize = await connectToDatabase();
|
||||
|
||||
// Definir el modelo Property
|
||||
Property(sequelize);
|
||||
|
||||
// Sincronizar la base de datos
|
||||
try {
|
||||
await sequelize?.sync({ alter: false }); // O usa { alter: true } para no perder datos existentes.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user