mirror of
https://github.com/pawelmalak/flame.git
synced 2024-12-19 08:02:16 +03:00
25 lines
455 B
JavaScript
25 lines
455 B
JavaScript
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
|
|
},
|
|
icon: {
|
|
type: DataTypes.STRING,
|
|
defaultValue: ''
|
|
}
|
|
}, {
|
|
tableName: 'bookmarks'
|
|
});
|
|
|
|
module.exports = Bookmark; |