UNPKG

@jfln/marvin-db

Version:

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

20 lines (15 loc) 462 B
import {Entity, Property} from '@mikro-orm/core' import {BasicUserEntity} from './BasicUserEntity' @Entity({tableName: 'users-badges'}) export class UserBadges extends BasicUserEntity { @Property() badgeName: string public setBadgeName(badgeName: string): UserBadges { this.badgeName = badgeName return this } constructor(guildId: string, userId: string, badgeName: string) { super(guildId, userId) this.badgeName = badgeName } }