@jfln/marvin-db
Version:
biblioteca de objetos para normalizar o acesso a um banco mongo db
29 lines (22 loc) • 514 B
text/typescript
import {Entity, Property, Enum} from '@mikro-orm/core'
import {BaseEntity} from './BaseEntity'
export class Gif extends BaseEntity {
link: string
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
}
}