UNPKG

@jfln/marvin-db

Version:

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

29 lines (22 loc) 514 B
import {Entity, Property, Enum} from '@mikro-orm/core' import {BaseEntity} from './BaseEntity' @Entity({tableName: 'gifs'}) export class Gif extends BaseEntity { @Property() link: string @Property() name: string public setLink(link: string): this { this.link = link return this } public setName(name: string): this { this.name = name return this } constructor(guildId: string, link: string, name: string) { super(guildId) this.link = link this.name = name } }