25 lines
648 B
Go
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"`
|
|
}
|