database

package
v0.0.0-...-a94a34d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2023 License: OSL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB *bun.DB
)

Functions

func InitDB

func InitDB(config *common.DatabaseConfig)

Types

type Mute

type Mute struct {
	UserID  discord.UserID  `bun:",notnull"`
	RoleID  discord.RoleID  `bun:",notnull"`
	GuildID discord.GuildID `bun:",notnull"`
	Reason  string          `bun:",notnull"`
	EndDate int64
}

type ScamPhrase

type ScamPhrase struct {
	Phrase string `bun:",notnull,unique"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL