Setup postgresql

This commit is contained in:
2023-09-16 16:57:57 +02:00
parent 875ccd7336
commit aea27c6181
10 changed files with 148 additions and 5 deletions
+30
View File
@@ -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
}