mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-23 05:19:37 +02:00
* initial support for app categories in docker integration * fixed readme examples for docker integration and some fixes to integration * fix obtaining category from container label * hide edit actions for default categories (such as Docker)
27 lines
No EOL
561 B
JavaScript
27 lines
No EOL
561 B
JavaScript
const { DataTypes } = require('sequelize');
|
|
const { sequelize } = require('../db');
|
|
|
|
const Category = sequelize.define('Category', {
|
|
name: {
|
|
type: DataTypes.STRING,
|
|
allowNull: false
|
|
},
|
|
type: {
|
|
type: DataTypes.STRING,
|
|
allowNull: false,
|
|
defaultValue: 'bookmarks' // Default value for database migration only
|
|
},
|
|
isPinned: {
|
|
type: DataTypes.BOOLEAN,
|
|
defaultValue: false
|
|
},
|
|
orderId: {
|
|
type: DataTypes.INTEGER,
|
|
allowNull: true,
|
|
defaultValue: null
|
|
}
|
|
}, {
|
|
tableName: 'categories'
|
|
});
|
|
|
|
module.exports = Category; |