Removed created from the Media model
This commit is contained in:
@ -8,7 +8,6 @@ export interface IMedia extends Model<InferAttributes<IMedia>, InferCreationAttr
|
|||||||
assetName: string
|
assetName: string
|
||||||
assetEnding: string
|
assetEnding: string
|
||||||
assetDescription?: string
|
assetDescription?: string
|
||||||
created?: Date
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const MediaSchema = sequelize.define<IMedia>('media', {
|
const MediaSchema = sequelize.define<IMedia>('media', {
|
||||||
@ -31,10 +30,6 @@ const MediaSchema = sequelize.define<IMedia>('media', {
|
|||||||
assetEnding: {
|
assetEnding: {
|
||||||
type: DataTypes.STRING,
|
type: DataTypes.STRING,
|
||||||
defaultValue: "txt"
|
defaultValue: "txt"
|
||||||
},
|
|
||||||
created: {
|
|
||||||
type: DataTypes.DATE,
|
|
||||||
defaultValue: Date.now
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user