I'm trying to use sails js with a SQL Server database, and when try to connect after created a dbo.AREA
model and controller, sails says:
error: Hook failed to load: orm (RequestError: There is already an object named 'area' in the database.)
error: Error encountered while loading Sails core!
error: RequestError: There is already an object named 'area' in the database.
The model code is:
module.exports = {
attributes: {
CODIGO_CC: 'string',
CODIGO_AREA: 'string',
NOMBRE_AREA: 'string',
}
};
and I have another question how can handle the primary keys, because the database doesn't have id
column.
regards