@speakr/speakr-module-services
Version:
SPEAKR Shared Service Module
36 lines (33 loc) • 666 B
JavaScript
module.exports = function(sequelize, DataTypes) {
let devices = sequelize.define('devices', {
id: {
type: DataTypes.INTEGER,
allowNull: false,
primaryKey: true,
autoIncrement: true
},
influencer_id: {
type: DataTypes.INTEGER,
allowNull: true
},
device_token: {
type: DataTypes.STRING,
allowNull: true
},
created_at: {
type: DataTypes.DATE,
allowNull: false
},
updated_at: {
type: DataTypes.DATE,
allowNull: false
},
endpoint_arn: {
type: DataTypes.STRING,
allowNull: true
}
}, {
underscored: true
});
return devices;
};