Skip to content

Commit

Permalink
chore: gen
Browse files Browse the repository at this point in the history
  • Loading branch information
grutt committed Sep 18, 2024
1 parent 2d703e7 commit 487a6a7
Showing 1 changed file with 57 additions and 5 deletions.
62 changes: 57 additions & 5 deletions pkg/repository/prisma/db/db_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,7 @@ enum StepRunStatus {

model StepRun {
// base fields
id_uuid String @default(uuid()) @db.Uuid
id_uuid String? @db.Uuid

id BigInt @id @default(autoincrement()) @db.BigInt

Expand Down Expand Up @@ -10579,7 +10579,7 @@ type StepRunModel struct {

// InnerStepRun holds the actual data
type InnerStepRun struct {
IDUUID string `json:"id_uuid"`
IDUUID *string `json:"id_uuid,omitempty"`
ID BigInt `json:"id"`
CreatedAt DateTime `json:"createdAt"`
UpdatedAt DateTime `json:"updatedAt"`
Expand Down Expand Up @@ -10612,7 +10612,7 @@ type InnerStepRun struct {

// RawStepRunModel is a struct for StepRun when used in raw queries
type RawStepRunModel struct {
IDUUID RawString `json:"id_uuid"`
IDUUID *RawString `json:"id_uuid,omitempty"`
ID RawBigInt `json:"id"`
CreatedAt RawDateTime `json:"createdAt"`
UpdatedAt RawDateTime `json:"updatedAt"`
Expand Down Expand Up @@ -10651,6 +10651,13 @@ type RelationsStepRun struct {
Logs []LogLineModel `json:"logs,omitempty"`
}

func (r StepRunModel) IDUUID() (value String, ok bool) {
if r.InnerStepRun.IDUUID == nil {
return value, false
}
return *r.InnerStepRun.IDUUID, true
}

func (r StepRunModel) DeletedAt() (value DateTime, ok bool) {
if r.InnerStepRun.DeletedAt == nil {
return value, false
Expand Down Expand Up @@ -137447,7 +137454,7 @@ type stepRunQuery struct {

// IDUUID
//
// @required
// @optional
IDUUID stepRunQueryIDUUIDString

// ID
Expand Down Expand Up @@ -137653,7 +137660,7 @@ func (stepRunQuery) And(params ...StepRunWhereParam) stepRunDefaultParam {
// base struct
type stepRunQueryIDUUIDString struct{}

// Set the required value of IDUUID
// Set the optional value of IDUUID
func (r stepRunQueryIDUUIDString) Set(value string) stepRunSetParam {

return stepRunSetParam{
Expand All @@ -137674,6 +137681,22 @@ func (r stepRunQueryIDUUIDString) SetIfPresent(value *String) stepRunSetParam {
return r.Set(*value)
}

// Set the optional value of IDUUID dynamically
func (r stepRunQueryIDUUIDString) SetOptional(value *String) stepRunSetParam {
if value == nil {

var v *string
return stepRunSetParam{
data: builder.Field{
Name: "id_uuid",
Value: v,
},
}
}

return r.Set(*value)
}

func (r stepRunQueryIDUUIDString) Equals(value string) stepRunWithPrismaIDUUIDEqualsParam {

return stepRunWithPrismaIDUUIDEqualsParam{
Expand All @@ -137696,6 +137719,35 @@ func (r stepRunQueryIDUUIDString) EqualsIfPresent(value *string) stepRunWithPris
return r.Equals(*value)
}

func (r stepRunQueryIDUUIDString) EqualsOptional(value *String) stepRunDefaultParam {
return stepRunDefaultParam{
data: builder.Field{
Name: "id_uuid",
Fields: []builder.Field{
{
Name: "equals",
Value: value,
},
},
},
}
}

func (r stepRunQueryIDUUIDString) IsNull() stepRunDefaultParam {
var str *string = nil
return stepRunDefaultParam{
data: builder.Field{
Name: "id_uuid",
Fields: []builder.Field{
{
Name: "equals",
Value: str,
},
},
},
}
}

func (r stepRunQueryIDUUIDString) Order(direction SortOrder) stepRunDefaultParam {
return stepRunDefaultParam{
data: builder.Field{
Expand Down

0 comments on commit 487a6a7

Please sign in to comment.