@jfln/marvin-db
Version:
biblioteca de objetos para normalizar o acesso a um banco mongo db
20 lines (15 loc) • 420 B
text/typescript
import {Entity, Property, Enum} from '@mikro-orm/core'
import {BaseEntity} from './BaseEntity'
export class Challenge extends BaseEntity {
challenge: string
public setChallenge(challenge: string): this {
this.challenge = challenge
return this
}
constructor(challenge: string, guildId: string) {
super(guildId)
this.challenge = challenge
}
}