import { DatabaseEntity } from "../../../core/entity/database-entity.decorator" ; import { Note } from "../../notes/model/note" ; @ DatabaseEntity ( "EventNote" ) export class EventNote extends Note { static create ( date , subject = "" ) { const instance = new EventNote ( ) ; instance . date = date ; instance . subject = subject ; return instance ; } }