Merged in feature/entitylogs (pull request #67)

Query Version Update
This commit is contained in:
Michael McGuinness
2025-02-14 18:43:26 +00:00
parent a6991079de
commit 750abe1be3
25 changed files with 424 additions and 209 deletions
+30 -12
View File
@@ -68,10 +68,9 @@ type Client struct {
}
type Clientcansync struct {
ID pgtype.UUID `db:"id"`
Clientid pgtype.UUID `db:"clientid"`
Cansync bool `db:"cansync"`
Addedat pgtype.Timestamp `db:"addedat"`
ID pgtype.UUID `db:"id"`
Clientid pgtype.UUID `db:"clientid"`
Cansync bool `db:"cansync"`
}
type Collector struct {
@@ -162,17 +161,14 @@ type Job struct {
}
type Jobcansync struct {
ID pgtype.UUID `db:"id"`
Jobid pgtype.UUID `db:"jobid"`
Cansync bool `db:"cansync"`
Addedat pgtype.Timestamp `db:"addedat"`
ID pgtype.UUID `db:"id"`
Jobid pgtype.UUID `db:"jobid"`
Cansync bool `db:"cansync"`
}
type Query struct {
ID pgtype.UUID `db:"id"`
Latestversion int32 `db:"latestversion"`
Activeversion int32 `db:"activeversion"`
Type Querytype `db:"type"`
ID pgtype.UUID `db:"id"`
Type Querytype `db:"type"`
}
type Queryactivedependency struct {
@@ -180,6 +176,12 @@ type Queryactivedependency struct {
Requiredqueryid pgtype.UUID `db:"requiredqueryid"`
}
type Queryactiveversion struct {
ID pgtype.UUID `db:"id"`
Queryid pgtype.UUID `db:"queryid"`
Versionid int32 `db:"versionid"`
}
type Queryconfig struct {
ID pgtype.UUID `db:"id"`
Queryid pgtype.UUID `db:"queryid"`
@@ -188,6 +190,22 @@ type Queryconfig struct {
Removedversion *int32 `db:"removedversion"`
}
type Querycurrentactiveversion struct {
Queryid pgtype.UUID `db:"queryid"`
ID int32 `db:"id"`
}
type Querylatestversion struct {
Queryid pgtype.UUID `db:"queryid"`
ID int32 `db:"id"`
}
type Queryversion struct {
Queryid pgtype.UUID `db:"queryid"`
ID int32 `db:"id"`
Addedat pgtype.Timestamp `db:"addedat"`
}
type Requiredquery struct {
ID pgtype.UUID `db:"id"`
Queryid pgtype.UUID `db:"queryid"`