1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-19 19:49:37 +02:00
flame/models/App.js

24 lines
439 B
JavaScript
Raw Normal View History

2021-05-15 18:33:59 +02: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 17:31:25 +02:00
},
isPinned: {
type: DataTypes.BOOLEAN,
defaultValue: false
}
});
module.exports = App;