I have the following model definition:
module.exports = {
attributes: {
id: {
type: 'bigserial',
primaryKey: true
},
email: {
type: 'email',
required: true,
unique: true
}
}
When I lifed sails, it didn't give me warning about "bigserial" data type, even though it is not officially documented.
However, on the table created on Postgresql, the column "id" has a type "text". How do I have bigserial primary key?