import {Attr, Str, Model, HasOne, Uid} from '@vuex-orm/core' import {NotificationMessage} from "~/models/Core/NotificationMessage"; export class Notification extends Model { static entity = 'notifications' @Uid() id!: number | null @Str('', { nullable: true }) name!: string @HasOne(() => NotificationMessage, 'id') message!: NotificationMessage | null @Str('', { nullable: true }) type!: string @Str('', { nullable: true }) link!: string @Attr({}) notificationUsers!: Array }