-
-
Notifications
You must be signed in to change notification settings - Fork 78
/
torrents_torrent_sources.gen.go
32 lines (26 loc) · 1.25 KB
/
torrents_torrent_sources.gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"database/sql"
"time"
"github.com/bitmagnet-io/bitmagnet/internal/protocol"
)
const TableNameTorrentsTorrentSource = "torrents_torrent_sources"
// TorrentsTorrentSource mapped from table <torrents_torrent_sources>
type TorrentsTorrentSource struct {
Source string `gorm:"column:source;primaryKey;<-:create" json:"source"`
InfoHash protocol.ID `gorm:"column:info_hash;primaryKey;<-:create" json:"infoHash"`
ImportID NullString `gorm:"column:import_id" json:"importId"`
Seeders NullUint `gorm:"column:seeders" json:"seeders"`
Leechers NullUint `gorm:"column:leechers" json:"leechers"`
PublishedAt sql.NullTime `gorm:"column:published_at" json:"publishedAt"`
CreatedAt time.Time `gorm:"column:created_at;not null;<-:create" json:"createdAt"`
UpdatedAt time.Time `gorm:"column:updated_at;not null" json:"updatedAt"`
TorrentSource TorrentSource `gorm:"foreignKey:Source" json:"torrent_source"`
}
// TableName TorrentsTorrentSource's table name
func (*TorrentsTorrentSource) TableName() string {
return TableNameTorrentsTorrentSource
}