UNPKG

@jfln/marvin-db

Version:

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

27 lines (22 loc) 542 B
import {Entity, Property, Enum} from '@mikro-orm/core' import {BasicEventEntity} from './BasicEventEntity' @Entity({tableName: 'drawn-event-votes'}) export class DrawnEventVotes 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 } }