Expected behavior
I should be able to search for records on my collection.
Actual behavior
Searching is sending an error
What is the current behavior?
Failure Logs
On server logs:
[forest] π³π³π³ Unexpected error: function lower(uuid) does not exist
On the admin frontend:
Here is the model in /models/countries.js
const Countries = sequelize.define('countries', {
id: {
type: DataTypes.STRING,
primaryKey: true,
},
createdAt: {
type: DataTypes.DATE,
defaultValue: Sequelize.literal('now()'),
},
updatedAt: {
type: DataTypes.DATE,
defaultValue: Sequelize.literal('now()'),
},
name: {
type: DataTypes.STRING,
},
iso2: {
type: DataTypes.STRING,
},
iso3: {
type: DataTypes.STRING,
},
active: {
type: DataTypes.BOOLEAN,
},
matchRate: {
type: DataTypes.INTEGER,
},
matchRateDob: {
type: DataTypes.INTEGER,
field: 'matchRateDOB',
},
photoIdRequired: {
type: DataTypes.BOOLEAN,
defaultValue: true,
},
}, {
tableName: 'countries',
schema: process.env.DATABASE_SCHEMA,
});