mirror of
https://github.com/zoriya/tide.git
synced 2026-08-15 18:43:19 +00:00
Setup postgresql
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
package models
|
||||
|
||||
import "time";
|
||||
|
||||
type State string
|
||||
const (
|
||||
Stale State = "stale"
|
||||
Downloading State = "downloading"
|
||||
Seeding State = "seeding"
|
||||
Finished State = "finished"
|
||||
)
|
||||
|
||||
type File struct {
|
||||
Name string
|
||||
Priority int
|
||||
Size uint64
|
||||
AvailableSize uint64
|
||||
Path string
|
||||
}
|
||||
|
||||
type Item struct {
|
||||
Id string
|
||||
Name string
|
||||
State State
|
||||
Size uint64
|
||||
AvailableSize uint64
|
||||
Path string
|
||||
AddedDate time.Time
|
||||
Files []File
|
||||
}
|
||||
Reference in New Issue
Block a user