mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-05-11 18:10:01 +08:00
refactor: complete core features
This commit is contained in:
21
types/model.go
Normal file
21
types/model.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package types
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
type ReceivedFile struct {
|
||||
gorm.Model
|
||||
Processing bool
|
||||
ChatID int64
|
||||
MessageID int
|
||||
ReplyMessageID int
|
||||
FileName string
|
||||
}
|
||||
|
||||
type User struct {
|
||||
gorm.Model
|
||||
UserID int64 `gorm:"uniqueIndex"`
|
||||
Silent bool
|
||||
DefaultStorage string
|
||||
}
|
||||
Reference in New Issue
Block a user