mirror of
https://github.com/KevinMidboe/leifsbackend.git
synced 2025-10-29 17:50:20 +00:00
Image model gets a new folder column
This commit is contained in:
@@ -16,13 +16,17 @@ module.exports = (sequelize, DataTypes) => {
|
|||||||
type: DataTypes.TEXT,
|
type: DataTypes.TEXT,
|
||||||
allowNull: true
|
allowNull: true
|
||||||
},
|
},
|
||||||
size: {
|
variations: {
|
||||||
type: DataTypes.DOUBLE,
|
type: DataTypes.JSON,
|
||||||
allowNull: true
|
allowNull: true
|
||||||
},
|
},
|
||||||
album_order: {
|
album_order: {
|
||||||
type: DataTypes.INTEGER,
|
type: DataTypes.INTEGER,
|
||||||
allowNull: true
|
allowNull: true
|
||||||
|
},
|
||||||
|
folder: {
|
||||||
|
type: DataTypes.TEXT,
|
||||||
|
allowNull: false
|
||||||
}
|
}
|
||||||
}, {});
|
}, {});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user