flame/models/App.js

31 lines
555 B
JavaScript
Raw Normal View History

2021-05-15 16:33:59 +00:00
const { DataTypes } = require('sequelize');
const { sequelize } = require('../db');
const App = sequelize.define('App', {
name: {
type: DataTypes.STRING,
allowNull: false
},
url: {
type: DataTypes.STRING,
allowNull: false
},
icon: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: 'cancel'
2021-05-12 15:31:25 +00:00
},
isPinned: {
type: DataTypes.BOOLEAN,
defaultValue: false
},
orderId: {
type: DataTypes.INTEGER,
allowNull: true,
defaultValue: null
}
2021-05-23 15:18:04 +00:00
}, {
tableName: 'apps'
});
module.exports = App;