pkgdash/entities.go
Vasiliy Tolstov 5aec0a0895 initial import
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2023-08-03 00:30:19 +03:00

25 lines
648 B
Go

package main
type DBPackage struct {
Name string `db:"name"` // service name, last component path
URL string `db:"url"` // scm url
Modules []int64 `db:"modules"` // parsed go.mod modules
ID int64 `db:"id"` // package id
Issues []int64 `db:"issues"` // issues list
}
type DBModule struct {
Name string `db:"name"` // module name
Version string `db:"version"` // module
ID int64 `db:"id"`
Package int64 `db:"package"`
}
type DBIssue struct {
ID int64 `db:"id"`
Package int64 `db:"package"`
Modules []int64 `db:"modules"`
Status int64 `db:"status"`
Desc string `db:"desc"`
}