15 lines
352 B
JavaScript
15 lines
352 B
JavaScript
const Sequelize = require('sequelize');
|
|
const sequelize = require('../assets/utils/database');
|
|
|
|
module.exports = sequelize.define('comment', {
|
|
id: {
|
|
type: Sequelize.INTEGER,
|
|
allowNull: false,
|
|
autoIncrement: true,
|
|
primaryKey: true
|
|
},
|
|
message: {
|
|
type: Sequelize.TEXT,
|
|
allowNull: false
|
|
}
|
|
}); |