Removed created from the Media model

This commit is contained in:
2023-11-09 07:55:36 +01:00
parent 4782bff829
commit ad6b25152f

View File

@ -8,7 +8,6 @@ export interface IMedia extends Model<InferAttributes<IMedia>, InferCreationAttr
assetName: string
assetEnding: string
assetDescription?: string
created?: Date
}
const MediaSchema = sequelize.define<IMedia>('media', {
@ -31,10 +30,6 @@ const MediaSchema = sequelize.define<IMedia>('media', {
assetEnding: {
type: DataTypes.STRING,
defaultValue: "txt"
},
created: {
type: DataTypes.DATE,
defaultValue: Date.now
}
});