Add not null contraint to media type

pull/4/head
trivernis 5 years ago
parent 76c0574c74
commit 5f15d4b3ba

@ -38,7 +38,8 @@ export class Media extends Model<Media> {
/** /**
* The type of media * The type of media
*/ */
@Column({type: sqz.ENUM, values: ["IMAGE", "VIDEO"]}) @NotNull
@Column({type: sqz.ENUM, values: ["IMAGE", "VIDEO"], allowNull: false})
public type: MediaType; public type: MediaType;
/** /**

Loading…
Cancel
Save