UNPKG

@jfln/marvin-db

Version:

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

20 lines (15 loc) 420 B
import {Entity, Property, Enum} from '@mikro-orm/core' import {BaseEntity} from './BaseEntity' @Entity({tableName: 'challenges'}) export class Challenge extends BaseEntity { @Property() challenge: string public setChallenge(challenge: string): this { this.challenge = challenge return this } constructor(challenge: string, guildId: string) { super(guildId) this.challenge = challenge } }