-
Notifications
You must be signed in to change notification settings - Fork 0
/
belongsto_owner.go
28 lines (24 loc) · 1.13 KB
/
belongsto_owner.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Code generated by badaas-cli v0.0.0, DO NOT EDIT.
package conditions
import (
condition "github.com/FrancoLiberali/cql/condition"
model "github.com/FrancoLiberali/cql/model"
belongsto "github.com/FrancoLiberali/cql/cli/cmd/gen/conditions/tests/belongsto"
"time"
)
type ownerConditions struct {
ID condition.Field[belongsto.Owner, model.UUID]
CreatedAt condition.Field[belongsto.Owner, time.Time]
UpdatedAt condition.Field[belongsto.Owner, time.Time]
DeletedAt condition.Field[belongsto.Owner, time.Time]
}
var Owner = ownerConditions{
CreatedAt: condition.Field[belongsto.Owner, time.Time]{Name: "CreatedAt"},
DeletedAt: condition.Field[belongsto.Owner, time.Time]{Name: "DeletedAt"},
ID: condition.Field[belongsto.Owner, model.UUID]{Name: "ID"},
UpdatedAt: condition.Field[belongsto.Owner, time.Time]{Name: "UpdatedAt"},
}
// Preload allows preloading the Owner when doing a query
func (ownerConditions ownerConditions) Preload() condition.Condition[belongsto.Owner] {
return condition.NewPreloadCondition[belongsto.Owner](ownerConditions.ID, ownerConditions.CreatedAt, ownerConditions.UpdatedAt, ownerConditions.DeletedAt)
}