@speakr/speakr-module-services
Version:
SPEAKR Shared Service Module
27 lines (25 loc) • 516 B
JavaScript
module.exports = function(sequelize, DataTypes) {
let ethnicities = sequelize.define('ethnicities', {
id: {
type: DataTypes.INTEGER,
allowNull: false,
primaryKey: true,
autoIncrement: true
},
name: {
type: DataTypes.STRING,
allowNull: true
},
created_at: {
type: DataTypes.DATE,
allowNull: false
},
updated_at: {
type: DataTypes.DATE,
allowNull: false
}
}, {
tableName: 'ethnicities'
});
return ethnicities;
};