-
Notifications
You must be signed in to change notification settings - Fork 0
/
goembedded.go
32 lines (28 loc) · 1.62 KB
/
goembedded.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
29
30
31
32
// 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"
goembedded "github.com/FrancoLiberali/cql/cli/cmd/gen/conditions/tests/goembedded"
"time"
)
type goEmbeddedConditions struct {
ID condition.Field[goembedded.GoEmbedded, model.UIntID]
CreatedAt condition.Field[goembedded.GoEmbedded, time.Time]
UpdatedAt condition.Field[goembedded.GoEmbedded, time.Time]
DeletedAt condition.Field[goembedded.GoEmbedded, time.Time]
Int condition.Field[goembedded.GoEmbedded, int]
ToBeEmbeddedInt condition.Field[goembedded.GoEmbedded, int]
}
var GoEmbedded = goEmbeddedConditions{
CreatedAt: condition.Field[goembedded.GoEmbedded, time.Time]{Name: "CreatedAt"},
DeletedAt: condition.Field[goembedded.GoEmbedded, time.Time]{Name: "DeletedAt"},
ID: condition.Field[goembedded.GoEmbedded, model.UIntID]{Name: "ID"},
Int: condition.Field[goembedded.GoEmbedded, int]{Name: "Int"},
ToBeEmbeddedInt: condition.Field[goembedded.GoEmbedded, int]{Name: "Int"},
UpdatedAt: condition.Field[goembedded.GoEmbedded, time.Time]{Name: "UpdatedAt"},
}
// Preload allows preloading the GoEmbedded when doing a query
func (goEmbeddedConditions goEmbeddedConditions) Preload() condition.Condition[goembedded.GoEmbedded] {
return condition.NewPreloadCondition[goembedded.GoEmbedded](goEmbeddedConditions.ID, goEmbeddedConditions.CreatedAt, goEmbeddedConditions.UpdatedAt, goEmbeddedConditions.DeletedAt, goEmbeddedConditions.Int, goEmbeddedConditions.ToBeEmbeddedInt)
}