mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-24 13:39:35 +02:00
SQLite database. App model and controller
This commit is contained in:
parent
8392c2422a
commit
2acc3b72ec
11 changed files with 1185 additions and 32 deletions
20
models/App.js
Normal file
20
models/App.js
Normal file
|
@ -0,0 +1,20 @@
|
|||
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;
|
Loading…
Add table
Add a link
Reference in a new issue