model

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReceivedFile

type ReceivedFile struct {
	gorm.Model
	// FileUniqueID 和 FileID 在数据库中均不具有唯一性
	// 如需确定唯一一行, 使用 ChatID + MessageID
	FileUniqueID   string `gorm:"index"`
	FileID         string `gorm:"index"`
	Processing     bool
	FileName       string
	FilePath       string
	FileSize       int64
	MediaGroupID   string
	ChatID         int64
	MessageID      int
	ReplyMessageID int
}

type User

type User struct {
	gorm.Model
	UserID         int64 `gorm:"uniqueIndex"`
	Silent         bool
	DefaultStorage string
}

Jump to

Keyboard shortcuts

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