Init: bootstrap go module with basic framework
This commit is contained in:
14
models/autoRoleMsg.go
Normal file
14
models/autoRoleMsg.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package models
|
||||
|
||||
import "github.com/uptrace/bun"
|
||||
|
||||
type AutoRoleMsg struct {
|
||||
bun.BaseModel `bun:"table:auto_role_msg"`
|
||||
|
||||
GuildId int `bun:"guild_id,pk"`
|
||||
MessageId string `bun:"message_id,pk"`
|
||||
RoleId string `bun:"role_id,notnull"`
|
||||
Emoji string `bun:"emoji"`
|
||||
|
||||
Guild *Guild `bun:"belongs-to:guild,join:guild_id=id"`
|
||||
}
|
||||
Reference in New Issue
Block a user