package
Version:
v0.0.0-...-5e8511f
Opens a new window with list of versions in this module.
Published: Feb 15, 2023
License: AGPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
type DownloadLimit struct {
ID int64 `gorm:"primaryKey;autoIncrement"`
UserID uint64 `gorm:"index:download_limit_user_id_idx,unique"`
User *User
Unlimited bool
RateLimit int64
Burst int64
}
type UploadLimit struct {
ID int64 `gorm:"primaryKey;autoIncrement"`
UserID uint64 `gorm:"index:upload_limit_user_id_idx,unique"`
User *User
Unlimited bool
RateLimit int64
Burst int64
}
type User struct {
ID uint64 `gorm:"primaryKey;autoIncrement"`
Email string `gorm:"index:idx_email,unique"`
PasswordHash []byte
CreatedAt time.Time `gorm:"autoCreateTime"`
Admin bool
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.