Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Torrents ¶
type Torrents struct { gorm.Model ID uint64 `gorm:"column:id;primary_key;AUTO_INCREMENT"` UserID uint64 `gorm:"column:uploaded_by;NOT NULL"` User User `gorm:"foreignKey:UserID"` Description string `gorm:"column:description;NOT NULL"` Nfo string `gorm:"column:nfo;NOT NULL;type:LONGTEXT"` TypesID uint64 `gorm:"column:types_id;NOT NULL"` Types Types `gorm:"foreignKey:TypesID"` }
type User ¶
type User struct { gorm.Model ID uint64 `gorm:"column:id;primary_key;AUTO_INCREMENT"` Username string `gorm:"column:username;NOT NULL;unique"` Password string `gorm:"column:password;type:char(60);NOT NULL"` Email string `gorm:"column:email;NOT NULL;unique"` Banned string `gorm:"column:banned;type:varchar(255)"` }
type YagpttRoles ¶
type YagpttRoles struct { ID uint64 `gorm:"column:id;primary_key;AUTO_INCREMENT"` Name string `gorm:"column:name;NOT NULL;type:varchar(255)"` DownMultiply uint64 `gorm:"column:down_multiply;default:1;NOT NULL"` UpMultiply uint64 `gorm:"column:up_multiply;default:1;NOT NULL"` DownloadEnabled bool `gorm:"column:download_enabled;default:1"` UploadEnabled bool `gorm:"column:upload_enabled;default:1"` }
type YagpttTorrents ¶
type YagpttTorrents struct { InfoHash []byte `gorm:"column:info_hash;type:binary(20);unique;primary_key;AUTO_INCREMENT"` TorrentId uint64 `gorm:"column:torrent_id;NOT NULL"` Torrents Torrents `gorm:"foreignKey:TorrentId"` Title string `gorm:"column:title;NOT NULL;unique;type:varchar(255)"` IsEnabled bool `gorm:"column:is_enabled;default:1;NOT NULL"` Seeder uint64 `gorm:"column:seeder;default:0;NOT NULL"` Leecher uint64 `gorm:"column:leecher;default:0;NOT NULL"` Completed uint64 `gorm:"column:completed;default:0;NOT NULL"` DownMultiply uint64 `gorm:"column:down_multiply;default:1;NOT NULL"` UpMultiply uint64 `gorm:"column:up_multiply;default:1;NOT NULL"` Size uint64 `gorm:"column:size;default:0;NOT NULL"` }
type YagpttUsers ¶
type YagpttUsers struct { UserID uint64 `gorm:"column:user_id;primary_ke;AUTO_INCREMENT"` User User `gorm:"foreignKey:UserID"` Downloaded uint64 `gorm:"column:downloaded;default:0;NOT NULL"` Uploaded uint64 `gorm:"column:uploaded;default:0;NOT NULL"` Passkey string `gorm:"column:passkey;type:char(40);NOT NULL;unique"` DownloadEnabled bool `gorm:"column:download_enabled;default:1;NOT NULL"` UploadEnabled bool `gorm:"column:upload_enabled;default:1;NOT NULL"` IsDeleted bool `gorm:"column:is_deleted;default:0;NOT NULL"` DownloadedReal uint64 `gorm:"column:downloaded_real;default:0;NOT NULL"` UploadedReal uint64 `gorm:"column:uploaded_real;default:0;NOT NULL"` RolesID uint64 `gorm:"column:roles_id;NOT NULL"` YagpttRoles YagpttRoles `gorm:"foreignKey:RolesID"` }
Click to show internal directories.
Click to hide internal directories.