@jfln/marvin-db
Version:
biblioteca de objetos para normalizar o acesso a um banco mongo db
19 lines (14 loc) • 363 B
text/typescript
import {Property} from '@mikro-orm/core'
import {BaseEntity} from '../BaseEntity'
export abstract class BasicUserEntity extends BaseEntity {
()
userId: string
public setUserId(userId: string): this {
this.userId = userId
return this
}
constructor(guildId: string, userId: string) {
super(guildId)
this.userId = userId
}
}