yes here it is :
// This model was generated by Lumber. However, you remain in control of your models.
// Learn how here: https://docs.forestadmin.com/documentation/v/v6/reference-guide/models/enrich-your-models
module.exports = (sequelize, DataTypes) => {
const { Sequelize } = sequelize;
// This section contains the fields of your model, mapped to your table's columns.
// Learn more here: https://docs.forestadmin.com/documentation/v/v6/reference-guide/models/enrich-your-models#declaring-a-new-field-in-a-model
const Projects = sequelize.define(
"projects",
{
projectType: {
type: DataTypes.ENUM("buy", "sell"),
field: "project_type",
allowNull: false,
},
fullAddress: {
type: DataTypes.STRING,
field: "full_address",
},
address: {
type: DataTypes.STRING,
},
// ... tens of other fields here
createdAt: {
type: DataTypes.DATE,
field: "created_at",
},
updatedAt: {
type: DataTypes.DATE,
field: "updated_at",
},
deletedAt: {
type: DataTypes.DATE,
},
},
{
tableName: "projects",
schema: process.env.DATABASE_SCHEMA,
}
);
// This section contains the relationships for this model. See: https://docs.forestadmin.com/documentation/v/v6/reference-guide/relationships#adding-relationships.
Projects.associate = (models) => {
// ... many associations here
};
return Projects;
};