UNPKG

@speakr/speakr-module-services

Version:
40 lines (38 loc) 966 B
module.exports = function(sequelize, DataTypes) { let networks = sequelize.define( "networks", { id: { type: DataTypes.INTEGER, allowNull: false, primaryKey: true, autoIncrement: true }, name: { type: DataTypes.STRING, allowNull: false }, created_at: { type: DataTypes.DATE, allowNull: true }, updated_at: { type: DataTypes.DATE, allowNull: true }, updated_at: { type: DataTypes.DATE, allowNull: true }, id_hash: { type: DataTypes.STRING, allowNull: true } }, { underscored: true, paranoid: true } ); return networks; };