UNPKG

@jfln/marvin-db

Version:

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

38 lines (29 loc) 751 B
import {Entity, Property, Enum} from '@mikro-orm/core' import {BaseEntity} from '../BaseEntity' @Entity({tableName: 'setting-vents'}) export class SettingsVent extends BaseEntity { @Property() color: string @Property() comment: string @Property() number: number public setColor(color: string): SettingsVent { this.color = color return this } public setComment(comment: string): SettingsVent { this.comment = comment return this } public setNumber(number: number): SettingsVent { this.number = number return this } constructor(guildId: string, color: string, comment: string, number: number) { super(guildId) this.color = color this.comment = comment this.number = number } }