flame/models/Bookmark.js

21 lines
391 B
JavaScript
Raw Normal View History

2021-05-22 20:04:34 +03:00
const { DataTypes } = require('sequelize');
const { sequelize } = require('../db');
const Bookmark = sequelize.define('Bookmark', {
name: {
type: DataTypes.STRING,
allowNull: false
},
url: {
type: DataTypes.STRING,
allowNull: false
},
categoryId: {
type: DataTypes.INTEGER,
allowNull: false
}
}, {
tableName: 'bookmarks'
});
module.exports = Bookmark;