flame/models/App.js

26 lines
464 B
JavaScript
Raw Normal View History

2021-05-15 19:33:59 +03: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 18:31:25 +03:00
},
isPinned: {
type: DataTypes.BOOLEAN,
defaultValue: false
}
2021-05-23 18:18:04 +03:00
}, {
tableName: 'apps'
});
module.exports = App;