@jfln/marvin-db
Version:
biblioteca de objetos para normalizar o acesso a um banco mongo db
113 lines (90 loc) • 2.35 kB
text/typescript
import {Entity, Property, Enum} from '@mikro-orm/core'
import {BaseEntity} from '../BaseEntity'
export class CustomEvent extends BaseEntity {
addReaction: boolean
autoDeleteMessage: boolean
onlyText: boolean
multipleParticipation: boolean
status: boolean
channelId: string
result: string
tagParticipation: string
title: string
timeAutoDelete: number
public setAddReaction(addReaction: boolean): this {
this.addReaction = addReaction
return this
}
public setAutoDeleteMessage(autoDeleteMessage: boolean): this {
this.autoDeleteMessage = autoDeleteMessage
return this
}
public setOnlyText(onlyText: boolean): this {
this.onlyText = onlyText
return this
}
public setMultipleParticipation(multipleParticipation: boolean): this {
this.multipleParticipation = multipleParticipation
return this
}
public setStatus(status: boolean): this {
this.status = status
return this
}
public setChannelId(channelId: string): this {
this.channelId = channelId
return this
}
public setResult(result: string): this {
this.result = result
return this
}
public setTagParticipation(tagParticipation: string): this {
this.tagParticipation = tagParticipation
return this
}
public setTitle(title: string): this {
this.title = title
return this
}
public setTimeAutoDelete(timeAutoDelete: number): this {
this.timeAutoDelete = timeAutoDelete
return this
}
constructor(
guildId: string,
addReaction: boolean,
autoDeleteMessage: boolean,
onlyText: boolean,
multipleParticipation: boolean,
status: boolean,
channelId: string,
result: string,
tagParticipation: string,
title: string,
timeAutoDelete: number,
) {
super(guildId)
this.addReaction = addReaction
this.autoDeleteMessage = autoDeleteMessage
this.onlyText = onlyText
this.multipleParticipation = multipleParticipation
this.status = status
this.channelId = channelId
this.result = result
this.tagParticipation = tagParticipation
this.title = title
this.timeAutoDelete = timeAutoDelete
}
}