UNPKG

@jfln/marvin-db

Version:

biblioteca de objetos para normalizar o acesso a um banco mongo db

27 lines (22 loc) 558 B
import {Entity, Property, Enum} from '@mikro-orm/core' import {BasicEventEntity} from './BasicEventEntity' @Entity({tableName: 'custom-event-participants'}) export class CustomEventParticipants extends BasicEventEntity { @Property() date: Date public setDate(date: Date): this { this.date = date return this } constructor( guildId: string, messageId: string, userId: string, username: string, eventId: string, date: Date, ) { super(guildId, messageId, userId, username, eventId) this.date = date } }