mirror of
https://github.com/pawelmalak/flame.git
synced 2024-12-22 09:41:33 +03:00
20 lines
378 B
JavaScript
20 lines
378 B
JavaScript
|
const { Sequelize, 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'
|
||
|
}
|
||
|
});
|
||
|
|
||
|
module.exports = App;
|