19 lines
432 B
JavaScript
19 lines
432 B
JavaScript
const Sequelize = require('sequelize');
|
|
const sequelize = require('../assets/utils/database');
|
|
|
|
module.exports = sequelize.define('categorie', {
|
|
id: {
|
|
type: Sequelize.INTEGER,
|
|
allowNull: false,
|
|
autoIncrement: true,
|
|
primaryKey: true
|
|
},
|
|
name: {
|
|
type: Sequelize.STRING,
|
|
allowNull: false,
|
|
},
|
|
color: {
|
|
type: Sequelize.STRING,
|
|
allowNull: false,
|
|
}
|
|
}); |