add media page + backend + minor changes to media related stuff & sidebar
This commit is contained in:
1 parent
c46309e458
commit
eba9721a3c
20 files changed
+597
-73
No files matched your search
@@ -5,18 +5,20 @@ const Media = sequelize.define("media",
|
||||
{
|
||||
id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true },
|
||||
|
||||
entry_id: {
|
||||
entryId: {
|
||||
type: DataTypes.INTEGER,
|
||||
references: {
|
||||
model: 'Entries',
|
||||
key: 'id'
|
||||
}
|
||||
},
|
||||
field: 'entry_id'
|
||||
},
|
||||
|
||||
type: { type: DataTypes.STRING(50) },
|
||||
path: { type: DataTypes.STRING(200) },
|
||||
is_local: { type: DataTypes.BOOLEAN },
|
||||
is_selected: { type: DataTypes.BOOLEAN },
|
||||
isLocal: { type: DataTypes.BOOLEAN, field: 'is_local' },
|
||||
isSelected: { type: DataTypes.BOOLEAN, field: 'is_selected', defaultValue: false },
|
||||
isCustom: { type: DataTypes.BOOLEAN, field: 'is_custom', defaultValue: false },
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user