diff --git a/go/graphql/v3/generated/ent.graphql b/go/graphql/v3/generated/ent.graphql index 613dc21..27c12d9 100644 --- a/go/graphql/v3/generated/ent.graphql +++ b/go/graphql/v3/generated/ent.graphql @@ -392,6 +392,30 @@ type HPFollow implements Node { createdAt: Time updatedAt: Time type: HPFollowHPFollowType! + elineupmallOther: HPFollowHPFollowType! + elineupmallPhotoDaily: HPFollowHPFollowType! + elineupmallPhotoA4: HPFollowHPFollowType! + elineupmallPhotoA5: HPFollowHPFollowType! + elineupmallPhoto2l: HPFollowHPFollowType! + elineupmallPhotoOther: HPFollowHPFollowType! + elineupmallPhotoAlbum: HPFollowHPFollowType! + elineupmallPhotoAlbumOther: HPFollowHPFollowType! + elineupmallPhotoBook: HPFollowHPFollowType! + elineupmallPhotoBookOther: HPFollowHPFollowType! + elineupmallDvd: HPFollowHPFollowType! + elineupmallDvdMagazine: HPFollowHPFollowType! + elineupmallDvdMagazineOther: HPFollowHPFollowType! + elineupmallBlueray: HPFollowHPFollowType! + elineupmallPenlight: HPFollowHPFollowType! + elineupmallCollectionPinnapPoster: HPFollowHPFollowType! + elineupmallCollectionPhoto: HPFollowHPFollowType! + elineupmallCollectionOther: HPFollowHPFollowType! + elineupmallTshirt: HPFollowHPFollowType! + elineupmallMicrofiberTowel: HPFollowHPFollowType! + elineupmallMufflerTowel: HPFollowHPFollowType! + elineupmallFsk: HPFollowHPFollowType! + elineupmallKeyringOther: HPFollowHPFollowType! + elineupmallClearFile: HPFollowHPFollowType! user: User! member: HPMember! } diff --git a/go/graphql/v3/generated/exec_generated.go b/go/graphql/v3/generated/exec_generated.go index 6064520..f53236a 100644 --- a/go/graphql/v3/generated/exec_generated.go +++ b/go/graphql/v3/generated/exec_generated.go @@ -265,12 +265,36 @@ type ComplexityRoot struct { } HPFollow struct { - CreatedAt func(childComplexity int) int - ID func(childComplexity int) int - Member func(childComplexity int) int - Type func(childComplexity int) int - UpdatedAt func(childComplexity int) int - User func(childComplexity int) int + CreatedAt func(childComplexity int) int + ElineupmallBlueray func(childComplexity int) int + ElineupmallClearFile func(childComplexity int) int + ElineupmallCollectionOther func(childComplexity int) int + ElineupmallCollectionPhoto func(childComplexity int) int + ElineupmallCollectionPinnapPoster func(childComplexity int) int + ElineupmallDvd func(childComplexity int) int + ElineupmallDvdMagazine func(childComplexity int) int + ElineupmallDvdMagazineOther func(childComplexity int) int + ElineupmallFsk func(childComplexity int) int + ElineupmallKeyringOther func(childComplexity int) int + ElineupmallMicrofiberTowel func(childComplexity int) int + ElineupmallMufflerTowel func(childComplexity int) int + ElineupmallOther func(childComplexity int) int + ElineupmallPenlight func(childComplexity int) int + ElineupmallPhoto2l func(childComplexity int) int + ElineupmallPhotoA4 func(childComplexity int) int + ElineupmallPhotoA5 func(childComplexity int) int + ElineupmallPhotoAlbum func(childComplexity int) int + ElineupmallPhotoAlbumOther func(childComplexity int) int + ElineupmallPhotoBook func(childComplexity int) int + ElineupmallPhotoBookOther func(childComplexity int) int + ElineupmallPhotoDaily func(childComplexity int) int + ElineupmallPhotoOther func(childComplexity int) int + ElineupmallTshirt func(childComplexity int) int + ID func(childComplexity int) int + Member func(childComplexity int) int + Type func(childComplexity int) int + UpdatedAt func(childComplexity int) int + User func(childComplexity int) int } HPIgCrawlArgs struct { @@ -1663,6 +1687,174 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.HPFollow.CreatedAt(childComplexity), true + case "HPFollow.elineupmallBlueray": + if e.complexity.HPFollow.ElineupmallBlueray == nil { + break + } + + return e.complexity.HPFollow.ElineupmallBlueray(childComplexity), true + + case "HPFollow.elineupmallClearFile": + if e.complexity.HPFollow.ElineupmallClearFile == nil { + break + } + + return e.complexity.HPFollow.ElineupmallClearFile(childComplexity), true + + case "HPFollow.elineupmallCollectionOther": + if e.complexity.HPFollow.ElineupmallCollectionOther == nil { + break + } + + return e.complexity.HPFollow.ElineupmallCollectionOther(childComplexity), true + + case "HPFollow.elineupmallCollectionPhoto": + if e.complexity.HPFollow.ElineupmallCollectionPhoto == nil { + break + } + + return e.complexity.HPFollow.ElineupmallCollectionPhoto(childComplexity), true + + case "HPFollow.elineupmallCollectionPinnapPoster": + if e.complexity.HPFollow.ElineupmallCollectionPinnapPoster == nil { + break + } + + return e.complexity.HPFollow.ElineupmallCollectionPinnapPoster(childComplexity), true + + case "HPFollow.elineupmallDvd": + if e.complexity.HPFollow.ElineupmallDvd == nil { + break + } + + return e.complexity.HPFollow.ElineupmallDvd(childComplexity), true + + case "HPFollow.elineupmallDvdMagazine": + if e.complexity.HPFollow.ElineupmallDvdMagazine == nil { + break + } + + return e.complexity.HPFollow.ElineupmallDvdMagazine(childComplexity), true + + case "HPFollow.elineupmallDvdMagazineOther": + if e.complexity.HPFollow.ElineupmallDvdMagazineOther == nil { + break + } + + return e.complexity.HPFollow.ElineupmallDvdMagazineOther(childComplexity), true + + case "HPFollow.elineupmallFsk": + if e.complexity.HPFollow.ElineupmallFsk == nil { + break + } + + return e.complexity.HPFollow.ElineupmallFsk(childComplexity), true + + case "HPFollow.elineupmallKeyringOther": + if e.complexity.HPFollow.ElineupmallKeyringOther == nil { + break + } + + return e.complexity.HPFollow.ElineupmallKeyringOther(childComplexity), true + + case "HPFollow.elineupmallMicrofiberTowel": + if e.complexity.HPFollow.ElineupmallMicrofiberTowel == nil { + break + } + + return e.complexity.HPFollow.ElineupmallMicrofiberTowel(childComplexity), true + + case "HPFollow.elineupmallMufflerTowel": + if e.complexity.HPFollow.ElineupmallMufflerTowel == nil { + break + } + + return e.complexity.HPFollow.ElineupmallMufflerTowel(childComplexity), true + + case "HPFollow.elineupmallOther": + if e.complexity.HPFollow.ElineupmallOther == nil { + break + } + + return e.complexity.HPFollow.ElineupmallOther(childComplexity), true + + case "HPFollow.elineupmallPenlight": + if e.complexity.HPFollow.ElineupmallPenlight == nil { + break + } + + return e.complexity.HPFollow.ElineupmallPenlight(childComplexity), true + + case "HPFollow.elineupmallPhoto2l": + if e.complexity.HPFollow.ElineupmallPhoto2l == nil { + break + } + + return e.complexity.HPFollow.ElineupmallPhoto2l(childComplexity), true + + case "HPFollow.elineupmallPhotoA4": + if e.complexity.HPFollow.ElineupmallPhotoA4 == nil { + break + } + + return e.complexity.HPFollow.ElineupmallPhotoA4(childComplexity), true + + case "HPFollow.elineupmallPhotoA5": + if e.complexity.HPFollow.ElineupmallPhotoA5 == nil { + break + } + + return e.complexity.HPFollow.ElineupmallPhotoA5(childComplexity), true + + case "HPFollow.elineupmallPhotoAlbum": + if e.complexity.HPFollow.ElineupmallPhotoAlbum == nil { + break + } + + return e.complexity.HPFollow.ElineupmallPhotoAlbum(childComplexity), true + + case "HPFollow.elineupmallPhotoAlbumOther": + if e.complexity.HPFollow.ElineupmallPhotoAlbumOther == nil { + break + } + + return e.complexity.HPFollow.ElineupmallPhotoAlbumOther(childComplexity), true + + case "HPFollow.elineupmallPhotoBook": + if e.complexity.HPFollow.ElineupmallPhotoBook == nil { + break + } + + return e.complexity.HPFollow.ElineupmallPhotoBook(childComplexity), true + + case "HPFollow.elineupmallPhotoBookOther": + if e.complexity.HPFollow.ElineupmallPhotoBookOther == nil { + break + } + + return e.complexity.HPFollow.ElineupmallPhotoBookOther(childComplexity), true + + case "HPFollow.elineupmallPhotoDaily": + if e.complexity.HPFollow.ElineupmallPhotoDaily == nil { + break + } + + return e.complexity.HPFollow.ElineupmallPhotoDaily(childComplexity), true + + case "HPFollow.elineupmallPhotoOther": + if e.complexity.HPFollow.ElineupmallPhotoOther == nil { + break + } + + return e.complexity.HPFollow.ElineupmallPhotoOther(childComplexity), true + + case "HPFollow.elineupmallTshirt": + if e.complexity.HPFollow.ElineupmallTshirt == nil { + break + } + + return e.complexity.HPFollow.ElineupmallTshirt(childComplexity), true + case "HPFollow.id": if e.complexity.HPFollow.ID == nil { break @@ -10885,7 +11077,1100 @@ func (ec *executionContext) _HPFeedItemConnection_pageInfo(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.PageInfo, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.PageInfo[int]) + fc.Result = res + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_HPFeedItemConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HPFeedItemConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "hasNextPage": + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) + case "hasPreviousPage": + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) + case "startCursor": + return ec.fieldContext_PageInfo_startCursor(ctx, field) + case "endCursor": + return ec.fieldContext_PageInfo_endCursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _HPFeedItemConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *ent.HPFeedItemConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HPFeedItemConnection_totalCount(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNInt2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_HPFeedItemConnection_totalCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HPFeedItemConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Int does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _HPFeedItemEdge_node(ctx context.Context, field graphql.CollectedField, obj *ent.HPFeedItemEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HPFeedItemEdge_node(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Node, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*ent.HPFeedItem) + fc.Result = res + return ec.marshalOHPFeedItem2ᚖgithubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋentᚐHPFeedItem(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_HPFeedItemEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HPFeedItemEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_HPFeedItem_id(ctx, field) + case "createdAt": + return ec.fieldContext_HPFeedItem_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_HPFeedItem_updatedAt(ctx, field) + case "sourceID": + return ec.fieldContext_HPFeedItem_sourceID(ctx, field) + case "assetType": + return ec.fieldContext_HPFeedItem_assetType(ctx, field) + case "title": + return ec.fieldContext_HPFeedItem_title(ctx, field) + case "postAt": + return ec.fieldContext_HPFeedItem_postAt(ctx, field) + case "sourceURL": + return ec.fieldContext_HPFeedItem_sourceURL(ctx, field) + case "imageURL": + return ec.fieldContext_HPFeedItem_imageURL(ctx, field) + case "media": + return ec.fieldContext_HPFeedItem_media(ctx, field) + case "ownerArtistID": + return ec.fieldContext_HPFeedItem_ownerArtistID(ctx, field) + case "ownerMemberID": + return ec.fieldContext_HPFeedItem_ownerMemberID(ctx, field) + case "ownerArtist": + return ec.fieldContext_HPFeedItem_ownerArtist(ctx, field) + case "ownerMember": + return ec.fieldContext_HPFeedItem_ownerMember(ctx, field) + case "taggedArtists": + return ec.fieldContext_HPFeedItem_taggedArtists(ctx, field) + case "taggedMembers": + return ec.fieldContext_HPFeedItem_taggedMembers(ctx, field) + case "myViewHistory": + return ec.fieldContext_HPFeedItem_myViewHistory(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type HPFeedItem", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _HPFeedItemEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *ent.HPFeedItemEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HPFeedItemEdge_cursor(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Cursor, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[int]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_HPFeedItemEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HPFeedItemEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _HPFollow_id(ctx context.Context, field graphql.CollectedField, obj *ent.HPFollow) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HPFollow_id(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ID, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(int) + fc.Result = res + return ec.marshalNID2int(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_HPFollow_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HPFollow", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _HPFollow_createdAt(ctx context.Context, field graphql.CollectedField, obj *ent.HPFollow) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HPFollow_createdAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_HPFollow_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HPFollow", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _HPFollow_updatedAt(ctx context.Context, field graphql.CollectedField, obj *ent.HPFollow) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HPFollow_updatedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedAt, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_HPFollow_updatedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HPFollow", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _HPFollow_type(ctx context.Context, field graphql.CollectedField, obj *ent.HPFollow) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HPFollow_type(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Type, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(enums.HPFollowType) + fc.Result = res + return ec.marshalNHPFollowHPFollowType2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPFollowType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_HPFollow_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HPFollow", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type HPFollowHPFollowType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _HPFollow_elineupmallOther(ctx context.Context, field graphql.CollectedField, obj *ent.HPFollow) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HPFollow_elineupmallOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ElineupmallOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(enums.HPFollowType) + fc.Result = res + return ec.marshalNHPFollowHPFollowType2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPFollowType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_HPFollow_elineupmallOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HPFollow", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type HPFollowHPFollowType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _HPFollow_elineupmallPhotoDaily(ctx context.Context, field graphql.CollectedField, obj *ent.HPFollow) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HPFollow_elineupmallPhotoDaily(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ElineupmallPhotoDaily, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(enums.HPFollowType) + fc.Result = res + return ec.marshalNHPFollowHPFollowType2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPFollowType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_HPFollow_elineupmallPhotoDaily(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HPFollow", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type HPFollowHPFollowType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _HPFollow_elineupmallPhotoA4(ctx context.Context, field graphql.CollectedField, obj *ent.HPFollow) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HPFollow_elineupmallPhotoA4(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ElineupmallPhotoA4, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(enums.HPFollowType) + fc.Result = res + return ec.marshalNHPFollowHPFollowType2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPFollowType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_HPFollow_elineupmallPhotoA4(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HPFollow", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type HPFollowHPFollowType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _HPFollow_elineupmallPhotoA5(ctx context.Context, field graphql.CollectedField, obj *ent.HPFollow) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HPFollow_elineupmallPhotoA5(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ElineupmallPhotoA5, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(enums.HPFollowType) + fc.Result = res + return ec.marshalNHPFollowHPFollowType2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPFollowType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_HPFollow_elineupmallPhotoA5(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HPFollow", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type HPFollowHPFollowType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _HPFollow_elineupmallPhoto2l(ctx context.Context, field graphql.CollectedField, obj *ent.HPFollow) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HPFollow_elineupmallPhoto2l(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ElineupmallPhoto2l, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(enums.HPFollowType) + fc.Result = res + return ec.marshalNHPFollowHPFollowType2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPFollowType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_HPFollow_elineupmallPhoto2l(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HPFollow", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type HPFollowHPFollowType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _HPFollow_elineupmallPhotoOther(ctx context.Context, field graphql.CollectedField, obj *ent.HPFollow) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HPFollow_elineupmallPhotoOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ElineupmallPhotoOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(enums.HPFollowType) + fc.Result = res + return ec.marshalNHPFollowHPFollowType2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPFollowType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_HPFollow_elineupmallPhotoOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HPFollow", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type HPFollowHPFollowType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _HPFollow_elineupmallPhotoAlbum(ctx context.Context, field graphql.CollectedField, obj *ent.HPFollow) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HPFollow_elineupmallPhotoAlbum(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ElineupmallPhotoAlbum, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(enums.HPFollowType) + fc.Result = res + return ec.marshalNHPFollowHPFollowType2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPFollowType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_HPFollow_elineupmallPhotoAlbum(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HPFollow", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type HPFollowHPFollowType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _HPFollow_elineupmallPhotoAlbumOther(ctx context.Context, field graphql.CollectedField, obj *ent.HPFollow) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HPFollow_elineupmallPhotoAlbumOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ElineupmallPhotoAlbumOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(enums.HPFollowType) + fc.Result = res + return ec.marshalNHPFollowHPFollowType2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPFollowType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_HPFollow_elineupmallPhotoAlbumOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HPFollow", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type HPFollowHPFollowType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _HPFollow_elineupmallPhotoBook(ctx context.Context, field graphql.CollectedField, obj *ent.HPFollow) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HPFollow_elineupmallPhotoBook(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ElineupmallPhotoBook, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(enums.HPFollowType) + fc.Result = res + return ec.marshalNHPFollowHPFollowType2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPFollowType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_HPFollow_elineupmallPhotoBook(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HPFollow", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type HPFollowHPFollowType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _HPFollow_elineupmallPhotoBookOther(ctx context.Context, field graphql.CollectedField, obj *ent.HPFollow) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HPFollow_elineupmallPhotoBookOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ElineupmallPhotoBookOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(enums.HPFollowType) + fc.Result = res + return ec.marshalNHPFollowHPFollowType2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPFollowType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_HPFollow_elineupmallPhotoBookOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HPFollow", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type HPFollowHPFollowType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _HPFollow_elineupmallDvd(ctx context.Context, field graphql.CollectedField, obj *ent.HPFollow) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HPFollow_elineupmallDvd(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ElineupmallDvd, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(enums.HPFollowType) + fc.Result = res + return ec.marshalNHPFollowHPFollowType2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPFollowType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_HPFollow_elineupmallDvd(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HPFollow", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type HPFollowHPFollowType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _HPFollow_elineupmallDvdMagazine(ctx context.Context, field graphql.CollectedField, obj *ent.HPFollow) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HPFollow_elineupmallDvdMagazine(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ElineupmallDvdMagazine, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(enums.HPFollowType) + fc.Result = res + return ec.marshalNHPFollowHPFollowType2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPFollowType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_HPFollow_elineupmallDvdMagazine(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HPFollow", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type HPFollowHPFollowType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _HPFollow_elineupmallDvdMagazineOther(ctx context.Context, field graphql.CollectedField, obj *ent.HPFollow) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HPFollow_elineupmallDvdMagazineOther(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ElineupmallDvdMagazineOther, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(enums.HPFollowType) + fc.Result = res + return ec.marshalNHPFollowHPFollowType2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPFollowType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_HPFollow_elineupmallDvdMagazineOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HPFollow", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type HPFollowHPFollowType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _HPFollow_elineupmallBlueray(ctx context.Context, field graphql.CollectedField, obj *ent.HPFollow) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HPFollow_elineupmallBlueray(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ElineupmallBlueray, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(enums.HPFollowType) + fc.Result = res + return ec.marshalNHPFollowHPFollowType2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPFollowType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_HPFollow_elineupmallBlueray(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HPFollow", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type HPFollowHPFollowType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _HPFollow_elineupmallPenlight(ctx context.Context, field graphql.CollectedField, obj *ent.HPFollow) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HPFollow_elineupmallPenlight(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ElineupmallPenlight, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(enums.HPFollowType) + fc.Result = res + return ec.marshalNHPFollowHPFollowType2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPFollowType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_HPFollow_elineupmallPenlight(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HPFollow", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type HPFollowHPFollowType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _HPFollow_elineupmallCollectionPinnapPoster(ctx context.Context, field graphql.CollectedField, obj *ent.HPFollow) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HPFollow_elineupmallCollectionPinnapPoster(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ElineupmallCollectionPinnapPoster, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(enums.HPFollowType) + fc.Result = res + return ec.marshalNHPFollowHPFollowType2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPFollowType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_HPFollow_elineupmallCollectionPinnapPoster(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HPFollow", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type HPFollowHPFollowType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _HPFollow_elineupmallCollectionPhoto(ctx context.Context, field graphql.CollectedField, obj *ent.HPFollow) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HPFollow_elineupmallCollectionPhoto(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ElineupmallCollectionPhoto, nil }) if err != nil { ec.Error(ctx, err) @@ -10897,36 +12182,26 @@ func (ec *executionContext) _HPFeedItemConnection_pageInfo(ctx context.Context, } return graphql.Null } - res := resTmp.(entgql.PageInfo[int]) + res := resTmp.(enums.HPFollowType) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalNHPFollowHPFollowType2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPFollowType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HPFeedItemConnection_pageInfo(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HPFollow_elineupmallCollectionPhoto(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HPFeedItemConnection", + Object: "HPFollow", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hasNextPage": - return ec.fieldContext_PageInfo_hasNextPage(ctx, field) - case "hasPreviousPage": - return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) - case "startCursor": - return ec.fieldContext_PageInfo_startCursor(ctx, field) - case "endCursor": - return ec.fieldContext_PageInfo_endCursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, errors.New("field of type HPFollowHPFollowType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _HPFeedItemConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *ent.HPFeedItemConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HPFeedItemConnection_totalCount(ctx, field) +func (ec *executionContext) _HPFollow_elineupmallCollectionOther(ctx context.Context, field graphql.CollectedField, obj *ent.HPFollow) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HPFollow_elineupmallCollectionOther(ctx, field) if err != nil { return graphql.Null } @@ -10939,7 +12214,7 @@ func (ec *executionContext) _HPFeedItemConnection_totalCount(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.ElineupmallCollectionOther, nil }) if err != nil { ec.Error(ctx, err) @@ -10951,26 +12226,26 @@ func (ec *executionContext) _HPFeedItemConnection_totalCount(ctx context.Context } return graphql.Null } - res := resTmp.(int) + res := resTmp.(enums.HPFollowType) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNHPFollowHPFollowType2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPFollowType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HPFeedItemConnection_totalCount(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HPFollow_elineupmallCollectionOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HPFeedItemConnection", + Object: "HPFollow", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Int does not have child fields") + return nil, errors.New("field of type HPFollowHPFollowType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _HPFeedItemEdge_node(ctx context.Context, field graphql.CollectedField, obj *ent.HPFeedItemEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HPFeedItemEdge_node(ctx, field) +func (ec *executionContext) _HPFollow_elineupmallTshirt(ctx context.Context, field graphql.CollectedField, obj *ent.HPFollow) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HPFollow_elineupmallTshirt(ctx, field) if err != nil { return graphql.Null } @@ -10983,71 +12258,38 @@ func (ec *executionContext) _HPFeedItemEdge_node(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.ElineupmallTshirt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*ent.HPFeedItem) + res := resTmp.(enums.HPFollowType) fc.Result = res - return ec.marshalOHPFeedItem2ᚖgithubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋentᚐHPFeedItem(ctx, field.Selections, res) + return ec.marshalNHPFollowHPFollowType2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPFollowType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HPFeedItemEdge_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HPFollow_elineupmallTshirt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HPFeedItemEdge", + Object: "HPFollow", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_HPFeedItem_id(ctx, field) - case "createdAt": - return ec.fieldContext_HPFeedItem_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_HPFeedItem_updatedAt(ctx, field) - case "sourceID": - return ec.fieldContext_HPFeedItem_sourceID(ctx, field) - case "assetType": - return ec.fieldContext_HPFeedItem_assetType(ctx, field) - case "title": - return ec.fieldContext_HPFeedItem_title(ctx, field) - case "postAt": - return ec.fieldContext_HPFeedItem_postAt(ctx, field) - case "sourceURL": - return ec.fieldContext_HPFeedItem_sourceURL(ctx, field) - case "imageURL": - return ec.fieldContext_HPFeedItem_imageURL(ctx, field) - case "media": - return ec.fieldContext_HPFeedItem_media(ctx, field) - case "ownerArtistID": - return ec.fieldContext_HPFeedItem_ownerArtistID(ctx, field) - case "ownerMemberID": - return ec.fieldContext_HPFeedItem_ownerMemberID(ctx, field) - case "ownerArtist": - return ec.fieldContext_HPFeedItem_ownerArtist(ctx, field) - case "ownerMember": - return ec.fieldContext_HPFeedItem_ownerMember(ctx, field) - case "taggedArtists": - return ec.fieldContext_HPFeedItem_taggedArtists(ctx, field) - case "taggedMembers": - return ec.fieldContext_HPFeedItem_taggedMembers(ctx, field) - case "myViewHistory": - return ec.fieldContext_HPFeedItem_myViewHistory(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type HPFeedItem", field.Name) + return nil, errors.New("field of type HPFollowHPFollowType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _HPFeedItemEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *ent.HPFeedItemEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HPFeedItemEdge_cursor(ctx, field) +func (ec *executionContext) _HPFollow_elineupmallMicrofiberTowel(ctx context.Context, field graphql.CollectedField, obj *ent.HPFollow) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HPFollow_elineupmallMicrofiberTowel(ctx, field) if err != nil { return graphql.Null } @@ -11060,7 +12302,7 @@ func (ec *executionContext) _HPFeedItemEdge_cursor(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.ElineupmallMicrofiberTowel, nil }) if err != nil { ec.Error(ctx, err) @@ -11072,26 +12314,26 @@ func (ec *executionContext) _HPFeedItemEdge_cursor(ctx context.Context, field gr } return graphql.Null } - res := resTmp.(entgql.Cursor[int]) + res := resTmp.(enums.HPFollowType) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalNHPFollowHPFollowType2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPFollowType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HPFeedItemEdge_cursor(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HPFollow_elineupmallMicrofiberTowel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HPFeedItemEdge", + Object: "HPFollow", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type HPFollowHPFollowType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _HPFollow_id(ctx context.Context, field graphql.CollectedField, obj *ent.HPFollow) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HPFollow_id(ctx, field) +func (ec *executionContext) _HPFollow_elineupmallMufflerTowel(ctx context.Context, field graphql.CollectedField, obj *ent.HPFollow) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HPFollow_elineupmallMufflerTowel(ctx, field) if err != nil { return graphql.Null } @@ -11104,7 +12346,7 @@ func (ec *executionContext) _HPFollow_id(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.ElineupmallMufflerTowel, nil }) if err != nil { ec.Error(ctx, err) @@ -11116,26 +12358,26 @@ func (ec *executionContext) _HPFollow_id(ctx context.Context, field graphql.Coll } return graphql.Null } - res := resTmp.(int) + res := resTmp.(enums.HPFollowType) fc.Result = res - return ec.marshalNID2int(ctx, field.Selections, res) + return ec.marshalNHPFollowHPFollowType2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPFollowType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HPFollow_id(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HPFollow_elineupmallMufflerTowel(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "HPFollow", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + return nil, errors.New("field of type HPFollowHPFollowType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _HPFollow_createdAt(ctx context.Context, field graphql.CollectedField, obj *ent.HPFollow) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HPFollow_createdAt(ctx, field) +func (ec *executionContext) _HPFollow_elineupmallFsk(ctx context.Context, field graphql.CollectedField, obj *ent.HPFollow) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HPFollow_elineupmallFsk(ctx, field) if err != nil { return graphql.Null } @@ -11148,35 +12390,38 @@ func (ec *executionContext) _HPFollow_createdAt(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.ElineupmallFsk, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(enums.HPFollowType) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNHPFollowHPFollowType2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPFollowType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HPFollow_createdAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HPFollow_elineupmallFsk(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "HPFollow", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type HPFollowHPFollowType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _HPFollow_updatedAt(ctx context.Context, field graphql.CollectedField, obj *ent.HPFollow) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HPFollow_updatedAt(ctx, field) +func (ec *executionContext) _HPFollow_elineupmallKeyringOther(ctx context.Context, field graphql.CollectedField, obj *ent.HPFollow) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HPFollow_elineupmallKeyringOther(ctx, field) if err != nil { return graphql.Null } @@ -11189,35 +12434,38 @@ func (ec *executionContext) _HPFollow_updatedAt(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.ElineupmallKeyringOther, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(enums.HPFollowType) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNHPFollowHPFollowType2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPFollowType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HPFollow_updatedAt(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HPFollow_elineupmallKeyringOther(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "HPFollow", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type HPFollowHPFollowType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _HPFollow_type(ctx context.Context, field graphql.CollectedField, obj *ent.HPFollow) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HPFollow_type(ctx, field) +func (ec *executionContext) _HPFollow_elineupmallClearFile(ctx context.Context, field graphql.CollectedField, obj *ent.HPFollow) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HPFollow_elineupmallClearFile(ctx, field) if err != nil { return graphql.Null } @@ -11230,7 +12478,7 @@ func (ec *executionContext) _HPFollow_type(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Type, nil + return obj.ElineupmallClearFile, nil }) if err != nil { ec.Error(ctx, err) @@ -11247,7 +12495,7 @@ func (ec *executionContext) _HPFollow_type(ctx context.Context, field graphql.Co return ec.marshalNHPFollowHPFollowType2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPFollowType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HPFollow_type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HPFollow_elineupmallClearFile(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "HPFollow", Field: field, @@ -14528,6 +15776,54 @@ func (ec *executionContext) fieldContext_HPMember_myFollowStatus(ctx context.Con return ec.fieldContext_HPFollow_updatedAt(ctx, field) case "type": return ec.fieldContext_HPFollow_type(ctx, field) + case "elineupmallOther": + return ec.fieldContext_HPFollow_elineupmallOther(ctx, field) + case "elineupmallPhotoDaily": + return ec.fieldContext_HPFollow_elineupmallPhotoDaily(ctx, field) + case "elineupmallPhotoA4": + return ec.fieldContext_HPFollow_elineupmallPhotoA4(ctx, field) + case "elineupmallPhotoA5": + return ec.fieldContext_HPFollow_elineupmallPhotoA5(ctx, field) + case "elineupmallPhoto2l": + return ec.fieldContext_HPFollow_elineupmallPhoto2l(ctx, field) + case "elineupmallPhotoOther": + return ec.fieldContext_HPFollow_elineupmallPhotoOther(ctx, field) + case "elineupmallPhotoAlbum": + return ec.fieldContext_HPFollow_elineupmallPhotoAlbum(ctx, field) + case "elineupmallPhotoAlbumOther": + return ec.fieldContext_HPFollow_elineupmallPhotoAlbumOther(ctx, field) + case "elineupmallPhotoBook": + return ec.fieldContext_HPFollow_elineupmallPhotoBook(ctx, field) + case "elineupmallPhotoBookOther": + return ec.fieldContext_HPFollow_elineupmallPhotoBookOther(ctx, field) + case "elineupmallDvd": + return ec.fieldContext_HPFollow_elineupmallDvd(ctx, field) + case "elineupmallDvdMagazine": + return ec.fieldContext_HPFollow_elineupmallDvdMagazine(ctx, field) + case "elineupmallDvdMagazineOther": + return ec.fieldContext_HPFollow_elineupmallDvdMagazineOther(ctx, field) + case "elineupmallBlueray": + return ec.fieldContext_HPFollow_elineupmallBlueray(ctx, field) + case "elineupmallPenlight": + return ec.fieldContext_HPFollow_elineupmallPenlight(ctx, field) + case "elineupmallCollectionPinnapPoster": + return ec.fieldContext_HPFollow_elineupmallCollectionPinnapPoster(ctx, field) + case "elineupmallCollectionPhoto": + return ec.fieldContext_HPFollow_elineupmallCollectionPhoto(ctx, field) + case "elineupmallCollectionOther": + return ec.fieldContext_HPFollow_elineupmallCollectionOther(ctx, field) + case "elineupmallTshirt": + return ec.fieldContext_HPFollow_elineupmallTshirt(ctx, field) + case "elineupmallMicrofiberTowel": + return ec.fieldContext_HPFollow_elineupmallMicrofiberTowel(ctx, field) + case "elineupmallMufflerTowel": + return ec.fieldContext_HPFollow_elineupmallMufflerTowel(ctx, field) + case "elineupmallFsk": + return ec.fieldContext_HPFollow_elineupmallFsk(ctx, field) + case "elineupmallKeyringOther": + return ec.fieldContext_HPFollow_elineupmallKeyringOther(ctx, field) + case "elineupmallClearFile": + return ec.fieldContext_HPFollow_elineupmallClearFile(ctx, field) case "user": return ec.fieldContext_HPFollow_user(ctx, field) case "member": @@ -16826,6 +18122,54 @@ func (ec *executionContext) fieldContext_MeMutation_upsertFollow(ctx context.Con return ec.fieldContext_HPFollow_updatedAt(ctx, field) case "type": return ec.fieldContext_HPFollow_type(ctx, field) + case "elineupmallOther": + return ec.fieldContext_HPFollow_elineupmallOther(ctx, field) + case "elineupmallPhotoDaily": + return ec.fieldContext_HPFollow_elineupmallPhotoDaily(ctx, field) + case "elineupmallPhotoA4": + return ec.fieldContext_HPFollow_elineupmallPhotoA4(ctx, field) + case "elineupmallPhotoA5": + return ec.fieldContext_HPFollow_elineupmallPhotoA5(ctx, field) + case "elineupmallPhoto2l": + return ec.fieldContext_HPFollow_elineupmallPhoto2l(ctx, field) + case "elineupmallPhotoOther": + return ec.fieldContext_HPFollow_elineupmallPhotoOther(ctx, field) + case "elineupmallPhotoAlbum": + return ec.fieldContext_HPFollow_elineupmallPhotoAlbum(ctx, field) + case "elineupmallPhotoAlbumOther": + return ec.fieldContext_HPFollow_elineupmallPhotoAlbumOther(ctx, field) + case "elineupmallPhotoBook": + return ec.fieldContext_HPFollow_elineupmallPhotoBook(ctx, field) + case "elineupmallPhotoBookOther": + return ec.fieldContext_HPFollow_elineupmallPhotoBookOther(ctx, field) + case "elineupmallDvd": + return ec.fieldContext_HPFollow_elineupmallDvd(ctx, field) + case "elineupmallDvdMagazine": + return ec.fieldContext_HPFollow_elineupmallDvdMagazine(ctx, field) + case "elineupmallDvdMagazineOther": + return ec.fieldContext_HPFollow_elineupmallDvdMagazineOther(ctx, field) + case "elineupmallBlueray": + return ec.fieldContext_HPFollow_elineupmallBlueray(ctx, field) + case "elineupmallPenlight": + return ec.fieldContext_HPFollow_elineupmallPenlight(ctx, field) + case "elineupmallCollectionPinnapPoster": + return ec.fieldContext_HPFollow_elineupmallCollectionPinnapPoster(ctx, field) + case "elineupmallCollectionPhoto": + return ec.fieldContext_HPFollow_elineupmallCollectionPhoto(ctx, field) + case "elineupmallCollectionOther": + return ec.fieldContext_HPFollow_elineupmallCollectionOther(ctx, field) + case "elineupmallTshirt": + return ec.fieldContext_HPFollow_elineupmallTshirt(ctx, field) + case "elineupmallMicrofiberTowel": + return ec.fieldContext_HPFollow_elineupmallMicrofiberTowel(ctx, field) + case "elineupmallMufflerTowel": + return ec.fieldContext_HPFollow_elineupmallMufflerTowel(ctx, field) + case "elineupmallFsk": + return ec.fieldContext_HPFollow_elineupmallFsk(ctx, field) + case "elineupmallKeyringOther": + return ec.fieldContext_HPFollow_elineupmallKeyringOther(ctx, field) + case "elineupmallClearFile": + return ec.fieldContext_HPFollow_elineupmallClearFile(ctx, field) case "user": return ec.fieldContext_HPFollow_user(ctx, field) case "member": @@ -17482,6 +18826,54 @@ func (ec *executionContext) fieldContext_MeQuery_followings(ctx context.Context, return ec.fieldContext_HPFollow_updatedAt(ctx, field) case "type": return ec.fieldContext_HPFollow_type(ctx, field) + case "elineupmallOther": + return ec.fieldContext_HPFollow_elineupmallOther(ctx, field) + case "elineupmallPhotoDaily": + return ec.fieldContext_HPFollow_elineupmallPhotoDaily(ctx, field) + case "elineupmallPhotoA4": + return ec.fieldContext_HPFollow_elineupmallPhotoA4(ctx, field) + case "elineupmallPhotoA5": + return ec.fieldContext_HPFollow_elineupmallPhotoA5(ctx, field) + case "elineupmallPhoto2l": + return ec.fieldContext_HPFollow_elineupmallPhoto2l(ctx, field) + case "elineupmallPhotoOther": + return ec.fieldContext_HPFollow_elineupmallPhotoOther(ctx, field) + case "elineupmallPhotoAlbum": + return ec.fieldContext_HPFollow_elineupmallPhotoAlbum(ctx, field) + case "elineupmallPhotoAlbumOther": + return ec.fieldContext_HPFollow_elineupmallPhotoAlbumOther(ctx, field) + case "elineupmallPhotoBook": + return ec.fieldContext_HPFollow_elineupmallPhotoBook(ctx, field) + case "elineupmallPhotoBookOther": + return ec.fieldContext_HPFollow_elineupmallPhotoBookOther(ctx, field) + case "elineupmallDvd": + return ec.fieldContext_HPFollow_elineupmallDvd(ctx, field) + case "elineupmallDvdMagazine": + return ec.fieldContext_HPFollow_elineupmallDvdMagazine(ctx, field) + case "elineupmallDvdMagazineOther": + return ec.fieldContext_HPFollow_elineupmallDvdMagazineOther(ctx, field) + case "elineupmallBlueray": + return ec.fieldContext_HPFollow_elineupmallBlueray(ctx, field) + case "elineupmallPenlight": + return ec.fieldContext_HPFollow_elineupmallPenlight(ctx, field) + case "elineupmallCollectionPinnapPoster": + return ec.fieldContext_HPFollow_elineupmallCollectionPinnapPoster(ctx, field) + case "elineupmallCollectionPhoto": + return ec.fieldContext_HPFollow_elineupmallCollectionPhoto(ctx, field) + case "elineupmallCollectionOther": + return ec.fieldContext_HPFollow_elineupmallCollectionOther(ctx, field) + case "elineupmallTshirt": + return ec.fieldContext_HPFollow_elineupmallTshirt(ctx, field) + case "elineupmallMicrofiberTowel": + return ec.fieldContext_HPFollow_elineupmallMicrofiberTowel(ctx, field) + case "elineupmallMufflerTowel": + return ec.fieldContext_HPFollow_elineupmallMufflerTowel(ctx, field) + case "elineupmallFsk": + return ec.fieldContext_HPFollow_elineupmallFsk(ctx, field) + case "elineupmallKeyringOther": + return ec.fieldContext_HPFollow_elineupmallKeyringOther(ctx, field) + case "elineupmallClearFile": + return ec.fieldContext_HPFollow_elineupmallClearFile(ctx, field) case "user": return ec.fieldContext_HPFollow_user(ctx, field) case "member": @@ -19763,6 +21155,54 @@ func (ec *executionContext) fieldContext_User_hpmemberFollowing(ctx context.Cont return ec.fieldContext_HPFollow_updatedAt(ctx, field) case "type": return ec.fieldContext_HPFollow_type(ctx, field) + case "elineupmallOther": + return ec.fieldContext_HPFollow_elineupmallOther(ctx, field) + case "elineupmallPhotoDaily": + return ec.fieldContext_HPFollow_elineupmallPhotoDaily(ctx, field) + case "elineupmallPhotoA4": + return ec.fieldContext_HPFollow_elineupmallPhotoA4(ctx, field) + case "elineupmallPhotoA5": + return ec.fieldContext_HPFollow_elineupmallPhotoA5(ctx, field) + case "elineupmallPhoto2l": + return ec.fieldContext_HPFollow_elineupmallPhoto2l(ctx, field) + case "elineupmallPhotoOther": + return ec.fieldContext_HPFollow_elineupmallPhotoOther(ctx, field) + case "elineupmallPhotoAlbum": + return ec.fieldContext_HPFollow_elineupmallPhotoAlbum(ctx, field) + case "elineupmallPhotoAlbumOther": + return ec.fieldContext_HPFollow_elineupmallPhotoAlbumOther(ctx, field) + case "elineupmallPhotoBook": + return ec.fieldContext_HPFollow_elineupmallPhotoBook(ctx, field) + case "elineupmallPhotoBookOther": + return ec.fieldContext_HPFollow_elineupmallPhotoBookOther(ctx, field) + case "elineupmallDvd": + return ec.fieldContext_HPFollow_elineupmallDvd(ctx, field) + case "elineupmallDvdMagazine": + return ec.fieldContext_HPFollow_elineupmallDvdMagazine(ctx, field) + case "elineupmallDvdMagazineOther": + return ec.fieldContext_HPFollow_elineupmallDvdMagazineOther(ctx, field) + case "elineupmallBlueray": + return ec.fieldContext_HPFollow_elineupmallBlueray(ctx, field) + case "elineupmallPenlight": + return ec.fieldContext_HPFollow_elineupmallPenlight(ctx, field) + case "elineupmallCollectionPinnapPoster": + return ec.fieldContext_HPFollow_elineupmallCollectionPinnapPoster(ctx, field) + case "elineupmallCollectionPhoto": + return ec.fieldContext_HPFollow_elineupmallCollectionPhoto(ctx, field) + case "elineupmallCollectionOther": + return ec.fieldContext_HPFollow_elineupmallCollectionOther(ctx, field) + case "elineupmallTshirt": + return ec.fieldContext_HPFollow_elineupmallTshirt(ctx, field) + case "elineupmallMicrofiberTowel": + return ec.fieldContext_HPFollow_elineupmallMicrofiberTowel(ctx, field) + case "elineupmallMufflerTowel": + return ec.fieldContext_HPFollow_elineupmallMufflerTowel(ctx, field) + case "elineupmallFsk": + return ec.fieldContext_HPFollow_elineupmallFsk(ctx, field) + case "elineupmallKeyringOther": + return ec.fieldContext_HPFollow_elineupmallKeyringOther(ctx, field) + case "elineupmallClearFile": + return ec.fieldContext_HPFollow_elineupmallClearFile(ctx, field) case "user": return ec.fieldContext_HPFollow_user(ctx, field) case "member": @@ -24831,6 +26271,174 @@ func (ec *executionContext) _HPFollow(ctx context.Context, sel ast.SelectionSet, out.Values[i] = ec._HPFollow_type(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&invalids, 1) + } + case "elineupmallOther": + + out.Values[i] = ec._HPFollow_elineupmallOther(ctx, field, obj) + + if out.Values[i] == graphql.Null { + atomic.AddUint32(&invalids, 1) + } + case "elineupmallPhotoDaily": + + out.Values[i] = ec._HPFollow_elineupmallPhotoDaily(ctx, field, obj) + + if out.Values[i] == graphql.Null { + atomic.AddUint32(&invalids, 1) + } + case "elineupmallPhotoA4": + + out.Values[i] = ec._HPFollow_elineupmallPhotoA4(ctx, field, obj) + + if out.Values[i] == graphql.Null { + atomic.AddUint32(&invalids, 1) + } + case "elineupmallPhotoA5": + + out.Values[i] = ec._HPFollow_elineupmallPhotoA5(ctx, field, obj) + + if out.Values[i] == graphql.Null { + atomic.AddUint32(&invalids, 1) + } + case "elineupmallPhoto2l": + + out.Values[i] = ec._HPFollow_elineupmallPhoto2l(ctx, field, obj) + + if out.Values[i] == graphql.Null { + atomic.AddUint32(&invalids, 1) + } + case "elineupmallPhotoOther": + + out.Values[i] = ec._HPFollow_elineupmallPhotoOther(ctx, field, obj) + + if out.Values[i] == graphql.Null { + atomic.AddUint32(&invalids, 1) + } + case "elineupmallPhotoAlbum": + + out.Values[i] = ec._HPFollow_elineupmallPhotoAlbum(ctx, field, obj) + + if out.Values[i] == graphql.Null { + atomic.AddUint32(&invalids, 1) + } + case "elineupmallPhotoAlbumOther": + + out.Values[i] = ec._HPFollow_elineupmallPhotoAlbumOther(ctx, field, obj) + + if out.Values[i] == graphql.Null { + atomic.AddUint32(&invalids, 1) + } + case "elineupmallPhotoBook": + + out.Values[i] = ec._HPFollow_elineupmallPhotoBook(ctx, field, obj) + + if out.Values[i] == graphql.Null { + atomic.AddUint32(&invalids, 1) + } + case "elineupmallPhotoBookOther": + + out.Values[i] = ec._HPFollow_elineupmallPhotoBookOther(ctx, field, obj) + + if out.Values[i] == graphql.Null { + atomic.AddUint32(&invalids, 1) + } + case "elineupmallDvd": + + out.Values[i] = ec._HPFollow_elineupmallDvd(ctx, field, obj) + + if out.Values[i] == graphql.Null { + atomic.AddUint32(&invalids, 1) + } + case "elineupmallDvdMagazine": + + out.Values[i] = ec._HPFollow_elineupmallDvdMagazine(ctx, field, obj) + + if out.Values[i] == graphql.Null { + atomic.AddUint32(&invalids, 1) + } + case "elineupmallDvdMagazineOther": + + out.Values[i] = ec._HPFollow_elineupmallDvdMagazineOther(ctx, field, obj) + + if out.Values[i] == graphql.Null { + atomic.AddUint32(&invalids, 1) + } + case "elineupmallBlueray": + + out.Values[i] = ec._HPFollow_elineupmallBlueray(ctx, field, obj) + + if out.Values[i] == graphql.Null { + atomic.AddUint32(&invalids, 1) + } + case "elineupmallPenlight": + + out.Values[i] = ec._HPFollow_elineupmallPenlight(ctx, field, obj) + + if out.Values[i] == graphql.Null { + atomic.AddUint32(&invalids, 1) + } + case "elineupmallCollectionPinnapPoster": + + out.Values[i] = ec._HPFollow_elineupmallCollectionPinnapPoster(ctx, field, obj) + + if out.Values[i] == graphql.Null { + atomic.AddUint32(&invalids, 1) + } + case "elineupmallCollectionPhoto": + + out.Values[i] = ec._HPFollow_elineupmallCollectionPhoto(ctx, field, obj) + + if out.Values[i] == graphql.Null { + atomic.AddUint32(&invalids, 1) + } + case "elineupmallCollectionOther": + + out.Values[i] = ec._HPFollow_elineupmallCollectionOther(ctx, field, obj) + + if out.Values[i] == graphql.Null { + atomic.AddUint32(&invalids, 1) + } + case "elineupmallTshirt": + + out.Values[i] = ec._HPFollow_elineupmallTshirt(ctx, field, obj) + + if out.Values[i] == graphql.Null { + atomic.AddUint32(&invalids, 1) + } + case "elineupmallMicrofiberTowel": + + out.Values[i] = ec._HPFollow_elineupmallMicrofiberTowel(ctx, field, obj) + + if out.Values[i] == graphql.Null { + atomic.AddUint32(&invalids, 1) + } + case "elineupmallMufflerTowel": + + out.Values[i] = ec._HPFollow_elineupmallMufflerTowel(ctx, field, obj) + + if out.Values[i] == graphql.Null { + atomic.AddUint32(&invalids, 1) + } + case "elineupmallFsk": + + out.Values[i] = ec._HPFollow_elineupmallFsk(ctx, field, obj) + + if out.Values[i] == graphql.Null { + atomic.AddUint32(&invalids, 1) + } + case "elineupmallKeyringOther": + + out.Values[i] = ec._HPFollow_elineupmallKeyringOther(ctx, field, obj) + + if out.Values[i] == graphql.Null { + atomic.AddUint32(&invalids, 1) + } + case "elineupmallClearFile": + + out.Values[i] = ec._HPFollow_elineupmallClearFile(ctx, field, obj) + if out.Values[i] == graphql.Null { atomic.AddUint32(&invalids, 1) } diff --git a/go/service/ent/entql.go b/go/service/ent/entql.go index 86cb10d..a2df956 100644 --- a/go/service/ent/entql.go +++ b/go/service/ent/entql.go @@ -276,9 +276,33 @@ var schemaGraph = func() *sqlgraph.Schema { }, Type: "HPFollow", Fields: map[string]*sqlgraph.FieldSpec{ - hpfollow.FieldCreatedAt: {Type: field.TypeTime, Column: hpfollow.FieldCreatedAt}, - hpfollow.FieldUpdatedAt: {Type: field.TypeTime, Column: hpfollow.FieldUpdatedAt}, - hpfollow.FieldType: {Type: field.TypeEnum, Column: hpfollow.FieldType}, + hpfollow.FieldCreatedAt: {Type: field.TypeTime, Column: hpfollow.FieldCreatedAt}, + hpfollow.FieldUpdatedAt: {Type: field.TypeTime, Column: hpfollow.FieldUpdatedAt}, + hpfollow.FieldType: {Type: field.TypeEnum, Column: hpfollow.FieldType}, + hpfollow.FieldElineupmallOther: {Type: field.TypeEnum, Column: hpfollow.FieldElineupmallOther}, + hpfollow.FieldElineupmallPhotoDaily: {Type: field.TypeEnum, Column: hpfollow.FieldElineupmallPhotoDaily}, + hpfollow.FieldElineupmallPhotoA4: {Type: field.TypeEnum, Column: hpfollow.FieldElineupmallPhotoA4}, + hpfollow.FieldElineupmallPhotoA5: {Type: field.TypeEnum, Column: hpfollow.FieldElineupmallPhotoA5}, + hpfollow.FieldElineupmallPhoto2l: {Type: field.TypeEnum, Column: hpfollow.FieldElineupmallPhoto2l}, + hpfollow.FieldElineupmallPhotoOther: {Type: field.TypeEnum, Column: hpfollow.FieldElineupmallPhotoOther}, + hpfollow.FieldElineupmallPhotoAlbum: {Type: field.TypeEnum, Column: hpfollow.FieldElineupmallPhotoAlbum}, + hpfollow.FieldElineupmallPhotoAlbumOther: {Type: field.TypeEnum, Column: hpfollow.FieldElineupmallPhotoAlbumOther}, + hpfollow.FieldElineupmallPhotoBook: {Type: field.TypeEnum, Column: hpfollow.FieldElineupmallPhotoBook}, + hpfollow.FieldElineupmallPhotoBookOther: {Type: field.TypeEnum, Column: hpfollow.FieldElineupmallPhotoBookOther}, + hpfollow.FieldElineupmallDvd: {Type: field.TypeEnum, Column: hpfollow.FieldElineupmallDvd}, + hpfollow.FieldElineupmallDvdMagazine: {Type: field.TypeEnum, Column: hpfollow.FieldElineupmallDvdMagazine}, + hpfollow.FieldElineupmallDvdMagazineOther: {Type: field.TypeEnum, Column: hpfollow.FieldElineupmallDvdMagazineOther}, + hpfollow.FieldElineupmallBlueray: {Type: field.TypeEnum, Column: hpfollow.FieldElineupmallBlueray}, + hpfollow.FieldElineupmallPenlight: {Type: field.TypeEnum, Column: hpfollow.FieldElineupmallPenlight}, + hpfollow.FieldElineupmallCollectionPinnapPoster: {Type: field.TypeEnum, Column: hpfollow.FieldElineupmallCollectionPinnapPoster}, + hpfollow.FieldElineupmallCollectionPhoto: {Type: field.TypeEnum, Column: hpfollow.FieldElineupmallCollectionPhoto}, + hpfollow.FieldElineupmallCollectionOther: {Type: field.TypeEnum, Column: hpfollow.FieldElineupmallCollectionOther}, + hpfollow.FieldElineupmallTshirt: {Type: field.TypeEnum, Column: hpfollow.FieldElineupmallTshirt}, + hpfollow.FieldElineupmallMicrofiberTowel: {Type: field.TypeEnum, Column: hpfollow.FieldElineupmallMicrofiberTowel}, + hpfollow.FieldElineupmallMufflerTowel: {Type: field.TypeEnum, Column: hpfollow.FieldElineupmallMufflerTowel}, + hpfollow.FieldElineupmallFsk: {Type: field.TypeEnum, Column: hpfollow.FieldElineupmallFsk}, + hpfollow.FieldElineupmallKeyringOther: {Type: field.TypeEnum, Column: hpfollow.FieldElineupmallKeyringOther}, + hpfollow.FieldElineupmallClearFile: {Type: field.TypeEnum, Column: hpfollow.FieldElineupmallClearFile}, }, } graph.Nodes[10] = &sqlgraph.Node{ @@ -2762,6 +2786,126 @@ func (f *HPFollowFilter) WhereType(p entql.StringP) { f.Where(p.Field(hpfollow.FieldType)) } +// WhereElineupmallOther applies the entql string predicate on the elineupmall_other field. +func (f *HPFollowFilter) WhereElineupmallOther(p entql.StringP) { + f.Where(p.Field(hpfollow.FieldElineupmallOther)) +} + +// WhereElineupmallPhotoDaily applies the entql string predicate on the elineupmall_photo_daily field. +func (f *HPFollowFilter) WhereElineupmallPhotoDaily(p entql.StringP) { + f.Where(p.Field(hpfollow.FieldElineupmallPhotoDaily)) +} + +// WhereElineupmallPhotoA4 applies the entql string predicate on the elineupmall_photo_a4 field. +func (f *HPFollowFilter) WhereElineupmallPhotoA4(p entql.StringP) { + f.Where(p.Field(hpfollow.FieldElineupmallPhotoA4)) +} + +// WhereElineupmallPhotoA5 applies the entql string predicate on the elineupmall_photo_a5 field. +func (f *HPFollowFilter) WhereElineupmallPhotoA5(p entql.StringP) { + f.Where(p.Field(hpfollow.FieldElineupmallPhotoA5)) +} + +// WhereElineupmallPhoto2l applies the entql string predicate on the elineupmall_photo_2l field. +func (f *HPFollowFilter) WhereElineupmallPhoto2l(p entql.StringP) { + f.Where(p.Field(hpfollow.FieldElineupmallPhoto2l)) +} + +// WhereElineupmallPhotoOther applies the entql string predicate on the elineupmall_photo_other field. +func (f *HPFollowFilter) WhereElineupmallPhotoOther(p entql.StringP) { + f.Where(p.Field(hpfollow.FieldElineupmallPhotoOther)) +} + +// WhereElineupmallPhotoAlbum applies the entql string predicate on the elineupmall_photo_album field. +func (f *HPFollowFilter) WhereElineupmallPhotoAlbum(p entql.StringP) { + f.Where(p.Field(hpfollow.FieldElineupmallPhotoAlbum)) +} + +// WhereElineupmallPhotoAlbumOther applies the entql string predicate on the elineupmall_photo_album_other field. +func (f *HPFollowFilter) WhereElineupmallPhotoAlbumOther(p entql.StringP) { + f.Where(p.Field(hpfollow.FieldElineupmallPhotoAlbumOther)) +} + +// WhereElineupmallPhotoBook applies the entql string predicate on the elineupmall_photo_book field. +func (f *HPFollowFilter) WhereElineupmallPhotoBook(p entql.StringP) { + f.Where(p.Field(hpfollow.FieldElineupmallPhotoBook)) +} + +// WhereElineupmallPhotoBookOther applies the entql string predicate on the elineupmall_photo_book_other field. +func (f *HPFollowFilter) WhereElineupmallPhotoBookOther(p entql.StringP) { + f.Where(p.Field(hpfollow.FieldElineupmallPhotoBookOther)) +} + +// WhereElineupmallDvd applies the entql string predicate on the elineupmall_dvd field. +func (f *HPFollowFilter) WhereElineupmallDvd(p entql.StringP) { + f.Where(p.Field(hpfollow.FieldElineupmallDvd)) +} + +// WhereElineupmallDvdMagazine applies the entql string predicate on the elineupmall_dvd_magazine field. +func (f *HPFollowFilter) WhereElineupmallDvdMagazine(p entql.StringP) { + f.Where(p.Field(hpfollow.FieldElineupmallDvdMagazine)) +} + +// WhereElineupmallDvdMagazineOther applies the entql string predicate on the elineupmall_dvd_magazine_other field. +func (f *HPFollowFilter) WhereElineupmallDvdMagazineOther(p entql.StringP) { + f.Where(p.Field(hpfollow.FieldElineupmallDvdMagazineOther)) +} + +// WhereElineupmallBlueray applies the entql string predicate on the elineupmall_blueray field. +func (f *HPFollowFilter) WhereElineupmallBlueray(p entql.StringP) { + f.Where(p.Field(hpfollow.FieldElineupmallBlueray)) +} + +// WhereElineupmallPenlight applies the entql string predicate on the elineupmall_penlight field. +func (f *HPFollowFilter) WhereElineupmallPenlight(p entql.StringP) { + f.Where(p.Field(hpfollow.FieldElineupmallPenlight)) +} + +// WhereElineupmallCollectionPinnapPoster applies the entql string predicate on the elineupmall_collection_pinnap_poster field. +func (f *HPFollowFilter) WhereElineupmallCollectionPinnapPoster(p entql.StringP) { + f.Where(p.Field(hpfollow.FieldElineupmallCollectionPinnapPoster)) +} + +// WhereElineupmallCollectionPhoto applies the entql string predicate on the elineupmall_collection_photo field. +func (f *HPFollowFilter) WhereElineupmallCollectionPhoto(p entql.StringP) { + f.Where(p.Field(hpfollow.FieldElineupmallCollectionPhoto)) +} + +// WhereElineupmallCollectionOther applies the entql string predicate on the elineupmall_collection_other field. +func (f *HPFollowFilter) WhereElineupmallCollectionOther(p entql.StringP) { + f.Where(p.Field(hpfollow.FieldElineupmallCollectionOther)) +} + +// WhereElineupmallTshirt applies the entql string predicate on the elineupmall_tshirt field. +func (f *HPFollowFilter) WhereElineupmallTshirt(p entql.StringP) { + f.Where(p.Field(hpfollow.FieldElineupmallTshirt)) +} + +// WhereElineupmallMicrofiberTowel applies the entql string predicate on the elineupmall_microfiber_towel field. +func (f *HPFollowFilter) WhereElineupmallMicrofiberTowel(p entql.StringP) { + f.Where(p.Field(hpfollow.FieldElineupmallMicrofiberTowel)) +} + +// WhereElineupmallMufflerTowel applies the entql string predicate on the elineupmall_muffler_towel field. +func (f *HPFollowFilter) WhereElineupmallMufflerTowel(p entql.StringP) { + f.Where(p.Field(hpfollow.FieldElineupmallMufflerTowel)) +} + +// WhereElineupmallFsk applies the entql string predicate on the elineupmall_fsk field. +func (f *HPFollowFilter) WhereElineupmallFsk(p entql.StringP) { + f.Where(p.Field(hpfollow.FieldElineupmallFsk)) +} + +// WhereElineupmallKeyringOther applies the entql string predicate on the elineupmall_keyring_other field. +func (f *HPFollowFilter) WhereElineupmallKeyringOther(p entql.StringP) { + f.Where(p.Field(hpfollow.FieldElineupmallKeyringOther)) +} + +// WhereElineupmallClearFile applies the entql string predicate on the elineupmall_clear_file field. +func (f *HPFollowFilter) WhereElineupmallClearFile(p entql.StringP) { + f.Where(p.Field(hpfollow.FieldElineupmallClearFile)) +} + // WhereHasUser applies a predicate to check if query has an edge user. func (f *HPFollowFilter) WhereHasUser() { f.Where(entql.HasEdge("user")) diff --git a/go/service/ent/gql_collection.go b/go/service/ent/gql_collection.go index 3dde803..b06bc7f 100644 --- a/go/service/ent/gql_collection.go +++ b/go/service/ent/gql_collection.go @@ -1432,6 +1432,126 @@ func (hf *HPFollowQuery) collectField(ctx context.Context, opCtx *graphql.Operat selectedFields = append(selectedFields, hpfollow.FieldType) fieldSeen[hpfollow.FieldType] = struct{}{} } + case "elineupmallOther": + if _, ok := fieldSeen[hpfollow.FieldElineupmallOther]; !ok { + selectedFields = append(selectedFields, hpfollow.FieldElineupmallOther) + fieldSeen[hpfollow.FieldElineupmallOther] = struct{}{} + } + case "elineupmallPhotoDaily": + if _, ok := fieldSeen[hpfollow.FieldElineupmallPhotoDaily]; !ok { + selectedFields = append(selectedFields, hpfollow.FieldElineupmallPhotoDaily) + fieldSeen[hpfollow.FieldElineupmallPhotoDaily] = struct{}{} + } + case "elineupmallPhotoA4": + if _, ok := fieldSeen[hpfollow.FieldElineupmallPhotoA4]; !ok { + selectedFields = append(selectedFields, hpfollow.FieldElineupmallPhotoA4) + fieldSeen[hpfollow.FieldElineupmallPhotoA4] = struct{}{} + } + case "elineupmallPhotoA5": + if _, ok := fieldSeen[hpfollow.FieldElineupmallPhotoA5]; !ok { + selectedFields = append(selectedFields, hpfollow.FieldElineupmallPhotoA5) + fieldSeen[hpfollow.FieldElineupmallPhotoA5] = struct{}{} + } + case "elineupmallPhoto2l": + if _, ok := fieldSeen[hpfollow.FieldElineupmallPhoto2l]; !ok { + selectedFields = append(selectedFields, hpfollow.FieldElineupmallPhoto2l) + fieldSeen[hpfollow.FieldElineupmallPhoto2l] = struct{}{} + } + case "elineupmallPhotoOther": + if _, ok := fieldSeen[hpfollow.FieldElineupmallPhotoOther]; !ok { + selectedFields = append(selectedFields, hpfollow.FieldElineupmallPhotoOther) + fieldSeen[hpfollow.FieldElineupmallPhotoOther] = struct{}{} + } + case "elineupmallPhotoAlbum": + if _, ok := fieldSeen[hpfollow.FieldElineupmallPhotoAlbum]; !ok { + selectedFields = append(selectedFields, hpfollow.FieldElineupmallPhotoAlbum) + fieldSeen[hpfollow.FieldElineupmallPhotoAlbum] = struct{}{} + } + case "elineupmallPhotoAlbumOther": + if _, ok := fieldSeen[hpfollow.FieldElineupmallPhotoAlbumOther]; !ok { + selectedFields = append(selectedFields, hpfollow.FieldElineupmallPhotoAlbumOther) + fieldSeen[hpfollow.FieldElineupmallPhotoAlbumOther] = struct{}{} + } + case "elineupmallPhotoBook": + if _, ok := fieldSeen[hpfollow.FieldElineupmallPhotoBook]; !ok { + selectedFields = append(selectedFields, hpfollow.FieldElineupmallPhotoBook) + fieldSeen[hpfollow.FieldElineupmallPhotoBook] = struct{}{} + } + case "elineupmallPhotoBookOther": + if _, ok := fieldSeen[hpfollow.FieldElineupmallPhotoBookOther]; !ok { + selectedFields = append(selectedFields, hpfollow.FieldElineupmallPhotoBookOther) + fieldSeen[hpfollow.FieldElineupmallPhotoBookOther] = struct{}{} + } + case "elineupmallDvd": + if _, ok := fieldSeen[hpfollow.FieldElineupmallDvd]; !ok { + selectedFields = append(selectedFields, hpfollow.FieldElineupmallDvd) + fieldSeen[hpfollow.FieldElineupmallDvd] = struct{}{} + } + case "elineupmallDvdMagazine": + if _, ok := fieldSeen[hpfollow.FieldElineupmallDvdMagazine]; !ok { + selectedFields = append(selectedFields, hpfollow.FieldElineupmallDvdMagazine) + fieldSeen[hpfollow.FieldElineupmallDvdMagazine] = struct{}{} + } + case "elineupmallDvdMagazineOther": + if _, ok := fieldSeen[hpfollow.FieldElineupmallDvdMagazineOther]; !ok { + selectedFields = append(selectedFields, hpfollow.FieldElineupmallDvdMagazineOther) + fieldSeen[hpfollow.FieldElineupmallDvdMagazineOther] = struct{}{} + } + case "elineupmallBlueray": + if _, ok := fieldSeen[hpfollow.FieldElineupmallBlueray]; !ok { + selectedFields = append(selectedFields, hpfollow.FieldElineupmallBlueray) + fieldSeen[hpfollow.FieldElineupmallBlueray] = struct{}{} + } + case "elineupmallPenlight": + if _, ok := fieldSeen[hpfollow.FieldElineupmallPenlight]; !ok { + selectedFields = append(selectedFields, hpfollow.FieldElineupmallPenlight) + fieldSeen[hpfollow.FieldElineupmallPenlight] = struct{}{} + } + case "elineupmallCollectionPinnapPoster": + if _, ok := fieldSeen[hpfollow.FieldElineupmallCollectionPinnapPoster]; !ok { + selectedFields = append(selectedFields, hpfollow.FieldElineupmallCollectionPinnapPoster) + fieldSeen[hpfollow.FieldElineupmallCollectionPinnapPoster] = struct{}{} + } + case "elineupmallCollectionPhoto": + if _, ok := fieldSeen[hpfollow.FieldElineupmallCollectionPhoto]; !ok { + selectedFields = append(selectedFields, hpfollow.FieldElineupmallCollectionPhoto) + fieldSeen[hpfollow.FieldElineupmallCollectionPhoto] = struct{}{} + } + case "elineupmallCollectionOther": + if _, ok := fieldSeen[hpfollow.FieldElineupmallCollectionOther]; !ok { + selectedFields = append(selectedFields, hpfollow.FieldElineupmallCollectionOther) + fieldSeen[hpfollow.FieldElineupmallCollectionOther] = struct{}{} + } + case "elineupmallTshirt": + if _, ok := fieldSeen[hpfollow.FieldElineupmallTshirt]; !ok { + selectedFields = append(selectedFields, hpfollow.FieldElineupmallTshirt) + fieldSeen[hpfollow.FieldElineupmallTshirt] = struct{}{} + } + case "elineupmallMicrofiberTowel": + if _, ok := fieldSeen[hpfollow.FieldElineupmallMicrofiberTowel]; !ok { + selectedFields = append(selectedFields, hpfollow.FieldElineupmallMicrofiberTowel) + fieldSeen[hpfollow.FieldElineupmallMicrofiberTowel] = struct{}{} + } + case "elineupmallMufflerTowel": + if _, ok := fieldSeen[hpfollow.FieldElineupmallMufflerTowel]; !ok { + selectedFields = append(selectedFields, hpfollow.FieldElineupmallMufflerTowel) + fieldSeen[hpfollow.FieldElineupmallMufflerTowel] = struct{}{} + } + case "elineupmallFsk": + if _, ok := fieldSeen[hpfollow.FieldElineupmallFsk]; !ok { + selectedFields = append(selectedFields, hpfollow.FieldElineupmallFsk) + fieldSeen[hpfollow.FieldElineupmallFsk] = struct{}{} + } + case "elineupmallKeyringOther": + if _, ok := fieldSeen[hpfollow.FieldElineupmallKeyringOther]; !ok { + selectedFields = append(selectedFields, hpfollow.FieldElineupmallKeyringOther) + fieldSeen[hpfollow.FieldElineupmallKeyringOther] = struct{}{} + } + case "elineupmallClearFile": + if _, ok := fieldSeen[hpfollow.FieldElineupmallClearFile]; !ok { + selectedFields = append(selectedFields, hpfollow.FieldElineupmallClearFile) + fieldSeen[hpfollow.FieldElineupmallClearFile] = struct{}{} + } default: unknownSeen = true } diff --git a/go/service/ent/hpfollow.go b/go/service/ent/hpfollow.go index e00025b..eca9c1e 100644 --- a/go/service/ent/hpfollow.go +++ b/go/service/ent/hpfollow.go @@ -26,6 +26,54 @@ type HPFollow struct { UpdatedAt time.Time `json:"updated_at,omitempty"` // Type holds the value of the "type" field. Type enums.HPFollowType `json:"type,omitempty"` + // ElineupmallOther holds the value of the "elineupmall_other" field. + ElineupmallOther enums.HPFollowType `json:"elineupmall_other,omitempty"` + // ElineupmallPhotoDaily holds the value of the "elineupmall_photo_daily" field. + ElineupmallPhotoDaily enums.HPFollowType `json:"elineupmall_photo_daily,omitempty"` + // ElineupmallPhotoA4 holds the value of the "elineupmall_photo_a4" field. + ElineupmallPhotoA4 enums.HPFollowType `json:"elineupmall_photo_a4,omitempty"` + // ElineupmallPhotoA5 holds the value of the "elineupmall_photo_a5" field. + ElineupmallPhotoA5 enums.HPFollowType `json:"elineupmall_photo_a5,omitempty"` + // ElineupmallPhoto2l holds the value of the "elineupmall_photo_2l" field. + ElineupmallPhoto2l enums.HPFollowType `json:"elineupmall_photo_2l,omitempty"` + // ElineupmallPhotoOther holds the value of the "elineupmall_photo_other" field. + ElineupmallPhotoOther enums.HPFollowType `json:"elineupmall_photo_other,omitempty"` + // ElineupmallPhotoAlbum holds the value of the "elineupmall_photo_album" field. + ElineupmallPhotoAlbum enums.HPFollowType `json:"elineupmall_photo_album,omitempty"` + // ElineupmallPhotoAlbumOther holds the value of the "elineupmall_photo_album_other" field. + ElineupmallPhotoAlbumOther enums.HPFollowType `json:"elineupmall_photo_album_other,omitempty"` + // ElineupmallPhotoBook holds the value of the "elineupmall_photo_book" field. + ElineupmallPhotoBook enums.HPFollowType `json:"elineupmall_photo_book,omitempty"` + // ElineupmallPhotoBookOther holds the value of the "elineupmall_photo_book_other" field. + ElineupmallPhotoBookOther enums.HPFollowType `json:"elineupmall_photo_book_other,omitempty"` + // ElineupmallDvd holds the value of the "elineupmall_dvd" field. + ElineupmallDvd enums.HPFollowType `json:"elineupmall_dvd,omitempty"` + // ElineupmallDvdMagazine holds the value of the "elineupmall_dvd_magazine" field. + ElineupmallDvdMagazine enums.HPFollowType `json:"elineupmall_dvd_magazine,omitempty"` + // ElineupmallDvdMagazineOther holds the value of the "elineupmall_dvd_magazine_other" field. + ElineupmallDvdMagazineOther enums.HPFollowType `json:"elineupmall_dvd_magazine_other,omitempty"` + // ElineupmallBlueray holds the value of the "elineupmall_blueray" field. + ElineupmallBlueray enums.HPFollowType `json:"elineupmall_blueray,omitempty"` + // ElineupmallPenlight holds the value of the "elineupmall_penlight" field. + ElineupmallPenlight enums.HPFollowType `json:"elineupmall_penlight,omitempty"` + // ElineupmallCollectionPinnapPoster holds the value of the "elineupmall_collection_pinnap_poster" field. + ElineupmallCollectionPinnapPoster enums.HPFollowType `json:"elineupmall_collection_pinnap_poster,omitempty"` + // ElineupmallCollectionPhoto holds the value of the "elineupmall_collection_photo" field. + ElineupmallCollectionPhoto enums.HPFollowType `json:"elineupmall_collection_photo,omitempty"` + // ElineupmallCollectionOther holds the value of the "elineupmall_collection_other" field. + ElineupmallCollectionOther enums.HPFollowType `json:"elineupmall_collection_other,omitempty"` + // ElineupmallTshirt holds the value of the "elineupmall_tshirt" field. + ElineupmallTshirt enums.HPFollowType `json:"elineupmall_tshirt,omitempty"` + // ElineupmallMicrofiberTowel holds the value of the "elineupmall_microfiber_towel" field. + ElineupmallMicrofiberTowel enums.HPFollowType `json:"elineupmall_microfiber_towel,omitempty"` + // ElineupmallMufflerTowel holds the value of the "elineupmall_muffler_towel" field. + ElineupmallMufflerTowel enums.HPFollowType `json:"elineupmall_muffler_towel,omitempty"` + // ElineupmallFsk holds the value of the "elineupmall_fsk" field. + ElineupmallFsk enums.HPFollowType `json:"elineupmall_fsk,omitempty"` + // ElineupmallKeyringOther holds the value of the "elineupmall_keyring_other" field. + ElineupmallKeyringOther enums.HPFollowType `json:"elineupmall_keyring_other,omitempty"` + // ElineupmallClearFile holds the value of the "elineupmall_clear_file" field. + ElineupmallClearFile enums.HPFollowType `json:"elineupmall_clear_file,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the HPFollowQuery when eager-loading is set. Edges HPFollowEdges `json:"edges"` @@ -80,7 +128,7 @@ func (*HPFollow) scanValues(columns []string) ([]any, error) { switch columns[i] { case hpfollow.FieldID: values[i] = new(sql.NullInt64) - case hpfollow.FieldType: + case hpfollow.FieldType, hpfollow.FieldElineupmallOther, hpfollow.FieldElineupmallPhotoDaily, hpfollow.FieldElineupmallPhotoA4, hpfollow.FieldElineupmallPhotoA5, hpfollow.FieldElineupmallPhoto2l, hpfollow.FieldElineupmallPhotoOther, hpfollow.FieldElineupmallPhotoAlbum, hpfollow.FieldElineupmallPhotoAlbumOther, hpfollow.FieldElineupmallPhotoBook, hpfollow.FieldElineupmallPhotoBookOther, hpfollow.FieldElineupmallDvd, hpfollow.FieldElineupmallDvdMagazine, hpfollow.FieldElineupmallDvdMagazineOther, hpfollow.FieldElineupmallBlueray, hpfollow.FieldElineupmallPenlight, hpfollow.FieldElineupmallCollectionPinnapPoster, hpfollow.FieldElineupmallCollectionPhoto, hpfollow.FieldElineupmallCollectionOther, hpfollow.FieldElineupmallTshirt, hpfollow.FieldElineupmallMicrofiberTowel, hpfollow.FieldElineupmallMufflerTowel, hpfollow.FieldElineupmallFsk, hpfollow.FieldElineupmallKeyringOther, hpfollow.FieldElineupmallClearFile: values[i] = new(sql.NullString) case hpfollow.FieldCreatedAt, hpfollow.FieldUpdatedAt: values[i] = new(sql.NullTime) @@ -127,6 +175,150 @@ func (hf *HPFollow) assignValues(columns []string, values []any) error { } else if value.Valid { hf.Type = enums.HPFollowType(value.String) } + case hpfollow.FieldElineupmallOther: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field elineupmall_other", values[i]) + } else if value.Valid { + hf.ElineupmallOther = enums.HPFollowType(value.String) + } + case hpfollow.FieldElineupmallPhotoDaily: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field elineupmall_photo_daily", values[i]) + } else if value.Valid { + hf.ElineupmallPhotoDaily = enums.HPFollowType(value.String) + } + case hpfollow.FieldElineupmallPhotoA4: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field elineupmall_photo_a4", values[i]) + } else if value.Valid { + hf.ElineupmallPhotoA4 = enums.HPFollowType(value.String) + } + case hpfollow.FieldElineupmallPhotoA5: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field elineupmall_photo_a5", values[i]) + } else if value.Valid { + hf.ElineupmallPhotoA5 = enums.HPFollowType(value.String) + } + case hpfollow.FieldElineupmallPhoto2l: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field elineupmall_photo_2l", values[i]) + } else if value.Valid { + hf.ElineupmallPhoto2l = enums.HPFollowType(value.String) + } + case hpfollow.FieldElineupmallPhotoOther: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field elineupmall_photo_other", values[i]) + } else if value.Valid { + hf.ElineupmallPhotoOther = enums.HPFollowType(value.String) + } + case hpfollow.FieldElineupmallPhotoAlbum: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field elineupmall_photo_album", values[i]) + } else if value.Valid { + hf.ElineupmallPhotoAlbum = enums.HPFollowType(value.String) + } + case hpfollow.FieldElineupmallPhotoAlbumOther: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field elineupmall_photo_album_other", values[i]) + } else if value.Valid { + hf.ElineupmallPhotoAlbumOther = enums.HPFollowType(value.String) + } + case hpfollow.FieldElineupmallPhotoBook: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field elineupmall_photo_book", values[i]) + } else if value.Valid { + hf.ElineupmallPhotoBook = enums.HPFollowType(value.String) + } + case hpfollow.FieldElineupmallPhotoBookOther: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field elineupmall_photo_book_other", values[i]) + } else if value.Valid { + hf.ElineupmallPhotoBookOther = enums.HPFollowType(value.String) + } + case hpfollow.FieldElineupmallDvd: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field elineupmall_dvd", values[i]) + } else if value.Valid { + hf.ElineupmallDvd = enums.HPFollowType(value.String) + } + case hpfollow.FieldElineupmallDvdMagazine: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field elineupmall_dvd_magazine", values[i]) + } else if value.Valid { + hf.ElineupmallDvdMagazine = enums.HPFollowType(value.String) + } + case hpfollow.FieldElineupmallDvdMagazineOther: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field elineupmall_dvd_magazine_other", values[i]) + } else if value.Valid { + hf.ElineupmallDvdMagazineOther = enums.HPFollowType(value.String) + } + case hpfollow.FieldElineupmallBlueray: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field elineupmall_blueray", values[i]) + } else if value.Valid { + hf.ElineupmallBlueray = enums.HPFollowType(value.String) + } + case hpfollow.FieldElineupmallPenlight: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field elineupmall_penlight", values[i]) + } else if value.Valid { + hf.ElineupmallPenlight = enums.HPFollowType(value.String) + } + case hpfollow.FieldElineupmallCollectionPinnapPoster: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field elineupmall_collection_pinnap_poster", values[i]) + } else if value.Valid { + hf.ElineupmallCollectionPinnapPoster = enums.HPFollowType(value.String) + } + case hpfollow.FieldElineupmallCollectionPhoto: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field elineupmall_collection_photo", values[i]) + } else if value.Valid { + hf.ElineupmallCollectionPhoto = enums.HPFollowType(value.String) + } + case hpfollow.FieldElineupmallCollectionOther: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field elineupmall_collection_other", values[i]) + } else if value.Valid { + hf.ElineupmallCollectionOther = enums.HPFollowType(value.String) + } + case hpfollow.FieldElineupmallTshirt: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field elineupmall_tshirt", values[i]) + } else if value.Valid { + hf.ElineupmallTshirt = enums.HPFollowType(value.String) + } + case hpfollow.FieldElineupmallMicrofiberTowel: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field elineupmall_microfiber_towel", values[i]) + } else if value.Valid { + hf.ElineupmallMicrofiberTowel = enums.HPFollowType(value.String) + } + case hpfollow.FieldElineupmallMufflerTowel: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field elineupmall_muffler_towel", values[i]) + } else if value.Valid { + hf.ElineupmallMufflerTowel = enums.HPFollowType(value.String) + } + case hpfollow.FieldElineupmallFsk: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field elineupmall_fsk", values[i]) + } else if value.Valid { + hf.ElineupmallFsk = enums.HPFollowType(value.String) + } + case hpfollow.FieldElineupmallKeyringOther: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field elineupmall_keyring_other", values[i]) + } else if value.Valid { + hf.ElineupmallKeyringOther = enums.HPFollowType(value.String) + } + case hpfollow.FieldElineupmallClearFile: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field elineupmall_clear_file", values[i]) + } else if value.Valid { + hf.ElineupmallClearFile = enums.HPFollowType(value.String) + } case hpfollow.ForeignKeys[0]: if value, ok := values[i].(*sql.NullInt64); !ok { return fmt.Errorf("unexpected type %T for edge-field hp_follow_member", value) @@ -195,6 +387,78 @@ func (hf *HPFollow) String() string { builder.WriteString(", ") builder.WriteString("type=") builder.WriteString(fmt.Sprintf("%v", hf.Type)) + builder.WriteString(", ") + builder.WriteString("elineupmall_other=") + builder.WriteString(fmt.Sprintf("%v", hf.ElineupmallOther)) + builder.WriteString(", ") + builder.WriteString("elineupmall_photo_daily=") + builder.WriteString(fmt.Sprintf("%v", hf.ElineupmallPhotoDaily)) + builder.WriteString(", ") + builder.WriteString("elineupmall_photo_a4=") + builder.WriteString(fmt.Sprintf("%v", hf.ElineupmallPhotoA4)) + builder.WriteString(", ") + builder.WriteString("elineupmall_photo_a5=") + builder.WriteString(fmt.Sprintf("%v", hf.ElineupmallPhotoA5)) + builder.WriteString(", ") + builder.WriteString("elineupmall_photo_2l=") + builder.WriteString(fmt.Sprintf("%v", hf.ElineupmallPhoto2l)) + builder.WriteString(", ") + builder.WriteString("elineupmall_photo_other=") + builder.WriteString(fmt.Sprintf("%v", hf.ElineupmallPhotoOther)) + builder.WriteString(", ") + builder.WriteString("elineupmall_photo_album=") + builder.WriteString(fmt.Sprintf("%v", hf.ElineupmallPhotoAlbum)) + builder.WriteString(", ") + builder.WriteString("elineupmall_photo_album_other=") + builder.WriteString(fmt.Sprintf("%v", hf.ElineupmallPhotoAlbumOther)) + builder.WriteString(", ") + builder.WriteString("elineupmall_photo_book=") + builder.WriteString(fmt.Sprintf("%v", hf.ElineupmallPhotoBook)) + builder.WriteString(", ") + builder.WriteString("elineupmall_photo_book_other=") + builder.WriteString(fmt.Sprintf("%v", hf.ElineupmallPhotoBookOther)) + builder.WriteString(", ") + builder.WriteString("elineupmall_dvd=") + builder.WriteString(fmt.Sprintf("%v", hf.ElineupmallDvd)) + builder.WriteString(", ") + builder.WriteString("elineupmall_dvd_magazine=") + builder.WriteString(fmt.Sprintf("%v", hf.ElineupmallDvdMagazine)) + builder.WriteString(", ") + builder.WriteString("elineupmall_dvd_magazine_other=") + builder.WriteString(fmt.Sprintf("%v", hf.ElineupmallDvdMagazineOther)) + builder.WriteString(", ") + builder.WriteString("elineupmall_blueray=") + builder.WriteString(fmt.Sprintf("%v", hf.ElineupmallBlueray)) + builder.WriteString(", ") + builder.WriteString("elineupmall_penlight=") + builder.WriteString(fmt.Sprintf("%v", hf.ElineupmallPenlight)) + builder.WriteString(", ") + builder.WriteString("elineupmall_collection_pinnap_poster=") + builder.WriteString(fmt.Sprintf("%v", hf.ElineupmallCollectionPinnapPoster)) + builder.WriteString(", ") + builder.WriteString("elineupmall_collection_photo=") + builder.WriteString(fmt.Sprintf("%v", hf.ElineupmallCollectionPhoto)) + builder.WriteString(", ") + builder.WriteString("elineupmall_collection_other=") + builder.WriteString(fmt.Sprintf("%v", hf.ElineupmallCollectionOther)) + builder.WriteString(", ") + builder.WriteString("elineupmall_tshirt=") + builder.WriteString(fmt.Sprintf("%v", hf.ElineupmallTshirt)) + builder.WriteString(", ") + builder.WriteString("elineupmall_microfiber_towel=") + builder.WriteString(fmt.Sprintf("%v", hf.ElineupmallMicrofiberTowel)) + builder.WriteString(", ") + builder.WriteString("elineupmall_muffler_towel=") + builder.WriteString(fmt.Sprintf("%v", hf.ElineupmallMufflerTowel)) + builder.WriteString(", ") + builder.WriteString("elineupmall_fsk=") + builder.WriteString(fmt.Sprintf("%v", hf.ElineupmallFsk)) + builder.WriteString(", ") + builder.WriteString("elineupmall_keyring_other=") + builder.WriteString(fmt.Sprintf("%v", hf.ElineupmallKeyringOther)) + builder.WriteString(", ") + builder.WriteString("elineupmall_clear_file=") + builder.WriteString(fmt.Sprintf("%v", hf.ElineupmallClearFile)) builder.WriteByte(')') return builder.String() } diff --git a/go/service/ent/hpfollow/hpfollow.go b/go/service/ent/hpfollow/hpfollow.go index cc37fe0..e4f8c88 100644 --- a/go/service/ent/hpfollow/hpfollow.go +++ b/go/service/ent/hpfollow/hpfollow.go @@ -23,6 +23,54 @@ const ( FieldUpdatedAt = "updated_at" // FieldType holds the string denoting the type field in the database. FieldType = "type" + // FieldElineupmallOther holds the string denoting the elineupmall_other field in the database. + FieldElineupmallOther = "elineupmall_other" + // FieldElineupmallPhotoDaily holds the string denoting the elineupmall_photo_daily field in the database. + FieldElineupmallPhotoDaily = "elineupmall_photo_daily" + // FieldElineupmallPhotoA4 holds the string denoting the elineupmall_photo_a4 field in the database. + FieldElineupmallPhotoA4 = "elineupmall_photo_a4" + // FieldElineupmallPhotoA5 holds the string denoting the elineupmall_photo_a5 field in the database. + FieldElineupmallPhotoA5 = "elineupmall_photo_a5" + // FieldElineupmallPhoto2l holds the string denoting the elineupmall_photo_2l field in the database. + FieldElineupmallPhoto2l = "elineupmall_photo_2l" + // FieldElineupmallPhotoOther holds the string denoting the elineupmall_photo_other field in the database. + FieldElineupmallPhotoOther = "elineupmall_photo_other" + // FieldElineupmallPhotoAlbum holds the string denoting the elineupmall_photo_album field in the database. + FieldElineupmallPhotoAlbum = "elineupmall_photo_album" + // FieldElineupmallPhotoAlbumOther holds the string denoting the elineupmall_photo_album_other field in the database. + FieldElineupmallPhotoAlbumOther = "elineupmall_photo_album_other" + // FieldElineupmallPhotoBook holds the string denoting the elineupmall_photo_book field in the database. + FieldElineupmallPhotoBook = "elineupmall_photo_book" + // FieldElineupmallPhotoBookOther holds the string denoting the elineupmall_photo_book_other field in the database. + FieldElineupmallPhotoBookOther = "elineupmall_photo_book_other" + // FieldElineupmallDvd holds the string denoting the elineupmall_dvd field in the database. + FieldElineupmallDvd = "elineupmall_dvd" + // FieldElineupmallDvdMagazine holds the string denoting the elineupmall_dvd_magazine field in the database. + FieldElineupmallDvdMagazine = "elineupmall_dvd_magazine" + // FieldElineupmallDvdMagazineOther holds the string denoting the elineupmall_dvd_magazine_other field in the database. + FieldElineupmallDvdMagazineOther = "elineupmall_dvd_magazine_other" + // FieldElineupmallBlueray holds the string denoting the elineupmall_blueray field in the database. + FieldElineupmallBlueray = "elineupmall_blueray" + // FieldElineupmallPenlight holds the string denoting the elineupmall_penlight field in the database. + FieldElineupmallPenlight = "elineupmall_penlight" + // FieldElineupmallCollectionPinnapPoster holds the string denoting the elineupmall_collection_pinnap_poster field in the database. + FieldElineupmallCollectionPinnapPoster = "elineupmall_collection_pinnap_poster" + // FieldElineupmallCollectionPhoto holds the string denoting the elineupmall_collection_photo field in the database. + FieldElineupmallCollectionPhoto = "elineupmall_collection_photo" + // FieldElineupmallCollectionOther holds the string denoting the elineupmall_collection_other field in the database. + FieldElineupmallCollectionOther = "elineupmall_collection_other" + // FieldElineupmallTshirt holds the string denoting the elineupmall_tshirt field in the database. + FieldElineupmallTshirt = "elineupmall_tshirt" + // FieldElineupmallMicrofiberTowel holds the string denoting the elineupmall_microfiber_towel field in the database. + FieldElineupmallMicrofiberTowel = "elineupmall_microfiber_towel" + // FieldElineupmallMufflerTowel holds the string denoting the elineupmall_muffler_towel field in the database. + FieldElineupmallMufflerTowel = "elineupmall_muffler_towel" + // FieldElineupmallFsk holds the string denoting the elineupmall_fsk field in the database. + FieldElineupmallFsk = "elineupmall_fsk" + // FieldElineupmallKeyringOther holds the string denoting the elineupmall_keyring_other field in the database. + FieldElineupmallKeyringOther = "elineupmall_keyring_other" + // FieldElineupmallClearFile holds the string denoting the elineupmall_clear_file field in the database. + FieldElineupmallClearFile = "elineupmall_clear_file" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeMember holds the string denoting the member edge name in mutations. @@ -51,6 +99,30 @@ var Columns = []string{ FieldCreatedAt, FieldUpdatedAt, FieldType, + FieldElineupmallOther, + FieldElineupmallPhotoDaily, + FieldElineupmallPhotoA4, + FieldElineupmallPhotoA5, + FieldElineupmallPhoto2l, + FieldElineupmallPhotoOther, + FieldElineupmallPhotoAlbum, + FieldElineupmallPhotoAlbumOther, + FieldElineupmallPhotoBook, + FieldElineupmallPhotoBookOther, + FieldElineupmallDvd, + FieldElineupmallDvdMagazine, + FieldElineupmallDvdMagazineOther, + FieldElineupmallBlueray, + FieldElineupmallPenlight, + FieldElineupmallCollectionPinnapPoster, + FieldElineupmallCollectionPhoto, + FieldElineupmallCollectionOther, + FieldElineupmallTshirt, + FieldElineupmallMicrofiberTowel, + FieldElineupmallMufflerTowel, + FieldElineupmallFsk, + FieldElineupmallKeyringOther, + FieldElineupmallClearFile, } // ForeignKeys holds the SQL foreign-keys that are owned by the "hp_follows" @@ -96,6 +168,294 @@ func TypeValidator(_type enums.HPFollowType) error { } } +const DefaultElineupmallOther enums.HPFollowType = "unknown" + +// ElineupmallOtherValidator is a validator for the "elineupmall_other" field enum values. It is called by the builders before save. +func ElineupmallOtherValidator(eo enums.HPFollowType) error { + switch eo { + case "follow", "follow_with_notification", "unfollow", "unknown": + return nil + default: + return fmt.Errorf("hpfollow: invalid enum value for elineupmall_other field: %q", eo) + } +} + +const DefaultElineupmallPhotoDaily enums.HPFollowType = "unknown" + +// ElineupmallPhotoDailyValidator is a validator for the "elineupmall_photo_daily" field enum values. It is called by the builders before save. +func ElineupmallPhotoDailyValidator(epd enums.HPFollowType) error { + switch epd { + case "follow", "follow_with_notification", "unfollow", "unknown": + return nil + default: + return fmt.Errorf("hpfollow: invalid enum value for elineupmall_photo_daily field: %q", epd) + } +} + +const DefaultElineupmallPhotoA4 enums.HPFollowType = "unknown" + +// ElineupmallPhotoA4Validator is a validator for the "elineupmall_photo_a4" field enum values. It is called by the builders before save. +func ElineupmallPhotoA4Validator(elineupmall_photo_a enums.HPFollowType) error { + switch elineupmall_photo_a { + case "follow", "follow_with_notification", "unfollow", "unknown": + return nil + default: + return fmt.Errorf("hpfollow: invalid enum value for elineupmall_photo_a4 field: %q", elineupmall_photo_a) + } +} + +const DefaultElineupmallPhotoA5 enums.HPFollowType = "unknown" + +// ElineupmallPhotoA5Validator is a validator for the "elineupmall_photo_a5" field enum values. It is called by the builders before save. +func ElineupmallPhotoA5Validator(elineupmall_photo_a enums.HPFollowType) error { + switch elineupmall_photo_a { + case "follow", "follow_with_notification", "unfollow", "unknown": + return nil + default: + return fmt.Errorf("hpfollow: invalid enum value for elineupmall_photo_a5 field: %q", elineupmall_photo_a) + } +} + +const DefaultElineupmallPhoto2l enums.HPFollowType = "unknown" + +// ElineupmallPhoto2lValidator is a validator for the "elineupmall_photo_2l" field enum values. It is called by the builders before save. +func ElineupmallPhoto2lValidator(ep2 enums.HPFollowType) error { + switch ep2 { + case "follow", "follow_with_notification", "unfollow", "unknown": + return nil + default: + return fmt.Errorf("hpfollow: invalid enum value for elineupmall_photo_2l field: %q", ep2) + } +} + +const DefaultElineupmallPhotoOther enums.HPFollowType = "unknown" + +// ElineupmallPhotoOtherValidator is a validator for the "elineupmall_photo_other" field enum values. It is called by the builders before save. +func ElineupmallPhotoOtherValidator(epo enums.HPFollowType) error { + switch epo { + case "follow", "follow_with_notification", "unfollow", "unknown": + return nil + default: + return fmt.Errorf("hpfollow: invalid enum value for elineupmall_photo_other field: %q", epo) + } +} + +const DefaultElineupmallPhotoAlbum enums.HPFollowType = "unknown" + +// ElineupmallPhotoAlbumValidator is a validator for the "elineupmall_photo_album" field enum values. It is called by the builders before save. +func ElineupmallPhotoAlbumValidator(epa enums.HPFollowType) error { + switch epa { + case "follow", "follow_with_notification", "unfollow", "unknown": + return nil + default: + return fmt.Errorf("hpfollow: invalid enum value for elineupmall_photo_album field: %q", epa) + } +} + +const DefaultElineupmallPhotoAlbumOther enums.HPFollowType = "unknown" + +// ElineupmallPhotoAlbumOtherValidator is a validator for the "elineupmall_photo_album_other" field enum values. It is called by the builders before save. +func ElineupmallPhotoAlbumOtherValidator(epao enums.HPFollowType) error { + switch epao { + case "follow", "follow_with_notification", "unfollow", "unknown": + return nil + default: + return fmt.Errorf("hpfollow: invalid enum value for elineupmall_photo_album_other field: %q", epao) + } +} + +const DefaultElineupmallPhotoBook enums.HPFollowType = "unknown" + +// ElineupmallPhotoBookValidator is a validator for the "elineupmall_photo_book" field enum values. It is called by the builders before save. +func ElineupmallPhotoBookValidator(epb enums.HPFollowType) error { + switch epb { + case "follow", "follow_with_notification", "unfollow", "unknown": + return nil + default: + return fmt.Errorf("hpfollow: invalid enum value for elineupmall_photo_book field: %q", epb) + } +} + +const DefaultElineupmallPhotoBookOther enums.HPFollowType = "unknown" + +// ElineupmallPhotoBookOtherValidator is a validator for the "elineupmall_photo_book_other" field enum values. It is called by the builders before save. +func ElineupmallPhotoBookOtherValidator(epbo enums.HPFollowType) error { + switch epbo { + case "follow", "follow_with_notification", "unfollow", "unknown": + return nil + default: + return fmt.Errorf("hpfollow: invalid enum value for elineupmall_photo_book_other field: %q", epbo) + } +} + +const DefaultElineupmallDvd enums.HPFollowType = "unknown" + +// ElineupmallDvdValidator is a validator for the "elineupmall_dvd" field enum values. It is called by the builders before save. +func ElineupmallDvdValidator(ed enums.HPFollowType) error { + switch ed { + case "follow", "follow_with_notification", "unfollow", "unknown": + return nil + default: + return fmt.Errorf("hpfollow: invalid enum value for elineupmall_dvd field: %q", ed) + } +} + +const DefaultElineupmallDvdMagazine enums.HPFollowType = "unknown" + +// ElineupmallDvdMagazineValidator is a validator for the "elineupmall_dvd_magazine" field enum values. It is called by the builders before save. +func ElineupmallDvdMagazineValidator(edm enums.HPFollowType) error { + switch edm { + case "follow", "follow_with_notification", "unfollow", "unknown": + return nil + default: + return fmt.Errorf("hpfollow: invalid enum value for elineupmall_dvd_magazine field: %q", edm) + } +} + +const DefaultElineupmallDvdMagazineOther enums.HPFollowType = "unknown" + +// ElineupmallDvdMagazineOtherValidator is a validator for the "elineupmall_dvd_magazine_other" field enum values. It is called by the builders before save. +func ElineupmallDvdMagazineOtherValidator(edmo enums.HPFollowType) error { + switch edmo { + case "follow", "follow_with_notification", "unfollow", "unknown": + return nil + default: + return fmt.Errorf("hpfollow: invalid enum value for elineupmall_dvd_magazine_other field: %q", edmo) + } +} + +const DefaultElineupmallBlueray enums.HPFollowType = "unknown" + +// ElineupmallBluerayValidator is a validator for the "elineupmall_blueray" field enum values. It is called by the builders before save. +func ElineupmallBluerayValidator(eb enums.HPFollowType) error { + switch eb { + case "follow", "follow_with_notification", "unfollow", "unknown": + return nil + default: + return fmt.Errorf("hpfollow: invalid enum value for elineupmall_blueray field: %q", eb) + } +} + +const DefaultElineupmallPenlight enums.HPFollowType = "unknown" + +// ElineupmallPenlightValidator is a validator for the "elineupmall_penlight" field enum values. It is called by the builders before save. +func ElineupmallPenlightValidator(ep enums.HPFollowType) error { + switch ep { + case "follow", "follow_with_notification", "unfollow", "unknown": + return nil + default: + return fmt.Errorf("hpfollow: invalid enum value for elineupmall_penlight field: %q", ep) + } +} + +const DefaultElineupmallCollectionPinnapPoster enums.HPFollowType = "unknown" + +// ElineupmallCollectionPinnapPosterValidator is a validator for the "elineupmall_collection_pinnap_poster" field enum values. It is called by the builders before save. +func ElineupmallCollectionPinnapPosterValidator(ecpp enums.HPFollowType) error { + switch ecpp { + case "follow", "follow_with_notification", "unfollow", "unknown": + return nil + default: + return fmt.Errorf("hpfollow: invalid enum value for elineupmall_collection_pinnap_poster field: %q", ecpp) + } +} + +const DefaultElineupmallCollectionPhoto enums.HPFollowType = "unknown" + +// ElineupmallCollectionPhotoValidator is a validator for the "elineupmall_collection_photo" field enum values. It is called by the builders before save. +func ElineupmallCollectionPhotoValidator(ecp enums.HPFollowType) error { + switch ecp { + case "follow", "follow_with_notification", "unfollow", "unknown": + return nil + default: + return fmt.Errorf("hpfollow: invalid enum value for elineupmall_collection_photo field: %q", ecp) + } +} + +const DefaultElineupmallCollectionOther enums.HPFollowType = "unknown" + +// ElineupmallCollectionOtherValidator is a validator for the "elineupmall_collection_other" field enum values. It is called by the builders before save. +func ElineupmallCollectionOtherValidator(eco enums.HPFollowType) error { + switch eco { + case "follow", "follow_with_notification", "unfollow", "unknown": + return nil + default: + return fmt.Errorf("hpfollow: invalid enum value for elineupmall_collection_other field: %q", eco) + } +} + +const DefaultElineupmallTshirt enums.HPFollowType = "unknown" + +// ElineupmallTshirtValidator is a validator for the "elineupmall_tshirt" field enum values. It is called by the builders before save. +func ElineupmallTshirtValidator(et enums.HPFollowType) error { + switch et { + case "follow", "follow_with_notification", "unfollow", "unknown": + return nil + default: + return fmt.Errorf("hpfollow: invalid enum value for elineupmall_tshirt field: %q", et) + } +} + +const DefaultElineupmallMicrofiberTowel enums.HPFollowType = "unknown" + +// ElineupmallMicrofiberTowelValidator is a validator for the "elineupmall_microfiber_towel" field enum values. It is called by the builders before save. +func ElineupmallMicrofiberTowelValidator(emt enums.HPFollowType) error { + switch emt { + case "follow", "follow_with_notification", "unfollow", "unknown": + return nil + default: + return fmt.Errorf("hpfollow: invalid enum value for elineupmall_microfiber_towel field: %q", emt) + } +} + +const DefaultElineupmallMufflerTowel enums.HPFollowType = "unknown" + +// ElineupmallMufflerTowelValidator is a validator for the "elineupmall_muffler_towel" field enum values. It is called by the builders before save. +func ElineupmallMufflerTowelValidator(emt enums.HPFollowType) error { + switch emt { + case "follow", "follow_with_notification", "unfollow", "unknown": + return nil + default: + return fmt.Errorf("hpfollow: invalid enum value for elineupmall_muffler_towel field: %q", emt) + } +} + +const DefaultElineupmallFsk enums.HPFollowType = "unknown" + +// ElineupmallFskValidator is a validator for the "elineupmall_fsk" field enum values. It is called by the builders before save. +func ElineupmallFskValidator(ef enums.HPFollowType) error { + switch ef { + case "follow", "follow_with_notification", "unfollow", "unknown": + return nil + default: + return fmt.Errorf("hpfollow: invalid enum value for elineupmall_fsk field: %q", ef) + } +} + +const DefaultElineupmallKeyringOther enums.HPFollowType = "unknown" + +// ElineupmallKeyringOtherValidator is a validator for the "elineupmall_keyring_other" field enum values. It is called by the builders before save. +func ElineupmallKeyringOtherValidator(eko enums.HPFollowType) error { + switch eko { + case "follow", "follow_with_notification", "unfollow", "unknown": + return nil + default: + return fmt.Errorf("hpfollow: invalid enum value for elineupmall_keyring_other field: %q", eko) + } +} + +const DefaultElineupmallClearFile enums.HPFollowType = "unknown" + +// ElineupmallClearFileValidator is a validator for the "elineupmall_clear_file" field enum values. It is called by the builders before save. +func ElineupmallClearFileValidator(ecf enums.HPFollowType) error { + switch ecf { + case "follow", "follow_with_notification", "unfollow", "unknown": + return nil + default: + return fmt.Errorf("hpfollow: invalid enum value for elineupmall_clear_file field: %q", ecf) + } +} + // Order defines the ordering method for the HPFollow queries. type Order func(*sql.Selector) @@ -119,6 +479,126 @@ func ByType(opts ...sql.OrderTermOption) Order { return sql.OrderByField(FieldType, opts...).ToFunc() } +// ByElineupmallOther orders the results by the elineupmall_other field. +func ByElineupmallOther(opts ...sql.OrderTermOption) Order { + return sql.OrderByField(FieldElineupmallOther, opts...).ToFunc() +} + +// ByElineupmallPhotoDaily orders the results by the elineupmall_photo_daily field. +func ByElineupmallPhotoDaily(opts ...sql.OrderTermOption) Order { + return sql.OrderByField(FieldElineupmallPhotoDaily, opts...).ToFunc() +} + +// ByElineupmallPhotoA4 orders the results by the elineupmall_photo_a4 field. +func ByElineupmallPhotoA4(opts ...sql.OrderTermOption) Order { + return sql.OrderByField(FieldElineupmallPhotoA4, opts...).ToFunc() +} + +// ByElineupmallPhotoA5 orders the results by the elineupmall_photo_a5 field. +func ByElineupmallPhotoA5(opts ...sql.OrderTermOption) Order { + return sql.OrderByField(FieldElineupmallPhotoA5, opts...).ToFunc() +} + +// ByElineupmallPhoto2l orders the results by the elineupmall_photo_2l field. +func ByElineupmallPhoto2l(opts ...sql.OrderTermOption) Order { + return sql.OrderByField(FieldElineupmallPhoto2l, opts...).ToFunc() +} + +// ByElineupmallPhotoOther orders the results by the elineupmall_photo_other field. +func ByElineupmallPhotoOther(opts ...sql.OrderTermOption) Order { + return sql.OrderByField(FieldElineupmallPhotoOther, opts...).ToFunc() +} + +// ByElineupmallPhotoAlbum orders the results by the elineupmall_photo_album field. +func ByElineupmallPhotoAlbum(opts ...sql.OrderTermOption) Order { + return sql.OrderByField(FieldElineupmallPhotoAlbum, opts...).ToFunc() +} + +// ByElineupmallPhotoAlbumOther orders the results by the elineupmall_photo_album_other field. +func ByElineupmallPhotoAlbumOther(opts ...sql.OrderTermOption) Order { + return sql.OrderByField(FieldElineupmallPhotoAlbumOther, opts...).ToFunc() +} + +// ByElineupmallPhotoBook orders the results by the elineupmall_photo_book field. +func ByElineupmallPhotoBook(opts ...sql.OrderTermOption) Order { + return sql.OrderByField(FieldElineupmallPhotoBook, opts...).ToFunc() +} + +// ByElineupmallPhotoBookOther orders the results by the elineupmall_photo_book_other field. +func ByElineupmallPhotoBookOther(opts ...sql.OrderTermOption) Order { + return sql.OrderByField(FieldElineupmallPhotoBookOther, opts...).ToFunc() +} + +// ByElineupmallDvd orders the results by the elineupmall_dvd field. +func ByElineupmallDvd(opts ...sql.OrderTermOption) Order { + return sql.OrderByField(FieldElineupmallDvd, opts...).ToFunc() +} + +// ByElineupmallDvdMagazine orders the results by the elineupmall_dvd_magazine field. +func ByElineupmallDvdMagazine(opts ...sql.OrderTermOption) Order { + return sql.OrderByField(FieldElineupmallDvdMagazine, opts...).ToFunc() +} + +// ByElineupmallDvdMagazineOther orders the results by the elineupmall_dvd_magazine_other field. +func ByElineupmallDvdMagazineOther(opts ...sql.OrderTermOption) Order { + return sql.OrderByField(FieldElineupmallDvdMagazineOther, opts...).ToFunc() +} + +// ByElineupmallBlueray orders the results by the elineupmall_blueray field. +func ByElineupmallBlueray(opts ...sql.OrderTermOption) Order { + return sql.OrderByField(FieldElineupmallBlueray, opts...).ToFunc() +} + +// ByElineupmallPenlight orders the results by the elineupmall_penlight field. +func ByElineupmallPenlight(opts ...sql.OrderTermOption) Order { + return sql.OrderByField(FieldElineupmallPenlight, opts...).ToFunc() +} + +// ByElineupmallCollectionPinnapPoster orders the results by the elineupmall_collection_pinnap_poster field. +func ByElineupmallCollectionPinnapPoster(opts ...sql.OrderTermOption) Order { + return sql.OrderByField(FieldElineupmallCollectionPinnapPoster, opts...).ToFunc() +} + +// ByElineupmallCollectionPhoto orders the results by the elineupmall_collection_photo field. +func ByElineupmallCollectionPhoto(opts ...sql.OrderTermOption) Order { + return sql.OrderByField(FieldElineupmallCollectionPhoto, opts...).ToFunc() +} + +// ByElineupmallCollectionOther orders the results by the elineupmall_collection_other field. +func ByElineupmallCollectionOther(opts ...sql.OrderTermOption) Order { + return sql.OrderByField(FieldElineupmallCollectionOther, opts...).ToFunc() +} + +// ByElineupmallTshirt orders the results by the elineupmall_tshirt field. +func ByElineupmallTshirt(opts ...sql.OrderTermOption) Order { + return sql.OrderByField(FieldElineupmallTshirt, opts...).ToFunc() +} + +// ByElineupmallMicrofiberTowel orders the results by the elineupmall_microfiber_towel field. +func ByElineupmallMicrofiberTowel(opts ...sql.OrderTermOption) Order { + return sql.OrderByField(FieldElineupmallMicrofiberTowel, opts...).ToFunc() +} + +// ByElineupmallMufflerTowel orders the results by the elineupmall_muffler_towel field. +func ByElineupmallMufflerTowel(opts ...sql.OrderTermOption) Order { + return sql.OrderByField(FieldElineupmallMufflerTowel, opts...).ToFunc() +} + +// ByElineupmallFsk orders the results by the elineupmall_fsk field. +func ByElineupmallFsk(opts ...sql.OrderTermOption) Order { + return sql.OrderByField(FieldElineupmallFsk, opts...).ToFunc() +} + +// ByElineupmallKeyringOther orders the results by the elineupmall_keyring_other field. +func ByElineupmallKeyringOther(opts ...sql.OrderTermOption) Order { + return sql.OrderByField(FieldElineupmallKeyringOther, opts...).ToFunc() +} + +// ByElineupmallClearFile orders the results by the elineupmall_clear_file field. +func ByElineupmallClearFile(opts ...sql.OrderTermOption) Order { + return sql.OrderByField(FieldElineupmallClearFile, opts...).ToFunc() +} + // ByUserField orders the results by user field. func ByUserField(field string, opts ...sql.OrderTermOption) Order { return func(s *sql.Selector) { @@ -153,3 +633,171 @@ var ( // enums.HPFollowType must implement graphql.Unmarshaler. _ graphql.Unmarshaler = (*enums.HPFollowType)(nil) ) + +var ( + // enums.HPFollowType must implement graphql.Marshaler. + _ graphql.Marshaler = (*enums.HPFollowType)(nil) + // enums.HPFollowType must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*enums.HPFollowType)(nil) +) + +var ( + // enums.HPFollowType must implement graphql.Marshaler. + _ graphql.Marshaler = (*enums.HPFollowType)(nil) + // enums.HPFollowType must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*enums.HPFollowType)(nil) +) + +var ( + // enums.HPFollowType must implement graphql.Marshaler. + _ graphql.Marshaler = (*enums.HPFollowType)(nil) + // enums.HPFollowType must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*enums.HPFollowType)(nil) +) + +var ( + // enums.HPFollowType must implement graphql.Marshaler. + _ graphql.Marshaler = (*enums.HPFollowType)(nil) + // enums.HPFollowType must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*enums.HPFollowType)(nil) +) + +var ( + // enums.HPFollowType must implement graphql.Marshaler. + _ graphql.Marshaler = (*enums.HPFollowType)(nil) + // enums.HPFollowType must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*enums.HPFollowType)(nil) +) + +var ( + // enums.HPFollowType must implement graphql.Marshaler. + _ graphql.Marshaler = (*enums.HPFollowType)(nil) + // enums.HPFollowType must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*enums.HPFollowType)(nil) +) + +var ( + // enums.HPFollowType must implement graphql.Marshaler. + _ graphql.Marshaler = (*enums.HPFollowType)(nil) + // enums.HPFollowType must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*enums.HPFollowType)(nil) +) + +var ( + // enums.HPFollowType must implement graphql.Marshaler. + _ graphql.Marshaler = (*enums.HPFollowType)(nil) + // enums.HPFollowType must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*enums.HPFollowType)(nil) +) + +var ( + // enums.HPFollowType must implement graphql.Marshaler. + _ graphql.Marshaler = (*enums.HPFollowType)(nil) + // enums.HPFollowType must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*enums.HPFollowType)(nil) +) + +var ( + // enums.HPFollowType must implement graphql.Marshaler. + _ graphql.Marshaler = (*enums.HPFollowType)(nil) + // enums.HPFollowType must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*enums.HPFollowType)(nil) +) + +var ( + // enums.HPFollowType must implement graphql.Marshaler. + _ graphql.Marshaler = (*enums.HPFollowType)(nil) + // enums.HPFollowType must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*enums.HPFollowType)(nil) +) + +var ( + // enums.HPFollowType must implement graphql.Marshaler. + _ graphql.Marshaler = (*enums.HPFollowType)(nil) + // enums.HPFollowType must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*enums.HPFollowType)(nil) +) + +var ( + // enums.HPFollowType must implement graphql.Marshaler. + _ graphql.Marshaler = (*enums.HPFollowType)(nil) + // enums.HPFollowType must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*enums.HPFollowType)(nil) +) + +var ( + // enums.HPFollowType must implement graphql.Marshaler. + _ graphql.Marshaler = (*enums.HPFollowType)(nil) + // enums.HPFollowType must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*enums.HPFollowType)(nil) +) + +var ( + // enums.HPFollowType must implement graphql.Marshaler. + _ graphql.Marshaler = (*enums.HPFollowType)(nil) + // enums.HPFollowType must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*enums.HPFollowType)(nil) +) + +var ( + // enums.HPFollowType must implement graphql.Marshaler. + _ graphql.Marshaler = (*enums.HPFollowType)(nil) + // enums.HPFollowType must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*enums.HPFollowType)(nil) +) + +var ( + // enums.HPFollowType must implement graphql.Marshaler. + _ graphql.Marshaler = (*enums.HPFollowType)(nil) + // enums.HPFollowType must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*enums.HPFollowType)(nil) +) + +var ( + // enums.HPFollowType must implement graphql.Marshaler. + _ graphql.Marshaler = (*enums.HPFollowType)(nil) + // enums.HPFollowType must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*enums.HPFollowType)(nil) +) + +var ( + // enums.HPFollowType must implement graphql.Marshaler. + _ graphql.Marshaler = (*enums.HPFollowType)(nil) + // enums.HPFollowType must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*enums.HPFollowType)(nil) +) + +var ( + // enums.HPFollowType must implement graphql.Marshaler. + _ graphql.Marshaler = (*enums.HPFollowType)(nil) + // enums.HPFollowType must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*enums.HPFollowType)(nil) +) + +var ( + // enums.HPFollowType must implement graphql.Marshaler. + _ graphql.Marshaler = (*enums.HPFollowType)(nil) + // enums.HPFollowType must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*enums.HPFollowType)(nil) +) + +var ( + // enums.HPFollowType must implement graphql.Marshaler. + _ graphql.Marshaler = (*enums.HPFollowType)(nil) + // enums.HPFollowType must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*enums.HPFollowType)(nil) +) + +var ( + // enums.HPFollowType must implement graphql.Marshaler. + _ graphql.Marshaler = (*enums.HPFollowType)(nil) + // enums.HPFollowType must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*enums.HPFollowType)(nil) +) + +var ( + // enums.HPFollowType must implement graphql.Marshaler. + _ graphql.Marshaler = (*enums.HPFollowType)(nil) + // enums.HPFollowType must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*enums.HPFollowType)(nil) +) diff --git a/go/service/ent/hpfollow/where.go b/go/service/ent/hpfollow/where.go index f91dc80..f519fc9 100644 --- a/go/service/ent/hpfollow/where.go +++ b/go/service/ent/hpfollow/where.go @@ -196,6 +196,726 @@ func TypeNotIn(vs ...enums.HPFollowType) predicate.HPFollow { return predicate.HPFollow(sql.FieldNotIn(FieldType, v...)) } +// ElineupmallOtherEQ applies the EQ predicate on the "elineupmall_other" field. +func ElineupmallOtherEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldEQ(FieldElineupmallOther, vc)) +} + +// ElineupmallOtherNEQ applies the NEQ predicate on the "elineupmall_other" field. +func ElineupmallOtherNEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldNEQ(FieldElineupmallOther, vc)) +} + +// ElineupmallOtherIn applies the In predicate on the "elineupmall_other" field. +func ElineupmallOtherIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldIn(FieldElineupmallOther, v...)) +} + +// ElineupmallOtherNotIn applies the NotIn predicate on the "elineupmall_other" field. +func ElineupmallOtherNotIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldNotIn(FieldElineupmallOther, v...)) +} + +// ElineupmallPhotoDailyEQ applies the EQ predicate on the "elineupmall_photo_daily" field. +func ElineupmallPhotoDailyEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldEQ(FieldElineupmallPhotoDaily, vc)) +} + +// ElineupmallPhotoDailyNEQ applies the NEQ predicate on the "elineupmall_photo_daily" field. +func ElineupmallPhotoDailyNEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldNEQ(FieldElineupmallPhotoDaily, vc)) +} + +// ElineupmallPhotoDailyIn applies the In predicate on the "elineupmall_photo_daily" field. +func ElineupmallPhotoDailyIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldIn(FieldElineupmallPhotoDaily, v...)) +} + +// ElineupmallPhotoDailyNotIn applies the NotIn predicate on the "elineupmall_photo_daily" field. +func ElineupmallPhotoDailyNotIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldNotIn(FieldElineupmallPhotoDaily, v...)) +} + +// ElineupmallPhotoA4EQ applies the EQ predicate on the "elineupmall_photo_a4" field. +func ElineupmallPhotoA4EQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldEQ(FieldElineupmallPhotoA4, vc)) +} + +// ElineupmallPhotoA4NEQ applies the NEQ predicate on the "elineupmall_photo_a4" field. +func ElineupmallPhotoA4NEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldNEQ(FieldElineupmallPhotoA4, vc)) +} + +// ElineupmallPhotoA4In applies the In predicate on the "elineupmall_photo_a4" field. +func ElineupmallPhotoA4In(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldIn(FieldElineupmallPhotoA4, v...)) +} + +// ElineupmallPhotoA4NotIn applies the NotIn predicate on the "elineupmall_photo_a4" field. +func ElineupmallPhotoA4NotIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldNotIn(FieldElineupmallPhotoA4, v...)) +} + +// ElineupmallPhotoA5EQ applies the EQ predicate on the "elineupmall_photo_a5" field. +func ElineupmallPhotoA5EQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldEQ(FieldElineupmallPhotoA5, vc)) +} + +// ElineupmallPhotoA5NEQ applies the NEQ predicate on the "elineupmall_photo_a5" field. +func ElineupmallPhotoA5NEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldNEQ(FieldElineupmallPhotoA5, vc)) +} + +// ElineupmallPhotoA5In applies the In predicate on the "elineupmall_photo_a5" field. +func ElineupmallPhotoA5In(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldIn(FieldElineupmallPhotoA5, v...)) +} + +// ElineupmallPhotoA5NotIn applies the NotIn predicate on the "elineupmall_photo_a5" field. +func ElineupmallPhotoA5NotIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldNotIn(FieldElineupmallPhotoA5, v...)) +} + +// ElineupmallPhoto2lEQ applies the EQ predicate on the "elineupmall_photo_2l" field. +func ElineupmallPhoto2lEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldEQ(FieldElineupmallPhoto2l, vc)) +} + +// ElineupmallPhoto2lNEQ applies the NEQ predicate on the "elineupmall_photo_2l" field. +func ElineupmallPhoto2lNEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldNEQ(FieldElineupmallPhoto2l, vc)) +} + +// ElineupmallPhoto2lIn applies the In predicate on the "elineupmall_photo_2l" field. +func ElineupmallPhoto2lIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldIn(FieldElineupmallPhoto2l, v...)) +} + +// ElineupmallPhoto2lNotIn applies the NotIn predicate on the "elineupmall_photo_2l" field. +func ElineupmallPhoto2lNotIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldNotIn(FieldElineupmallPhoto2l, v...)) +} + +// ElineupmallPhotoOtherEQ applies the EQ predicate on the "elineupmall_photo_other" field. +func ElineupmallPhotoOtherEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldEQ(FieldElineupmallPhotoOther, vc)) +} + +// ElineupmallPhotoOtherNEQ applies the NEQ predicate on the "elineupmall_photo_other" field. +func ElineupmallPhotoOtherNEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldNEQ(FieldElineupmallPhotoOther, vc)) +} + +// ElineupmallPhotoOtherIn applies the In predicate on the "elineupmall_photo_other" field. +func ElineupmallPhotoOtherIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldIn(FieldElineupmallPhotoOther, v...)) +} + +// ElineupmallPhotoOtherNotIn applies the NotIn predicate on the "elineupmall_photo_other" field. +func ElineupmallPhotoOtherNotIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldNotIn(FieldElineupmallPhotoOther, v...)) +} + +// ElineupmallPhotoAlbumEQ applies the EQ predicate on the "elineupmall_photo_album" field. +func ElineupmallPhotoAlbumEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldEQ(FieldElineupmallPhotoAlbum, vc)) +} + +// ElineupmallPhotoAlbumNEQ applies the NEQ predicate on the "elineupmall_photo_album" field. +func ElineupmallPhotoAlbumNEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldNEQ(FieldElineupmallPhotoAlbum, vc)) +} + +// ElineupmallPhotoAlbumIn applies the In predicate on the "elineupmall_photo_album" field. +func ElineupmallPhotoAlbumIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldIn(FieldElineupmallPhotoAlbum, v...)) +} + +// ElineupmallPhotoAlbumNotIn applies the NotIn predicate on the "elineupmall_photo_album" field. +func ElineupmallPhotoAlbumNotIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldNotIn(FieldElineupmallPhotoAlbum, v...)) +} + +// ElineupmallPhotoAlbumOtherEQ applies the EQ predicate on the "elineupmall_photo_album_other" field. +func ElineupmallPhotoAlbumOtherEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldEQ(FieldElineupmallPhotoAlbumOther, vc)) +} + +// ElineupmallPhotoAlbumOtherNEQ applies the NEQ predicate on the "elineupmall_photo_album_other" field. +func ElineupmallPhotoAlbumOtherNEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldNEQ(FieldElineupmallPhotoAlbumOther, vc)) +} + +// ElineupmallPhotoAlbumOtherIn applies the In predicate on the "elineupmall_photo_album_other" field. +func ElineupmallPhotoAlbumOtherIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldIn(FieldElineupmallPhotoAlbumOther, v...)) +} + +// ElineupmallPhotoAlbumOtherNotIn applies the NotIn predicate on the "elineupmall_photo_album_other" field. +func ElineupmallPhotoAlbumOtherNotIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldNotIn(FieldElineupmallPhotoAlbumOther, v...)) +} + +// ElineupmallPhotoBookEQ applies the EQ predicate on the "elineupmall_photo_book" field. +func ElineupmallPhotoBookEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldEQ(FieldElineupmallPhotoBook, vc)) +} + +// ElineupmallPhotoBookNEQ applies the NEQ predicate on the "elineupmall_photo_book" field. +func ElineupmallPhotoBookNEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldNEQ(FieldElineupmallPhotoBook, vc)) +} + +// ElineupmallPhotoBookIn applies the In predicate on the "elineupmall_photo_book" field. +func ElineupmallPhotoBookIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldIn(FieldElineupmallPhotoBook, v...)) +} + +// ElineupmallPhotoBookNotIn applies the NotIn predicate on the "elineupmall_photo_book" field. +func ElineupmallPhotoBookNotIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldNotIn(FieldElineupmallPhotoBook, v...)) +} + +// ElineupmallPhotoBookOtherEQ applies the EQ predicate on the "elineupmall_photo_book_other" field. +func ElineupmallPhotoBookOtherEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldEQ(FieldElineupmallPhotoBookOther, vc)) +} + +// ElineupmallPhotoBookOtherNEQ applies the NEQ predicate on the "elineupmall_photo_book_other" field. +func ElineupmallPhotoBookOtherNEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldNEQ(FieldElineupmallPhotoBookOther, vc)) +} + +// ElineupmallPhotoBookOtherIn applies the In predicate on the "elineupmall_photo_book_other" field. +func ElineupmallPhotoBookOtherIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldIn(FieldElineupmallPhotoBookOther, v...)) +} + +// ElineupmallPhotoBookOtherNotIn applies the NotIn predicate on the "elineupmall_photo_book_other" field. +func ElineupmallPhotoBookOtherNotIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldNotIn(FieldElineupmallPhotoBookOther, v...)) +} + +// ElineupmallDvdEQ applies the EQ predicate on the "elineupmall_dvd" field. +func ElineupmallDvdEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldEQ(FieldElineupmallDvd, vc)) +} + +// ElineupmallDvdNEQ applies the NEQ predicate on the "elineupmall_dvd" field. +func ElineupmallDvdNEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldNEQ(FieldElineupmallDvd, vc)) +} + +// ElineupmallDvdIn applies the In predicate on the "elineupmall_dvd" field. +func ElineupmallDvdIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldIn(FieldElineupmallDvd, v...)) +} + +// ElineupmallDvdNotIn applies the NotIn predicate on the "elineupmall_dvd" field. +func ElineupmallDvdNotIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldNotIn(FieldElineupmallDvd, v...)) +} + +// ElineupmallDvdMagazineEQ applies the EQ predicate on the "elineupmall_dvd_magazine" field. +func ElineupmallDvdMagazineEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldEQ(FieldElineupmallDvdMagazine, vc)) +} + +// ElineupmallDvdMagazineNEQ applies the NEQ predicate on the "elineupmall_dvd_magazine" field. +func ElineupmallDvdMagazineNEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldNEQ(FieldElineupmallDvdMagazine, vc)) +} + +// ElineupmallDvdMagazineIn applies the In predicate on the "elineupmall_dvd_magazine" field. +func ElineupmallDvdMagazineIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldIn(FieldElineupmallDvdMagazine, v...)) +} + +// ElineupmallDvdMagazineNotIn applies the NotIn predicate on the "elineupmall_dvd_magazine" field. +func ElineupmallDvdMagazineNotIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldNotIn(FieldElineupmallDvdMagazine, v...)) +} + +// ElineupmallDvdMagazineOtherEQ applies the EQ predicate on the "elineupmall_dvd_magazine_other" field. +func ElineupmallDvdMagazineOtherEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldEQ(FieldElineupmallDvdMagazineOther, vc)) +} + +// ElineupmallDvdMagazineOtherNEQ applies the NEQ predicate on the "elineupmall_dvd_magazine_other" field. +func ElineupmallDvdMagazineOtherNEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldNEQ(FieldElineupmallDvdMagazineOther, vc)) +} + +// ElineupmallDvdMagazineOtherIn applies the In predicate on the "elineupmall_dvd_magazine_other" field. +func ElineupmallDvdMagazineOtherIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldIn(FieldElineupmallDvdMagazineOther, v...)) +} + +// ElineupmallDvdMagazineOtherNotIn applies the NotIn predicate on the "elineupmall_dvd_magazine_other" field. +func ElineupmallDvdMagazineOtherNotIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldNotIn(FieldElineupmallDvdMagazineOther, v...)) +} + +// ElineupmallBluerayEQ applies the EQ predicate on the "elineupmall_blueray" field. +func ElineupmallBluerayEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldEQ(FieldElineupmallBlueray, vc)) +} + +// ElineupmallBluerayNEQ applies the NEQ predicate on the "elineupmall_blueray" field. +func ElineupmallBluerayNEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldNEQ(FieldElineupmallBlueray, vc)) +} + +// ElineupmallBluerayIn applies the In predicate on the "elineupmall_blueray" field. +func ElineupmallBluerayIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldIn(FieldElineupmallBlueray, v...)) +} + +// ElineupmallBluerayNotIn applies the NotIn predicate on the "elineupmall_blueray" field. +func ElineupmallBluerayNotIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldNotIn(FieldElineupmallBlueray, v...)) +} + +// ElineupmallPenlightEQ applies the EQ predicate on the "elineupmall_penlight" field. +func ElineupmallPenlightEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldEQ(FieldElineupmallPenlight, vc)) +} + +// ElineupmallPenlightNEQ applies the NEQ predicate on the "elineupmall_penlight" field. +func ElineupmallPenlightNEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldNEQ(FieldElineupmallPenlight, vc)) +} + +// ElineupmallPenlightIn applies the In predicate on the "elineupmall_penlight" field. +func ElineupmallPenlightIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldIn(FieldElineupmallPenlight, v...)) +} + +// ElineupmallPenlightNotIn applies the NotIn predicate on the "elineupmall_penlight" field. +func ElineupmallPenlightNotIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldNotIn(FieldElineupmallPenlight, v...)) +} + +// ElineupmallCollectionPinnapPosterEQ applies the EQ predicate on the "elineupmall_collection_pinnap_poster" field. +func ElineupmallCollectionPinnapPosterEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldEQ(FieldElineupmallCollectionPinnapPoster, vc)) +} + +// ElineupmallCollectionPinnapPosterNEQ applies the NEQ predicate on the "elineupmall_collection_pinnap_poster" field. +func ElineupmallCollectionPinnapPosterNEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldNEQ(FieldElineupmallCollectionPinnapPoster, vc)) +} + +// ElineupmallCollectionPinnapPosterIn applies the In predicate on the "elineupmall_collection_pinnap_poster" field. +func ElineupmallCollectionPinnapPosterIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldIn(FieldElineupmallCollectionPinnapPoster, v...)) +} + +// ElineupmallCollectionPinnapPosterNotIn applies the NotIn predicate on the "elineupmall_collection_pinnap_poster" field. +func ElineupmallCollectionPinnapPosterNotIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldNotIn(FieldElineupmallCollectionPinnapPoster, v...)) +} + +// ElineupmallCollectionPhotoEQ applies the EQ predicate on the "elineupmall_collection_photo" field. +func ElineupmallCollectionPhotoEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldEQ(FieldElineupmallCollectionPhoto, vc)) +} + +// ElineupmallCollectionPhotoNEQ applies the NEQ predicate on the "elineupmall_collection_photo" field. +func ElineupmallCollectionPhotoNEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldNEQ(FieldElineupmallCollectionPhoto, vc)) +} + +// ElineupmallCollectionPhotoIn applies the In predicate on the "elineupmall_collection_photo" field. +func ElineupmallCollectionPhotoIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldIn(FieldElineupmallCollectionPhoto, v...)) +} + +// ElineupmallCollectionPhotoNotIn applies the NotIn predicate on the "elineupmall_collection_photo" field. +func ElineupmallCollectionPhotoNotIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldNotIn(FieldElineupmallCollectionPhoto, v...)) +} + +// ElineupmallCollectionOtherEQ applies the EQ predicate on the "elineupmall_collection_other" field. +func ElineupmallCollectionOtherEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldEQ(FieldElineupmallCollectionOther, vc)) +} + +// ElineupmallCollectionOtherNEQ applies the NEQ predicate on the "elineupmall_collection_other" field. +func ElineupmallCollectionOtherNEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldNEQ(FieldElineupmallCollectionOther, vc)) +} + +// ElineupmallCollectionOtherIn applies the In predicate on the "elineupmall_collection_other" field. +func ElineupmallCollectionOtherIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldIn(FieldElineupmallCollectionOther, v...)) +} + +// ElineupmallCollectionOtherNotIn applies the NotIn predicate on the "elineupmall_collection_other" field. +func ElineupmallCollectionOtherNotIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldNotIn(FieldElineupmallCollectionOther, v...)) +} + +// ElineupmallTshirtEQ applies the EQ predicate on the "elineupmall_tshirt" field. +func ElineupmallTshirtEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldEQ(FieldElineupmallTshirt, vc)) +} + +// ElineupmallTshirtNEQ applies the NEQ predicate on the "elineupmall_tshirt" field. +func ElineupmallTshirtNEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldNEQ(FieldElineupmallTshirt, vc)) +} + +// ElineupmallTshirtIn applies the In predicate on the "elineupmall_tshirt" field. +func ElineupmallTshirtIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldIn(FieldElineupmallTshirt, v...)) +} + +// ElineupmallTshirtNotIn applies the NotIn predicate on the "elineupmall_tshirt" field. +func ElineupmallTshirtNotIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldNotIn(FieldElineupmallTshirt, v...)) +} + +// ElineupmallMicrofiberTowelEQ applies the EQ predicate on the "elineupmall_microfiber_towel" field. +func ElineupmallMicrofiberTowelEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldEQ(FieldElineupmallMicrofiberTowel, vc)) +} + +// ElineupmallMicrofiberTowelNEQ applies the NEQ predicate on the "elineupmall_microfiber_towel" field. +func ElineupmallMicrofiberTowelNEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldNEQ(FieldElineupmallMicrofiberTowel, vc)) +} + +// ElineupmallMicrofiberTowelIn applies the In predicate on the "elineupmall_microfiber_towel" field. +func ElineupmallMicrofiberTowelIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldIn(FieldElineupmallMicrofiberTowel, v...)) +} + +// ElineupmallMicrofiberTowelNotIn applies the NotIn predicate on the "elineupmall_microfiber_towel" field. +func ElineupmallMicrofiberTowelNotIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldNotIn(FieldElineupmallMicrofiberTowel, v...)) +} + +// ElineupmallMufflerTowelEQ applies the EQ predicate on the "elineupmall_muffler_towel" field. +func ElineupmallMufflerTowelEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldEQ(FieldElineupmallMufflerTowel, vc)) +} + +// ElineupmallMufflerTowelNEQ applies the NEQ predicate on the "elineupmall_muffler_towel" field. +func ElineupmallMufflerTowelNEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldNEQ(FieldElineupmallMufflerTowel, vc)) +} + +// ElineupmallMufflerTowelIn applies the In predicate on the "elineupmall_muffler_towel" field. +func ElineupmallMufflerTowelIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldIn(FieldElineupmallMufflerTowel, v...)) +} + +// ElineupmallMufflerTowelNotIn applies the NotIn predicate on the "elineupmall_muffler_towel" field. +func ElineupmallMufflerTowelNotIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldNotIn(FieldElineupmallMufflerTowel, v...)) +} + +// ElineupmallFskEQ applies the EQ predicate on the "elineupmall_fsk" field. +func ElineupmallFskEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldEQ(FieldElineupmallFsk, vc)) +} + +// ElineupmallFskNEQ applies the NEQ predicate on the "elineupmall_fsk" field. +func ElineupmallFskNEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldNEQ(FieldElineupmallFsk, vc)) +} + +// ElineupmallFskIn applies the In predicate on the "elineupmall_fsk" field. +func ElineupmallFskIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldIn(FieldElineupmallFsk, v...)) +} + +// ElineupmallFskNotIn applies the NotIn predicate on the "elineupmall_fsk" field. +func ElineupmallFskNotIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldNotIn(FieldElineupmallFsk, v...)) +} + +// ElineupmallKeyringOtherEQ applies the EQ predicate on the "elineupmall_keyring_other" field. +func ElineupmallKeyringOtherEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldEQ(FieldElineupmallKeyringOther, vc)) +} + +// ElineupmallKeyringOtherNEQ applies the NEQ predicate on the "elineupmall_keyring_other" field. +func ElineupmallKeyringOtherNEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldNEQ(FieldElineupmallKeyringOther, vc)) +} + +// ElineupmallKeyringOtherIn applies the In predicate on the "elineupmall_keyring_other" field. +func ElineupmallKeyringOtherIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldIn(FieldElineupmallKeyringOther, v...)) +} + +// ElineupmallKeyringOtherNotIn applies the NotIn predicate on the "elineupmall_keyring_other" field. +func ElineupmallKeyringOtherNotIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldNotIn(FieldElineupmallKeyringOther, v...)) +} + +// ElineupmallClearFileEQ applies the EQ predicate on the "elineupmall_clear_file" field. +func ElineupmallClearFileEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldEQ(FieldElineupmallClearFile, vc)) +} + +// ElineupmallClearFileNEQ applies the NEQ predicate on the "elineupmall_clear_file" field. +func ElineupmallClearFileNEQ(v enums.HPFollowType) predicate.HPFollow { + vc := v + return predicate.HPFollow(sql.FieldNEQ(FieldElineupmallClearFile, vc)) +} + +// ElineupmallClearFileIn applies the In predicate on the "elineupmall_clear_file" field. +func ElineupmallClearFileIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldIn(FieldElineupmallClearFile, v...)) +} + +// ElineupmallClearFileNotIn applies the NotIn predicate on the "elineupmall_clear_file" field. +func ElineupmallClearFileNotIn(vs ...enums.HPFollowType) predicate.HPFollow { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFollow(sql.FieldNotIn(FieldElineupmallClearFile, v...)) +} + // HasUser applies the HasEdge predicate on the "user" edge. func HasUser() predicate.HPFollow { return predicate.HPFollow(func(s *sql.Selector) { diff --git a/go/service/ent/hpfollow_create.go b/go/service/ent/hpfollow_create.go index 9751c65..14ff123 100644 --- a/go/service/ent/hpfollow_create.go +++ b/go/service/ent/hpfollow_create.go @@ -67,6 +67,342 @@ func (hfc *HPFollowCreate) SetNillableType(eft *enums.HPFollowType) *HPFollowCre return hfc } +// SetElineupmallOther sets the "elineupmall_other" field. +func (hfc *HPFollowCreate) SetElineupmallOther(eft enums.HPFollowType) *HPFollowCreate { + hfc.mutation.SetElineupmallOther(eft) + return hfc +} + +// SetNillableElineupmallOther sets the "elineupmall_other" field if the given value is not nil. +func (hfc *HPFollowCreate) SetNillableElineupmallOther(eft *enums.HPFollowType) *HPFollowCreate { + if eft != nil { + hfc.SetElineupmallOther(*eft) + } + return hfc +} + +// SetElineupmallPhotoDaily sets the "elineupmall_photo_daily" field. +func (hfc *HPFollowCreate) SetElineupmallPhotoDaily(eft enums.HPFollowType) *HPFollowCreate { + hfc.mutation.SetElineupmallPhotoDaily(eft) + return hfc +} + +// SetNillableElineupmallPhotoDaily sets the "elineupmall_photo_daily" field if the given value is not nil. +func (hfc *HPFollowCreate) SetNillableElineupmallPhotoDaily(eft *enums.HPFollowType) *HPFollowCreate { + if eft != nil { + hfc.SetElineupmallPhotoDaily(*eft) + } + return hfc +} + +// SetElineupmallPhotoA4 sets the "elineupmall_photo_a4" field. +func (hfc *HPFollowCreate) SetElineupmallPhotoA4(eft enums.HPFollowType) *HPFollowCreate { + hfc.mutation.SetElineupmallPhotoA4(eft) + return hfc +} + +// SetNillableElineupmallPhotoA4 sets the "elineupmall_photo_a4" field if the given value is not nil. +func (hfc *HPFollowCreate) SetNillableElineupmallPhotoA4(eft *enums.HPFollowType) *HPFollowCreate { + if eft != nil { + hfc.SetElineupmallPhotoA4(*eft) + } + return hfc +} + +// SetElineupmallPhotoA5 sets the "elineupmall_photo_a5" field. +func (hfc *HPFollowCreate) SetElineupmallPhotoA5(eft enums.HPFollowType) *HPFollowCreate { + hfc.mutation.SetElineupmallPhotoA5(eft) + return hfc +} + +// SetNillableElineupmallPhotoA5 sets the "elineupmall_photo_a5" field if the given value is not nil. +func (hfc *HPFollowCreate) SetNillableElineupmallPhotoA5(eft *enums.HPFollowType) *HPFollowCreate { + if eft != nil { + hfc.SetElineupmallPhotoA5(*eft) + } + return hfc +} + +// SetElineupmallPhoto2l sets the "elineupmall_photo_2l" field. +func (hfc *HPFollowCreate) SetElineupmallPhoto2l(eft enums.HPFollowType) *HPFollowCreate { + hfc.mutation.SetElineupmallPhoto2l(eft) + return hfc +} + +// SetNillableElineupmallPhoto2l sets the "elineupmall_photo_2l" field if the given value is not nil. +func (hfc *HPFollowCreate) SetNillableElineupmallPhoto2l(eft *enums.HPFollowType) *HPFollowCreate { + if eft != nil { + hfc.SetElineupmallPhoto2l(*eft) + } + return hfc +} + +// SetElineupmallPhotoOther sets the "elineupmall_photo_other" field. +func (hfc *HPFollowCreate) SetElineupmallPhotoOther(eft enums.HPFollowType) *HPFollowCreate { + hfc.mutation.SetElineupmallPhotoOther(eft) + return hfc +} + +// SetNillableElineupmallPhotoOther sets the "elineupmall_photo_other" field if the given value is not nil. +func (hfc *HPFollowCreate) SetNillableElineupmallPhotoOther(eft *enums.HPFollowType) *HPFollowCreate { + if eft != nil { + hfc.SetElineupmallPhotoOther(*eft) + } + return hfc +} + +// SetElineupmallPhotoAlbum sets the "elineupmall_photo_album" field. +func (hfc *HPFollowCreate) SetElineupmallPhotoAlbum(eft enums.HPFollowType) *HPFollowCreate { + hfc.mutation.SetElineupmallPhotoAlbum(eft) + return hfc +} + +// SetNillableElineupmallPhotoAlbum sets the "elineupmall_photo_album" field if the given value is not nil. +func (hfc *HPFollowCreate) SetNillableElineupmallPhotoAlbum(eft *enums.HPFollowType) *HPFollowCreate { + if eft != nil { + hfc.SetElineupmallPhotoAlbum(*eft) + } + return hfc +} + +// SetElineupmallPhotoAlbumOther sets the "elineupmall_photo_album_other" field. +func (hfc *HPFollowCreate) SetElineupmallPhotoAlbumOther(eft enums.HPFollowType) *HPFollowCreate { + hfc.mutation.SetElineupmallPhotoAlbumOther(eft) + return hfc +} + +// SetNillableElineupmallPhotoAlbumOther sets the "elineupmall_photo_album_other" field if the given value is not nil. +func (hfc *HPFollowCreate) SetNillableElineupmallPhotoAlbumOther(eft *enums.HPFollowType) *HPFollowCreate { + if eft != nil { + hfc.SetElineupmallPhotoAlbumOther(*eft) + } + return hfc +} + +// SetElineupmallPhotoBook sets the "elineupmall_photo_book" field. +func (hfc *HPFollowCreate) SetElineupmallPhotoBook(eft enums.HPFollowType) *HPFollowCreate { + hfc.mutation.SetElineupmallPhotoBook(eft) + return hfc +} + +// SetNillableElineupmallPhotoBook sets the "elineupmall_photo_book" field if the given value is not nil. +func (hfc *HPFollowCreate) SetNillableElineupmallPhotoBook(eft *enums.HPFollowType) *HPFollowCreate { + if eft != nil { + hfc.SetElineupmallPhotoBook(*eft) + } + return hfc +} + +// SetElineupmallPhotoBookOther sets the "elineupmall_photo_book_other" field. +func (hfc *HPFollowCreate) SetElineupmallPhotoBookOther(eft enums.HPFollowType) *HPFollowCreate { + hfc.mutation.SetElineupmallPhotoBookOther(eft) + return hfc +} + +// SetNillableElineupmallPhotoBookOther sets the "elineupmall_photo_book_other" field if the given value is not nil. +func (hfc *HPFollowCreate) SetNillableElineupmallPhotoBookOther(eft *enums.HPFollowType) *HPFollowCreate { + if eft != nil { + hfc.SetElineupmallPhotoBookOther(*eft) + } + return hfc +} + +// SetElineupmallDvd sets the "elineupmall_dvd" field. +func (hfc *HPFollowCreate) SetElineupmallDvd(eft enums.HPFollowType) *HPFollowCreate { + hfc.mutation.SetElineupmallDvd(eft) + return hfc +} + +// SetNillableElineupmallDvd sets the "elineupmall_dvd" field if the given value is not nil. +func (hfc *HPFollowCreate) SetNillableElineupmallDvd(eft *enums.HPFollowType) *HPFollowCreate { + if eft != nil { + hfc.SetElineupmallDvd(*eft) + } + return hfc +} + +// SetElineupmallDvdMagazine sets the "elineupmall_dvd_magazine" field. +func (hfc *HPFollowCreate) SetElineupmallDvdMagazine(eft enums.HPFollowType) *HPFollowCreate { + hfc.mutation.SetElineupmallDvdMagazine(eft) + return hfc +} + +// SetNillableElineupmallDvdMagazine sets the "elineupmall_dvd_magazine" field if the given value is not nil. +func (hfc *HPFollowCreate) SetNillableElineupmallDvdMagazine(eft *enums.HPFollowType) *HPFollowCreate { + if eft != nil { + hfc.SetElineupmallDvdMagazine(*eft) + } + return hfc +} + +// SetElineupmallDvdMagazineOther sets the "elineupmall_dvd_magazine_other" field. +func (hfc *HPFollowCreate) SetElineupmallDvdMagazineOther(eft enums.HPFollowType) *HPFollowCreate { + hfc.mutation.SetElineupmallDvdMagazineOther(eft) + return hfc +} + +// SetNillableElineupmallDvdMagazineOther sets the "elineupmall_dvd_magazine_other" field if the given value is not nil. +func (hfc *HPFollowCreate) SetNillableElineupmallDvdMagazineOther(eft *enums.HPFollowType) *HPFollowCreate { + if eft != nil { + hfc.SetElineupmallDvdMagazineOther(*eft) + } + return hfc +} + +// SetElineupmallBlueray sets the "elineupmall_blueray" field. +func (hfc *HPFollowCreate) SetElineupmallBlueray(eft enums.HPFollowType) *HPFollowCreate { + hfc.mutation.SetElineupmallBlueray(eft) + return hfc +} + +// SetNillableElineupmallBlueray sets the "elineupmall_blueray" field if the given value is not nil. +func (hfc *HPFollowCreate) SetNillableElineupmallBlueray(eft *enums.HPFollowType) *HPFollowCreate { + if eft != nil { + hfc.SetElineupmallBlueray(*eft) + } + return hfc +} + +// SetElineupmallPenlight sets the "elineupmall_penlight" field. +func (hfc *HPFollowCreate) SetElineupmallPenlight(eft enums.HPFollowType) *HPFollowCreate { + hfc.mutation.SetElineupmallPenlight(eft) + return hfc +} + +// SetNillableElineupmallPenlight sets the "elineupmall_penlight" field if the given value is not nil. +func (hfc *HPFollowCreate) SetNillableElineupmallPenlight(eft *enums.HPFollowType) *HPFollowCreate { + if eft != nil { + hfc.SetElineupmallPenlight(*eft) + } + return hfc +} + +// SetElineupmallCollectionPinnapPoster sets the "elineupmall_collection_pinnap_poster" field. +func (hfc *HPFollowCreate) SetElineupmallCollectionPinnapPoster(eft enums.HPFollowType) *HPFollowCreate { + hfc.mutation.SetElineupmallCollectionPinnapPoster(eft) + return hfc +} + +// SetNillableElineupmallCollectionPinnapPoster sets the "elineupmall_collection_pinnap_poster" field if the given value is not nil. +func (hfc *HPFollowCreate) SetNillableElineupmallCollectionPinnapPoster(eft *enums.HPFollowType) *HPFollowCreate { + if eft != nil { + hfc.SetElineupmallCollectionPinnapPoster(*eft) + } + return hfc +} + +// SetElineupmallCollectionPhoto sets the "elineupmall_collection_photo" field. +func (hfc *HPFollowCreate) SetElineupmallCollectionPhoto(eft enums.HPFollowType) *HPFollowCreate { + hfc.mutation.SetElineupmallCollectionPhoto(eft) + return hfc +} + +// SetNillableElineupmallCollectionPhoto sets the "elineupmall_collection_photo" field if the given value is not nil. +func (hfc *HPFollowCreate) SetNillableElineupmallCollectionPhoto(eft *enums.HPFollowType) *HPFollowCreate { + if eft != nil { + hfc.SetElineupmallCollectionPhoto(*eft) + } + return hfc +} + +// SetElineupmallCollectionOther sets the "elineupmall_collection_other" field. +func (hfc *HPFollowCreate) SetElineupmallCollectionOther(eft enums.HPFollowType) *HPFollowCreate { + hfc.mutation.SetElineupmallCollectionOther(eft) + return hfc +} + +// SetNillableElineupmallCollectionOther sets the "elineupmall_collection_other" field if the given value is not nil. +func (hfc *HPFollowCreate) SetNillableElineupmallCollectionOther(eft *enums.HPFollowType) *HPFollowCreate { + if eft != nil { + hfc.SetElineupmallCollectionOther(*eft) + } + return hfc +} + +// SetElineupmallTshirt sets the "elineupmall_tshirt" field. +func (hfc *HPFollowCreate) SetElineupmallTshirt(eft enums.HPFollowType) *HPFollowCreate { + hfc.mutation.SetElineupmallTshirt(eft) + return hfc +} + +// SetNillableElineupmallTshirt sets the "elineupmall_tshirt" field if the given value is not nil. +func (hfc *HPFollowCreate) SetNillableElineupmallTshirt(eft *enums.HPFollowType) *HPFollowCreate { + if eft != nil { + hfc.SetElineupmallTshirt(*eft) + } + return hfc +} + +// SetElineupmallMicrofiberTowel sets the "elineupmall_microfiber_towel" field. +func (hfc *HPFollowCreate) SetElineupmallMicrofiberTowel(eft enums.HPFollowType) *HPFollowCreate { + hfc.mutation.SetElineupmallMicrofiberTowel(eft) + return hfc +} + +// SetNillableElineupmallMicrofiberTowel sets the "elineupmall_microfiber_towel" field if the given value is not nil. +func (hfc *HPFollowCreate) SetNillableElineupmallMicrofiberTowel(eft *enums.HPFollowType) *HPFollowCreate { + if eft != nil { + hfc.SetElineupmallMicrofiberTowel(*eft) + } + return hfc +} + +// SetElineupmallMufflerTowel sets the "elineupmall_muffler_towel" field. +func (hfc *HPFollowCreate) SetElineupmallMufflerTowel(eft enums.HPFollowType) *HPFollowCreate { + hfc.mutation.SetElineupmallMufflerTowel(eft) + return hfc +} + +// SetNillableElineupmallMufflerTowel sets the "elineupmall_muffler_towel" field if the given value is not nil. +func (hfc *HPFollowCreate) SetNillableElineupmallMufflerTowel(eft *enums.HPFollowType) *HPFollowCreate { + if eft != nil { + hfc.SetElineupmallMufflerTowel(*eft) + } + return hfc +} + +// SetElineupmallFsk sets the "elineupmall_fsk" field. +func (hfc *HPFollowCreate) SetElineupmallFsk(eft enums.HPFollowType) *HPFollowCreate { + hfc.mutation.SetElineupmallFsk(eft) + return hfc +} + +// SetNillableElineupmallFsk sets the "elineupmall_fsk" field if the given value is not nil. +func (hfc *HPFollowCreate) SetNillableElineupmallFsk(eft *enums.HPFollowType) *HPFollowCreate { + if eft != nil { + hfc.SetElineupmallFsk(*eft) + } + return hfc +} + +// SetElineupmallKeyringOther sets the "elineupmall_keyring_other" field. +func (hfc *HPFollowCreate) SetElineupmallKeyringOther(eft enums.HPFollowType) *HPFollowCreate { + hfc.mutation.SetElineupmallKeyringOther(eft) + return hfc +} + +// SetNillableElineupmallKeyringOther sets the "elineupmall_keyring_other" field if the given value is not nil. +func (hfc *HPFollowCreate) SetNillableElineupmallKeyringOther(eft *enums.HPFollowType) *HPFollowCreate { + if eft != nil { + hfc.SetElineupmallKeyringOther(*eft) + } + return hfc +} + +// SetElineupmallClearFile sets the "elineupmall_clear_file" field. +func (hfc *HPFollowCreate) SetElineupmallClearFile(eft enums.HPFollowType) *HPFollowCreate { + hfc.mutation.SetElineupmallClearFile(eft) + return hfc +} + +// SetNillableElineupmallClearFile sets the "elineupmall_clear_file" field if the given value is not nil. +func (hfc *HPFollowCreate) SetNillableElineupmallClearFile(eft *enums.HPFollowType) *HPFollowCreate { + if eft != nil { + hfc.SetElineupmallClearFile(*eft) + } + return hfc +} + // SetUserID sets the "user" edge to the User entity by ID. func (hfc *HPFollowCreate) SetUserID(id int) *HPFollowCreate { hfc.mutation.SetUserID(id) @@ -130,6 +466,102 @@ func (hfc *HPFollowCreate) defaults() error { v := hpfollow.DefaultType hfc.mutation.SetType(v) } + if _, ok := hfc.mutation.ElineupmallOther(); !ok { + v := hpfollow.DefaultElineupmallOther + hfc.mutation.SetElineupmallOther(v) + } + if _, ok := hfc.mutation.ElineupmallPhotoDaily(); !ok { + v := hpfollow.DefaultElineupmallPhotoDaily + hfc.mutation.SetElineupmallPhotoDaily(v) + } + if _, ok := hfc.mutation.ElineupmallPhotoA4(); !ok { + v := hpfollow.DefaultElineupmallPhotoA4 + hfc.mutation.SetElineupmallPhotoA4(v) + } + if _, ok := hfc.mutation.ElineupmallPhotoA5(); !ok { + v := hpfollow.DefaultElineupmallPhotoA5 + hfc.mutation.SetElineupmallPhotoA5(v) + } + if _, ok := hfc.mutation.ElineupmallPhoto2l(); !ok { + v := hpfollow.DefaultElineupmallPhoto2l + hfc.mutation.SetElineupmallPhoto2l(v) + } + if _, ok := hfc.mutation.ElineupmallPhotoOther(); !ok { + v := hpfollow.DefaultElineupmallPhotoOther + hfc.mutation.SetElineupmallPhotoOther(v) + } + if _, ok := hfc.mutation.ElineupmallPhotoAlbum(); !ok { + v := hpfollow.DefaultElineupmallPhotoAlbum + hfc.mutation.SetElineupmallPhotoAlbum(v) + } + if _, ok := hfc.mutation.ElineupmallPhotoAlbumOther(); !ok { + v := hpfollow.DefaultElineupmallPhotoAlbumOther + hfc.mutation.SetElineupmallPhotoAlbumOther(v) + } + if _, ok := hfc.mutation.ElineupmallPhotoBook(); !ok { + v := hpfollow.DefaultElineupmallPhotoBook + hfc.mutation.SetElineupmallPhotoBook(v) + } + if _, ok := hfc.mutation.ElineupmallPhotoBookOther(); !ok { + v := hpfollow.DefaultElineupmallPhotoBookOther + hfc.mutation.SetElineupmallPhotoBookOther(v) + } + if _, ok := hfc.mutation.ElineupmallDvd(); !ok { + v := hpfollow.DefaultElineupmallDvd + hfc.mutation.SetElineupmallDvd(v) + } + if _, ok := hfc.mutation.ElineupmallDvdMagazine(); !ok { + v := hpfollow.DefaultElineupmallDvdMagazine + hfc.mutation.SetElineupmallDvdMagazine(v) + } + if _, ok := hfc.mutation.ElineupmallDvdMagazineOther(); !ok { + v := hpfollow.DefaultElineupmallDvdMagazineOther + hfc.mutation.SetElineupmallDvdMagazineOther(v) + } + if _, ok := hfc.mutation.ElineupmallBlueray(); !ok { + v := hpfollow.DefaultElineupmallBlueray + hfc.mutation.SetElineupmallBlueray(v) + } + if _, ok := hfc.mutation.ElineupmallPenlight(); !ok { + v := hpfollow.DefaultElineupmallPenlight + hfc.mutation.SetElineupmallPenlight(v) + } + if _, ok := hfc.mutation.ElineupmallCollectionPinnapPoster(); !ok { + v := hpfollow.DefaultElineupmallCollectionPinnapPoster + hfc.mutation.SetElineupmallCollectionPinnapPoster(v) + } + if _, ok := hfc.mutation.ElineupmallCollectionPhoto(); !ok { + v := hpfollow.DefaultElineupmallCollectionPhoto + hfc.mutation.SetElineupmallCollectionPhoto(v) + } + if _, ok := hfc.mutation.ElineupmallCollectionOther(); !ok { + v := hpfollow.DefaultElineupmallCollectionOther + hfc.mutation.SetElineupmallCollectionOther(v) + } + if _, ok := hfc.mutation.ElineupmallTshirt(); !ok { + v := hpfollow.DefaultElineupmallTshirt + hfc.mutation.SetElineupmallTshirt(v) + } + if _, ok := hfc.mutation.ElineupmallMicrofiberTowel(); !ok { + v := hpfollow.DefaultElineupmallMicrofiberTowel + hfc.mutation.SetElineupmallMicrofiberTowel(v) + } + if _, ok := hfc.mutation.ElineupmallMufflerTowel(); !ok { + v := hpfollow.DefaultElineupmallMufflerTowel + hfc.mutation.SetElineupmallMufflerTowel(v) + } + if _, ok := hfc.mutation.ElineupmallFsk(); !ok { + v := hpfollow.DefaultElineupmallFsk + hfc.mutation.SetElineupmallFsk(v) + } + if _, ok := hfc.mutation.ElineupmallKeyringOther(); !ok { + v := hpfollow.DefaultElineupmallKeyringOther + hfc.mutation.SetElineupmallKeyringOther(v) + } + if _, ok := hfc.mutation.ElineupmallClearFile(); !ok { + v := hpfollow.DefaultElineupmallClearFile + hfc.mutation.SetElineupmallClearFile(v) + } return nil } @@ -143,52 +575,340 @@ func (hfc *HPFollowCreate) check() error { return &ValidationError{Name: "type", err: fmt.Errorf(`ent: validator failed for field "HPFollow.type": %w`, err)} } } - if _, ok := hfc.mutation.UserID(); !ok { - return &ValidationError{Name: "user", err: errors.New(`ent: missing required edge "HPFollow.user"`)} + if _, ok := hfc.mutation.ElineupmallOther(); !ok { + return &ValidationError{Name: "elineupmall_other", err: errors.New(`ent: missing required field "HPFollow.elineupmall_other"`)} } - if _, ok := hfc.mutation.MemberID(); !ok { - return &ValidationError{Name: "member", err: errors.New(`ent: missing required edge "HPFollow.member"`)} + if v, ok := hfc.mutation.ElineupmallOther(); ok { + if err := hpfollow.ElineupmallOtherValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_other", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_other": %w`, err)} + } } - return nil -} - -func (hfc *HPFollowCreate) sqlSave(ctx context.Context) (*HPFollow, error) { - if err := hfc.check(); err != nil { - return nil, err + if _, ok := hfc.mutation.ElineupmallPhotoDaily(); !ok { + return &ValidationError{Name: "elineupmall_photo_daily", err: errors.New(`ent: missing required field "HPFollow.elineupmall_photo_daily"`)} } - _node, _spec := hfc.createSpec() - if err := sqlgraph.CreateNode(ctx, hfc.driver, _spec); err != nil { - if sqlgraph.IsConstraintError(err) { - err = &ConstraintError{msg: err.Error(), wrap: err} + if v, ok := hfc.mutation.ElineupmallPhotoDaily(); ok { + if err := hpfollow.ElineupmallPhotoDailyValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_photo_daily", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_photo_daily": %w`, err)} } - return nil, err } - id := _spec.ID.Value.(int64) - _node.ID = int(id) - hfc.mutation.id = &_node.ID - hfc.mutation.done = true - return _node, nil -} - -func (hfc *HPFollowCreate) createSpec() (*HPFollow, *sqlgraph.CreateSpec) { - var ( - _node = &HPFollow{config: hfc.config} - _spec = sqlgraph.NewCreateSpec(hpfollow.Table, sqlgraph.NewFieldSpec(hpfollow.FieldID, field.TypeInt)) - ) - _spec.OnConflict = hfc.conflict - if value, ok := hfc.mutation.CreatedAt(); ok { - _spec.SetField(hpfollow.FieldCreatedAt, field.TypeTime, value) - _node.CreatedAt = value + if _, ok := hfc.mutation.ElineupmallPhotoA4(); !ok { + return &ValidationError{Name: "elineupmall_photo_a4", err: errors.New(`ent: missing required field "HPFollow.elineupmall_photo_a4"`)} } - if value, ok := hfc.mutation.UpdatedAt(); ok { - _spec.SetField(hpfollow.FieldUpdatedAt, field.TypeTime, value) - _node.UpdatedAt = value + if v, ok := hfc.mutation.ElineupmallPhotoA4(); ok { + if err := hpfollow.ElineupmallPhotoA4Validator(v); err != nil { + return &ValidationError{Name: "elineupmall_photo_a4", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_photo_a4": %w`, err)} + } } - if value, ok := hfc.mutation.GetType(); ok { - _spec.SetField(hpfollow.FieldType, field.TypeEnum, value) - _node.Type = value + if _, ok := hfc.mutation.ElineupmallPhotoA5(); !ok { + return &ValidationError{Name: "elineupmall_photo_a5", err: errors.New(`ent: missing required field "HPFollow.elineupmall_photo_a5"`)} } - if nodes := hfc.mutation.UserIDs(); len(nodes) > 0 { + if v, ok := hfc.mutation.ElineupmallPhotoA5(); ok { + if err := hpfollow.ElineupmallPhotoA5Validator(v); err != nil { + return &ValidationError{Name: "elineupmall_photo_a5", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_photo_a5": %w`, err)} + } + } + if _, ok := hfc.mutation.ElineupmallPhoto2l(); !ok { + return &ValidationError{Name: "elineupmall_photo_2l", err: errors.New(`ent: missing required field "HPFollow.elineupmall_photo_2l"`)} + } + if v, ok := hfc.mutation.ElineupmallPhoto2l(); ok { + if err := hpfollow.ElineupmallPhoto2lValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_photo_2l", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_photo_2l": %w`, err)} + } + } + if _, ok := hfc.mutation.ElineupmallPhotoOther(); !ok { + return &ValidationError{Name: "elineupmall_photo_other", err: errors.New(`ent: missing required field "HPFollow.elineupmall_photo_other"`)} + } + if v, ok := hfc.mutation.ElineupmallPhotoOther(); ok { + if err := hpfollow.ElineupmallPhotoOtherValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_photo_other", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_photo_other": %w`, err)} + } + } + if _, ok := hfc.mutation.ElineupmallPhotoAlbum(); !ok { + return &ValidationError{Name: "elineupmall_photo_album", err: errors.New(`ent: missing required field "HPFollow.elineupmall_photo_album"`)} + } + if v, ok := hfc.mutation.ElineupmallPhotoAlbum(); ok { + if err := hpfollow.ElineupmallPhotoAlbumValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_photo_album", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_photo_album": %w`, err)} + } + } + if _, ok := hfc.mutation.ElineupmallPhotoAlbumOther(); !ok { + return &ValidationError{Name: "elineupmall_photo_album_other", err: errors.New(`ent: missing required field "HPFollow.elineupmall_photo_album_other"`)} + } + if v, ok := hfc.mutation.ElineupmallPhotoAlbumOther(); ok { + if err := hpfollow.ElineupmallPhotoAlbumOtherValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_photo_album_other", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_photo_album_other": %w`, err)} + } + } + if _, ok := hfc.mutation.ElineupmallPhotoBook(); !ok { + return &ValidationError{Name: "elineupmall_photo_book", err: errors.New(`ent: missing required field "HPFollow.elineupmall_photo_book"`)} + } + if v, ok := hfc.mutation.ElineupmallPhotoBook(); ok { + if err := hpfollow.ElineupmallPhotoBookValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_photo_book", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_photo_book": %w`, err)} + } + } + if _, ok := hfc.mutation.ElineupmallPhotoBookOther(); !ok { + return &ValidationError{Name: "elineupmall_photo_book_other", err: errors.New(`ent: missing required field "HPFollow.elineupmall_photo_book_other"`)} + } + if v, ok := hfc.mutation.ElineupmallPhotoBookOther(); ok { + if err := hpfollow.ElineupmallPhotoBookOtherValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_photo_book_other", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_photo_book_other": %w`, err)} + } + } + if _, ok := hfc.mutation.ElineupmallDvd(); !ok { + return &ValidationError{Name: "elineupmall_dvd", err: errors.New(`ent: missing required field "HPFollow.elineupmall_dvd"`)} + } + if v, ok := hfc.mutation.ElineupmallDvd(); ok { + if err := hpfollow.ElineupmallDvdValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_dvd", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_dvd": %w`, err)} + } + } + if _, ok := hfc.mutation.ElineupmallDvdMagazine(); !ok { + return &ValidationError{Name: "elineupmall_dvd_magazine", err: errors.New(`ent: missing required field "HPFollow.elineupmall_dvd_magazine"`)} + } + if v, ok := hfc.mutation.ElineupmallDvdMagazine(); ok { + if err := hpfollow.ElineupmallDvdMagazineValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_dvd_magazine", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_dvd_magazine": %w`, err)} + } + } + if _, ok := hfc.mutation.ElineupmallDvdMagazineOther(); !ok { + return &ValidationError{Name: "elineupmall_dvd_magazine_other", err: errors.New(`ent: missing required field "HPFollow.elineupmall_dvd_magazine_other"`)} + } + if v, ok := hfc.mutation.ElineupmallDvdMagazineOther(); ok { + if err := hpfollow.ElineupmallDvdMagazineOtherValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_dvd_magazine_other", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_dvd_magazine_other": %w`, err)} + } + } + if _, ok := hfc.mutation.ElineupmallBlueray(); !ok { + return &ValidationError{Name: "elineupmall_blueray", err: errors.New(`ent: missing required field "HPFollow.elineupmall_blueray"`)} + } + if v, ok := hfc.mutation.ElineupmallBlueray(); ok { + if err := hpfollow.ElineupmallBluerayValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_blueray", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_blueray": %w`, err)} + } + } + if _, ok := hfc.mutation.ElineupmallPenlight(); !ok { + return &ValidationError{Name: "elineupmall_penlight", err: errors.New(`ent: missing required field "HPFollow.elineupmall_penlight"`)} + } + if v, ok := hfc.mutation.ElineupmallPenlight(); ok { + if err := hpfollow.ElineupmallPenlightValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_penlight", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_penlight": %w`, err)} + } + } + if _, ok := hfc.mutation.ElineupmallCollectionPinnapPoster(); !ok { + return &ValidationError{Name: "elineupmall_collection_pinnap_poster", err: errors.New(`ent: missing required field "HPFollow.elineupmall_collection_pinnap_poster"`)} + } + if v, ok := hfc.mutation.ElineupmallCollectionPinnapPoster(); ok { + if err := hpfollow.ElineupmallCollectionPinnapPosterValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_collection_pinnap_poster", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_collection_pinnap_poster": %w`, err)} + } + } + if _, ok := hfc.mutation.ElineupmallCollectionPhoto(); !ok { + return &ValidationError{Name: "elineupmall_collection_photo", err: errors.New(`ent: missing required field "HPFollow.elineupmall_collection_photo"`)} + } + if v, ok := hfc.mutation.ElineupmallCollectionPhoto(); ok { + if err := hpfollow.ElineupmallCollectionPhotoValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_collection_photo", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_collection_photo": %w`, err)} + } + } + if _, ok := hfc.mutation.ElineupmallCollectionOther(); !ok { + return &ValidationError{Name: "elineupmall_collection_other", err: errors.New(`ent: missing required field "HPFollow.elineupmall_collection_other"`)} + } + if v, ok := hfc.mutation.ElineupmallCollectionOther(); ok { + if err := hpfollow.ElineupmallCollectionOtherValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_collection_other", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_collection_other": %w`, err)} + } + } + if _, ok := hfc.mutation.ElineupmallTshirt(); !ok { + return &ValidationError{Name: "elineupmall_tshirt", err: errors.New(`ent: missing required field "HPFollow.elineupmall_tshirt"`)} + } + if v, ok := hfc.mutation.ElineupmallTshirt(); ok { + if err := hpfollow.ElineupmallTshirtValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_tshirt", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_tshirt": %w`, err)} + } + } + if _, ok := hfc.mutation.ElineupmallMicrofiberTowel(); !ok { + return &ValidationError{Name: "elineupmall_microfiber_towel", err: errors.New(`ent: missing required field "HPFollow.elineupmall_microfiber_towel"`)} + } + if v, ok := hfc.mutation.ElineupmallMicrofiberTowel(); ok { + if err := hpfollow.ElineupmallMicrofiberTowelValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_microfiber_towel", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_microfiber_towel": %w`, err)} + } + } + if _, ok := hfc.mutation.ElineupmallMufflerTowel(); !ok { + return &ValidationError{Name: "elineupmall_muffler_towel", err: errors.New(`ent: missing required field "HPFollow.elineupmall_muffler_towel"`)} + } + if v, ok := hfc.mutation.ElineupmallMufflerTowel(); ok { + if err := hpfollow.ElineupmallMufflerTowelValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_muffler_towel", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_muffler_towel": %w`, err)} + } + } + if _, ok := hfc.mutation.ElineupmallFsk(); !ok { + return &ValidationError{Name: "elineupmall_fsk", err: errors.New(`ent: missing required field "HPFollow.elineupmall_fsk"`)} + } + if v, ok := hfc.mutation.ElineupmallFsk(); ok { + if err := hpfollow.ElineupmallFskValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_fsk", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_fsk": %w`, err)} + } + } + if _, ok := hfc.mutation.ElineupmallKeyringOther(); !ok { + return &ValidationError{Name: "elineupmall_keyring_other", err: errors.New(`ent: missing required field "HPFollow.elineupmall_keyring_other"`)} + } + if v, ok := hfc.mutation.ElineupmallKeyringOther(); ok { + if err := hpfollow.ElineupmallKeyringOtherValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_keyring_other", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_keyring_other": %w`, err)} + } + } + if _, ok := hfc.mutation.ElineupmallClearFile(); !ok { + return &ValidationError{Name: "elineupmall_clear_file", err: errors.New(`ent: missing required field "HPFollow.elineupmall_clear_file"`)} + } + if v, ok := hfc.mutation.ElineupmallClearFile(); ok { + if err := hpfollow.ElineupmallClearFileValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_clear_file", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_clear_file": %w`, err)} + } + } + if _, ok := hfc.mutation.UserID(); !ok { + return &ValidationError{Name: "user", err: errors.New(`ent: missing required edge "HPFollow.user"`)} + } + if _, ok := hfc.mutation.MemberID(); !ok { + return &ValidationError{Name: "member", err: errors.New(`ent: missing required edge "HPFollow.member"`)} + } + return nil +} + +func (hfc *HPFollowCreate) sqlSave(ctx context.Context) (*HPFollow, error) { + if err := hfc.check(); err != nil { + return nil, err + } + _node, _spec := hfc.createSpec() + if err := sqlgraph.CreateNode(ctx, hfc.driver, _spec); err != nil { + if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return nil, err + } + id := _spec.ID.Value.(int64) + _node.ID = int(id) + hfc.mutation.id = &_node.ID + hfc.mutation.done = true + return _node, nil +} + +func (hfc *HPFollowCreate) createSpec() (*HPFollow, *sqlgraph.CreateSpec) { + var ( + _node = &HPFollow{config: hfc.config} + _spec = sqlgraph.NewCreateSpec(hpfollow.Table, sqlgraph.NewFieldSpec(hpfollow.FieldID, field.TypeInt)) + ) + _spec.OnConflict = hfc.conflict + if value, ok := hfc.mutation.CreatedAt(); ok { + _spec.SetField(hpfollow.FieldCreatedAt, field.TypeTime, value) + _node.CreatedAt = value + } + if value, ok := hfc.mutation.UpdatedAt(); ok { + _spec.SetField(hpfollow.FieldUpdatedAt, field.TypeTime, value) + _node.UpdatedAt = value + } + if value, ok := hfc.mutation.GetType(); ok { + _spec.SetField(hpfollow.FieldType, field.TypeEnum, value) + _node.Type = value + } + if value, ok := hfc.mutation.ElineupmallOther(); ok { + _spec.SetField(hpfollow.FieldElineupmallOther, field.TypeEnum, value) + _node.ElineupmallOther = value + } + if value, ok := hfc.mutation.ElineupmallPhotoDaily(); ok { + _spec.SetField(hpfollow.FieldElineupmallPhotoDaily, field.TypeEnum, value) + _node.ElineupmallPhotoDaily = value + } + if value, ok := hfc.mutation.ElineupmallPhotoA4(); ok { + _spec.SetField(hpfollow.FieldElineupmallPhotoA4, field.TypeEnum, value) + _node.ElineupmallPhotoA4 = value + } + if value, ok := hfc.mutation.ElineupmallPhotoA5(); ok { + _spec.SetField(hpfollow.FieldElineupmallPhotoA5, field.TypeEnum, value) + _node.ElineupmallPhotoA5 = value + } + if value, ok := hfc.mutation.ElineupmallPhoto2l(); ok { + _spec.SetField(hpfollow.FieldElineupmallPhoto2l, field.TypeEnum, value) + _node.ElineupmallPhoto2l = value + } + if value, ok := hfc.mutation.ElineupmallPhotoOther(); ok { + _spec.SetField(hpfollow.FieldElineupmallPhotoOther, field.TypeEnum, value) + _node.ElineupmallPhotoOther = value + } + if value, ok := hfc.mutation.ElineupmallPhotoAlbum(); ok { + _spec.SetField(hpfollow.FieldElineupmallPhotoAlbum, field.TypeEnum, value) + _node.ElineupmallPhotoAlbum = value + } + if value, ok := hfc.mutation.ElineupmallPhotoAlbumOther(); ok { + _spec.SetField(hpfollow.FieldElineupmallPhotoAlbumOther, field.TypeEnum, value) + _node.ElineupmallPhotoAlbumOther = value + } + if value, ok := hfc.mutation.ElineupmallPhotoBook(); ok { + _spec.SetField(hpfollow.FieldElineupmallPhotoBook, field.TypeEnum, value) + _node.ElineupmallPhotoBook = value + } + if value, ok := hfc.mutation.ElineupmallPhotoBookOther(); ok { + _spec.SetField(hpfollow.FieldElineupmallPhotoBookOther, field.TypeEnum, value) + _node.ElineupmallPhotoBookOther = value + } + if value, ok := hfc.mutation.ElineupmallDvd(); ok { + _spec.SetField(hpfollow.FieldElineupmallDvd, field.TypeEnum, value) + _node.ElineupmallDvd = value + } + if value, ok := hfc.mutation.ElineupmallDvdMagazine(); ok { + _spec.SetField(hpfollow.FieldElineupmallDvdMagazine, field.TypeEnum, value) + _node.ElineupmallDvdMagazine = value + } + if value, ok := hfc.mutation.ElineupmallDvdMagazineOther(); ok { + _spec.SetField(hpfollow.FieldElineupmallDvdMagazineOther, field.TypeEnum, value) + _node.ElineupmallDvdMagazineOther = value + } + if value, ok := hfc.mutation.ElineupmallBlueray(); ok { + _spec.SetField(hpfollow.FieldElineupmallBlueray, field.TypeEnum, value) + _node.ElineupmallBlueray = value + } + if value, ok := hfc.mutation.ElineupmallPenlight(); ok { + _spec.SetField(hpfollow.FieldElineupmallPenlight, field.TypeEnum, value) + _node.ElineupmallPenlight = value + } + if value, ok := hfc.mutation.ElineupmallCollectionPinnapPoster(); ok { + _spec.SetField(hpfollow.FieldElineupmallCollectionPinnapPoster, field.TypeEnum, value) + _node.ElineupmallCollectionPinnapPoster = value + } + if value, ok := hfc.mutation.ElineupmallCollectionPhoto(); ok { + _spec.SetField(hpfollow.FieldElineupmallCollectionPhoto, field.TypeEnum, value) + _node.ElineupmallCollectionPhoto = value + } + if value, ok := hfc.mutation.ElineupmallCollectionOther(); ok { + _spec.SetField(hpfollow.FieldElineupmallCollectionOther, field.TypeEnum, value) + _node.ElineupmallCollectionOther = value + } + if value, ok := hfc.mutation.ElineupmallTshirt(); ok { + _spec.SetField(hpfollow.FieldElineupmallTshirt, field.TypeEnum, value) + _node.ElineupmallTshirt = value + } + if value, ok := hfc.mutation.ElineupmallMicrofiberTowel(); ok { + _spec.SetField(hpfollow.FieldElineupmallMicrofiberTowel, field.TypeEnum, value) + _node.ElineupmallMicrofiberTowel = value + } + if value, ok := hfc.mutation.ElineupmallMufflerTowel(); ok { + _spec.SetField(hpfollow.FieldElineupmallMufflerTowel, field.TypeEnum, value) + _node.ElineupmallMufflerTowel = value + } + if value, ok := hfc.mutation.ElineupmallFsk(); ok { + _spec.SetField(hpfollow.FieldElineupmallFsk, field.TypeEnum, value) + _node.ElineupmallFsk = value + } + if value, ok := hfc.mutation.ElineupmallKeyringOther(); ok { + _spec.SetField(hpfollow.FieldElineupmallKeyringOther, field.TypeEnum, value) + _node.ElineupmallKeyringOther = value + } + if value, ok := hfc.mutation.ElineupmallClearFile(); ok { + _spec.SetField(hpfollow.FieldElineupmallClearFile, field.TypeEnum, value) + _node.ElineupmallClearFile = value + } + if nodes := hfc.mutation.UserIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, Inverse: true, @@ -304,83 +1024,707 @@ func (u *HPFollowUpsert) UpdateType() *HPFollowUpsert { return u } -// UpdateNewValues updates the mutable fields using the new values that were set on create. -// Using this option is equivalent to using: -// -// client.HPFollow.Create(). -// OnConflict( -// sql.ResolveWithNewValues(), -// ). -// Exec(ctx) -func (u *HPFollowUpsertOne) UpdateNewValues() *HPFollowUpsertOne { - u.create.conflict = append(u.create.conflict, sql.ResolveWithNewValues()) - u.create.conflict = append(u.create.conflict, sql.ResolveWith(func(s *sql.UpdateSet) { - if _, exists := u.create.mutation.CreatedAt(); exists { - s.SetIgnore(hpfollow.FieldCreatedAt) - } - })) - return u +// SetElineupmallOther sets the "elineupmall_other" field. +func (u *HPFollowUpsert) SetElineupmallOther(v enums.HPFollowType) *HPFollowUpsert { + u.Set(hpfollow.FieldElineupmallOther, v) + return u +} + +// UpdateElineupmallOther sets the "elineupmall_other" field to the value that was provided on create. +func (u *HPFollowUpsert) UpdateElineupmallOther() *HPFollowUpsert { + u.SetExcluded(hpfollow.FieldElineupmallOther) + return u +} + +// SetElineupmallPhotoDaily sets the "elineupmall_photo_daily" field. +func (u *HPFollowUpsert) SetElineupmallPhotoDaily(v enums.HPFollowType) *HPFollowUpsert { + u.Set(hpfollow.FieldElineupmallPhotoDaily, v) + return u +} + +// UpdateElineupmallPhotoDaily sets the "elineupmall_photo_daily" field to the value that was provided on create. +func (u *HPFollowUpsert) UpdateElineupmallPhotoDaily() *HPFollowUpsert { + u.SetExcluded(hpfollow.FieldElineupmallPhotoDaily) + return u +} + +// SetElineupmallPhotoA4 sets the "elineupmall_photo_a4" field. +func (u *HPFollowUpsert) SetElineupmallPhotoA4(v enums.HPFollowType) *HPFollowUpsert { + u.Set(hpfollow.FieldElineupmallPhotoA4, v) + return u +} + +// UpdateElineupmallPhotoA4 sets the "elineupmall_photo_a4" field to the value that was provided on create. +func (u *HPFollowUpsert) UpdateElineupmallPhotoA4() *HPFollowUpsert { + u.SetExcluded(hpfollow.FieldElineupmallPhotoA4) + return u +} + +// SetElineupmallPhotoA5 sets the "elineupmall_photo_a5" field. +func (u *HPFollowUpsert) SetElineupmallPhotoA5(v enums.HPFollowType) *HPFollowUpsert { + u.Set(hpfollow.FieldElineupmallPhotoA5, v) + return u +} + +// UpdateElineupmallPhotoA5 sets the "elineupmall_photo_a5" field to the value that was provided on create. +func (u *HPFollowUpsert) UpdateElineupmallPhotoA5() *HPFollowUpsert { + u.SetExcluded(hpfollow.FieldElineupmallPhotoA5) + return u +} + +// SetElineupmallPhoto2l sets the "elineupmall_photo_2l" field. +func (u *HPFollowUpsert) SetElineupmallPhoto2l(v enums.HPFollowType) *HPFollowUpsert { + u.Set(hpfollow.FieldElineupmallPhoto2l, v) + return u +} + +// UpdateElineupmallPhoto2l sets the "elineupmall_photo_2l" field to the value that was provided on create. +func (u *HPFollowUpsert) UpdateElineupmallPhoto2l() *HPFollowUpsert { + u.SetExcluded(hpfollow.FieldElineupmallPhoto2l) + return u +} + +// SetElineupmallPhotoOther sets the "elineupmall_photo_other" field. +func (u *HPFollowUpsert) SetElineupmallPhotoOther(v enums.HPFollowType) *HPFollowUpsert { + u.Set(hpfollow.FieldElineupmallPhotoOther, v) + return u +} + +// UpdateElineupmallPhotoOther sets the "elineupmall_photo_other" field to the value that was provided on create. +func (u *HPFollowUpsert) UpdateElineupmallPhotoOther() *HPFollowUpsert { + u.SetExcluded(hpfollow.FieldElineupmallPhotoOther) + return u +} + +// SetElineupmallPhotoAlbum sets the "elineupmall_photo_album" field. +func (u *HPFollowUpsert) SetElineupmallPhotoAlbum(v enums.HPFollowType) *HPFollowUpsert { + u.Set(hpfollow.FieldElineupmallPhotoAlbum, v) + return u +} + +// UpdateElineupmallPhotoAlbum sets the "elineupmall_photo_album" field to the value that was provided on create. +func (u *HPFollowUpsert) UpdateElineupmallPhotoAlbum() *HPFollowUpsert { + u.SetExcluded(hpfollow.FieldElineupmallPhotoAlbum) + return u +} + +// SetElineupmallPhotoAlbumOther sets the "elineupmall_photo_album_other" field. +func (u *HPFollowUpsert) SetElineupmallPhotoAlbumOther(v enums.HPFollowType) *HPFollowUpsert { + u.Set(hpfollow.FieldElineupmallPhotoAlbumOther, v) + return u +} + +// UpdateElineupmallPhotoAlbumOther sets the "elineupmall_photo_album_other" field to the value that was provided on create. +func (u *HPFollowUpsert) UpdateElineupmallPhotoAlbumOther() *HPFollowUpsert { + u.SetExcluded(hpfollow.FieldElineupmallPhotoAlbumOther) + return u +} + +// SetElineupmallPhotoBook sets the "elineupmall_photo_book" field. +func (u *HPFollowUpsert) SetElineupmallPhotoBook(v enums.HPFollowType) *HPFollowUpsert { + u.Set(hpfollow.FieldElineupmallPhotoBook, v) + return u +} + +// UpdateElineupmallPhotoBook sets the "elineupmall_photo_book" field to the value that was provided on create. +func (u *HPFollowUpsert) UpdateElineupmallPhotoBook() *HPFollowUpsert { + u.SetExcluded(hpfollow.FieldElineupmallPhotoBook) + return u +} + +// SetElineupmallPhotoBookOther sets the "elineupmall_photo_book_other" field. +func (u *HPFollowUpsert) SetElineupmallPhotoBookOther(v enums.HPFollowType) *HPFollowUpsert { + u.Set(hpfollow.FieldElineupmallPhotoBookOther, v) + return u +} + +// UpdateElineupmallPhotoBookOther sets the "elineupmall_photo_book_other" field to the value that was provided on create. +func (u *HPFollowUpsert) UpdateElineupmallPhotoBookOther() *HPFollowUpsert { + u.SetExcluded(hpfollow.FieldElineupmallPhotoBookOther) + return u +} + +// SetElineupmallDvd sets the "elineupmall_dvd" field. +func (u *HPFollowUpsert) SetElineupmallDvd(v enums.HPFollowType) *HPFollowUpsert { + u.Set(hpfollow.FieldElineupmallDvd, v) + return u +} + +// UpdateElineupmallDvd sets the "elineupmall_dvd" field to the value that was provided on create. +func (u *HPFollowUpsert) UpdateElineupmallDvd() *HPFollowUpsert { + u.SetExcluded(hpfollow.FieldElineupmallDvd) + return u +} + +// SetElineupmallDvdMagazine sets the "elineupmall_dvd_magazine" field. +func (u *HPFollowUpsert) SetElineupmallDvdMagazine(v enums.HPFollowType) *HPFollowUpsert { + u.Set(hpfollow.FieldElineupmallDvdMagazine, v) + return u +} + +// UpdateElineupmallDvdMagazine sets the "elineupmall_dvd_magazine" field to the value that was provided on create. +func (u *HPFollowUpsert) UpdateElineupmallDvdMagazine() *HPFollowUpsert { + u.SetExcluded(hpfollow.FieldElineupmallDvdMagazine) + return u +} + +// SetElineupmallDvdMagazineOther sets the "elineupmall_dvd_magazine_other" field. +func (u *HPFollowUpsert) SetElineupmallDvdMagazineOther(v enums.HPFollowType) *HPFollowUpsert { + u.Set(hpfollow.FieldElineupmallDvdMagazineOther, v) + return u +} + +// UpdateElineupmallDvdMagazineOther sets the "elineupmall_dvd_magazine_other" field to the value that was provided on create. +func (u *HPFollowUpsert) UpdateElineupmallDvdMagazineOther() *HPFollowUpsert { + u.SetExcluded(hpfollow.FieldElineupmallDvdMagazineOther) + return u +} + +// SetElineupmallBlueray sets the "elineupmall_blueray" field. +func (u *HPFollowUpsert) SetElineupmallBlueray(v enums.HPFollowType) *HPFollowUpsert { + u.Set(hpfollow.FieldElineupmallBlueray, v) + return u +} + +// UpdateElineupmallBlueray sets the "elineupmall_blueray" field to the value that was provided on create. +func (u *HPFollowUpsert) UpdateElineupmallBlueray() *HPFollowUpsert { + u.SetExcluded(hpfollow.FieldElineupmallBlueray) + return u +} + +// SetElineupmallPenlight sets the "elineupmall_penlight" field. +func (u *HPFollowUpsert) SetElineupmallPenlight(v enums.HPFollowType) *HPFollowUpsert { + u.Set(hpfollow.FieldElineupmallPenlight, v) + return u +} + +// UpdateElineupmallPenlight sets the "elineupmall_penlight" field to the value that was provided on create. +func (u *HPFollowUpsert) UpdateElineupmallPenlight() *HPFollowUpsert { + u.SetExcluded(hpfollow.FieldElineupmallPenlight) + return u +} + +// SetElineupmallCollectionPinnapPoster sets the "elineupmall_collection_pinnap_poster" field. +func (u *HPFollowUpsert) SetElineupmallCollectionPinnapPoster(v enums.HPFollowType) *HPFollowUpsert { + u.Set(hpfollow.FieldElineupmallCollectionPinnapPoster, v) + return u +} + +// UpdateElineupmallCollectionPinnapPoster sets the "elineupmall_collection_pinnap_poster" field to the value that was provided on create. +func (u *HPFollowUpsert) UpdateElineupmallCollectionPinnapPoster() *HPFollowUpsert { + u.SetExcluded(hpfollow.FieldElineupmallCollectionPinnapPoster) + return u +} + +// SetElineupmallCollectionPhoto sets the "elineupmall_collection_photo" field. +func (u *HPFollowUpsert) SetElineupmallCollectionPhoto(v enums.HPFollowType) *HPFollowUpsert { + u.Set(hpfollow.FieldElineupmallCollectionPhoto, v) + return u +} + +// UpdateElineupmallCollectionPhoto sets the "elineupmall_collection_photo" field to the value that was provided on create. +func (u *HPFollowUpsert) UpdateElineupmallCollectionPhoto() *HPFollowUpsert { + u.SetExcluded(hpfollow.FieldElineupmallCollectionPhoto) + return u +} + +// SetElineupmallCollectionOther sets the "elineupmall_collection_other" field. +func (u *HPFollowUpsert) SetElineupmallCollectionOther(v enums.HPFollowType) *HPFollowUpsert { + u.Set(hpfollow.FieldElineupmallCollectionOther, v) + return u +} + +// UpdateElineupmallCollectionOther sets the "elineupmall_collection_other" field to the value that was provided on create. +func (u *HPFollowUpsert) UpdateElineupmallCollectionOther() *HPFollowUpsert { + u.SetExcluded(hpfollow.FieldElineupmallCollectionOther) + return u +} + +// SetElineupmallTshirt sets the "elineupmall_tshirt" field. +func (u *HPFollowUpsert) SetElineupmallTshirt(v enums.HPFollowType) *HPFollowUpsert { + u.Set(hpfollow.FieldElineupmallTshirt, v) + return u +} + +// UpdateElineupmallTshirt sets the "elineupmall_tshirt" field to the value that was provided on create. +func (u *HPFollowUpsert) UpdateElineupmallTshirt() *HPFollowUpsert { + u.SetExcluded(hpfollow.FieldElineupmallTshirt) + return u +} + +// SetElineupmallMicrofiberTowel sets the "elineupmall_microfiber_towel" field. +func (u *HPFollowUpsert) SetElineupmallMicrofiberTowel(v enums.HPFollowType) *HPFollowUpsert { + u.Set(hpfollow.FieldElineupmallMicrofiberTowel, v) + return u +} + +// UpdateElineupmallMicrofiberTowel sets the "elineupmall_microfiber_towel" field to the value that was provided on create. +func (u *HPFollowUpsert) UpdateElineupmallMicrofiberTowel() *HPFollowUpsert { + u.SetExcluded(hpfollow.FieldElineupmallMicrofiberTowel) + return u +} + +// SetElineupmallMufflerTowel sets the "elineupmall_muffler_towel" field. +func (u *HPFollowUpsert) SetElineupmallMufflerTowel(v enums.HPFollowType) *HPFollowUpsert { + u.Set(hpfollow.FieldElineupmallMufflerTowel, v) + return u +} + +// UpdateElineupmallMufflerTowel sets the "elineupmall_muffler_towel" field to the value that was provided on create. +func (u *HPFollowUpsert) UpdateElineupmallMufflerTowel() *HPFollowUpsert { + u.SetExcluded(hpfollow.FieldElineupmallMufflerTowel) + return u +} + +// SetElineupmallFsk sets the "elineupmall_fsk" field. +func (u *HPFollowUpsert) SetElineupmallFsk(v enums.HPFollowType) *HPFollowUpsert { + u.Set(hpfollow.FieldElineupmallFsk, v) + return u +} + +// UpdateElineupmallFsk sets the "elineupmall_fsk" field to the value that was provided on create. +func (u *HPFollowUpsert) UpdateElineupmallFsk() *HPFollowUpsert { + u.SetExcluded(hpfollow.FieldElineupmallFsk) + return u +} + +// SetElineupmallKeyringOther sets the "elineupmall_keyring_other" field. +func (u *HPFollowUpsert) SetElineupmallKeyringOther(v enums.HPFollowType) *HPFollowUpsert { + u.Set(hpfollow.FieldElineupmallKeyringOther, v) + return u +} + +// UpdateElineupmallKeyringOther sets the "elineupmall_keyring_other" field to the value that was provided on create. +func (u *HPFollowUpsert) UpdateElineupmallKeyringOther() *HPFollowUpsert { + u.SetExcluded(hpfollow.FieldElineupmallKeyringOther) + return u +} + +// SetElineupmallClearFile sets the "elineupmall_clear_file" field. +func (u *HPFollowUpsert) SetElineupmallClearFile(v enums.HPFollowType) *HPFollowUpsert { + u.Set(hpfollow.FieldElineupmallClearFile, v) + return u +} + +// UpdateElineupmallClearFile sets the "elineupmall_clear_file" field to the value that was provided on create. +func (u *HPFollowUpsert) UpdateElineupmallClearFile() *HPFollowUpsert { + u.SetExcluded(hpfollow.FieldElineupmallClearFile) + return u +} + +// UpdateNewValues updates the mutable fields using the new values that were set on create. +// Using this option is equivalent to using: +// +// client.HPFollow.Create(). +// OnConflict( +// sql.ResolveWithNewValues(), +// ). +// Exec(ctx) +func (u *HPFollowUpsertOne) UpdateNewValues() *HPFollowUpsertOne { + u.create.conflict = append(u.create.conflict, sql.ResolveWithNewValues()) + u.create.conflict = append(u.create.conflict, sql.ResolveWith(func(s *sql.UpdateSet) { + if _, exists := u.create.mutation.CreatedAt(); exists { + s.SetIgnore(hpfollow.FieldCreatedAt) + } + })) + return u +} + +// Ignore sets each column to itself in case of conflict. +// Using this option is equivalent to using: +// +// client.HPFollow.Create(). +// OnConflict(sql.ResolveWithIgnore()). +// Exec(ctx) +func (u *HPFollowUpsertOne) Ignore() *HPFollowUpsertOne { + u.create.conflict = append(u.create.conflict, sql.ResolveWithIgnore()) + return u +} + +// DoNothing configures the conflict_action to `DO NOTHING`. +// Supported only by SQLite and PostgreSQL. +func (u *HPFollowUpsertOne) DoNothing() *HPFollowUpsertOne { + u.create.conflict = append(u.create.conflict, sql.DoNothing()) + return u +} + +// Update allows overriding fields `UPDATE` values. See the HPFollowCreate.OnConflict +// documentation for more info. +func (u *HPFollowUpsertOne) Update(set func(*HPFollowUpsert)) *HPFollowUpsertOne { + u.create.conflict = append(u.create.conflict, sql.ResolveWith(func(update *sql.UpdateSet) { + set(&HPFollowUpsert{UpdateSet: update}) + })) + return u +} + +// SetUpdatedAt sets the "updated_at" field. +func (u *HPFollowUpsertOne) SetUpdatedAt(v time.Time) *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.SetUpdatedAt(v) + }) +} + +// UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create. +func (u *HPFollowUpsertOne) UpdateUpdatedAt() *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateUpdatedAt() + }) +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (u *HPFollowUpsertOne) ClearUpdatedAt() *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.ClearUpdatedAt() + }) +} + +// SetType sets the "type" field. +func (u *HPFollowUpsertOne) SetType(v enums.HPFollowType) *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.SetType(v) + }) +} + +// UpdateType sets the "type" field to the value that was provided on create. +func (u *HPFollowUpsertOne) UpdateType() *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateType() + }) +} + +// SetElineupmallOther sets the "elineupmall_other" field. +func (u *HPFollowUpsertOne) SetElineupmallOther(v enums.HPFollowType) *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallOther(v) + }) +} + +// UpdateElineupmallOther sets the "elineupmall_other" field to the value that was provided on create. +func (u *HPFollowUpsertOne) UpdateElineupmallOther() *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallOther() + }) +} + +// SetElineupmallPhotoDaily sets the "elineupmall_photo_daily" field. +func (u *HPFollowUpsertOne) SetElineupmallPhotoDaily(v enums.HPFollowType) *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallPhotoDaily(v) + }) +} + +// UpdateElineupmallPhotoDaily sets the "elineupmall_photo_daily" field to the value that was provided on create. +func (u *HPFollowUpsertOne) UpdateElineupmallPhotoDaily() *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallPhotoDaily() + }) +} + +// SetElineupmallPhotoA4 sets the "elineupmall_photo_a4" field. +func (u *HPFollowUpsertOne) SetElineupmallPhotoA4(v enums.HPFollowType) *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallPhotoA4(v) + }) +} + +// UpdateElineupmallPhotoA4 sets the "elineupmall_photo_a4" field to the value that was provided on create. +func (u *HPFollowUpsertOne) UpdateElineupmallPhotoA4() *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallPhotoA4() + }) +} + +// SetElineupmallPhotoA5 sets the "elineupmall_photo_a5" field. +func (u *HPFollowUpsertOne) SetElineupmallPhotoA5(v enums.HPFollowType) *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallPhotoA5(v) + }) +} + +// UpdateElineupmallPhotoA5 sets the "elineupmall_photo_a5" field to the value that was provided on create. +func (u *HPFollowUpsertOne) UpdateElineupmallPhotoA5() *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallPhotoA5() + }) +} + +// SetElineupmallPhoto2l sets the "elineupmall_photo_2l" field. +func (u *HPFollowUpsertOne) SetElineupmallPhoto2l(v enums.HPFollowType) *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallPhoto2l(v) + }) +} + +// UpdateElineupmallPhoto2l sets the "elineupmall_photo_2l" field to the value that was provided on create. +func (u *HPFollowUpsertOne) UpdateElineupmallPhoto2l() *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallPhoto2l() + }) +} + +// SetElineupmallPhotoOther sets the "elineupmall_photo_other" field. +func (u *HPFollowUpsertOne) SetElineupmallPhotoOther(v enums.HPFollowType) *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallPhotoOther(v) + }) +} + +// UpdateElineupmallPhotoOther sets the "elineupmall_photo_other" field to the value that was provided on create. +func (u *HPFollowUpsertOne) UpdateElineupmallPhotoOther() *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallPhotoOther() + }) +} + +// SetElineupmallPhotoAlbum sets the "elineupmall_photo_album" field. +func (u *HPFollowUpsertOne) SetElineupmallPhotoAlbum(v enums.HPFollowType) *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallPhotoAlbum(v) + }) +} + +// UpdateElineupmallPhotoAlbum sets the "elineupmall_photo_album" field to the value that was provided on create. +func (u *HPFollowUpsertOne) UpdateElineupmallPhotoAlbum() *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallPhotoAlbum() + }) +} + +// SetElineupmallPhotoAlbumOther sets the "elineupmall_photo_album_other" field. +func (u *HPFollowUpsertOne) SetElineupmallPhotoAlbumOther(v enums.HPFollowType) *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallPhotoAlbumOther(v) + }) +} + +// UpdateElineupmallPhotoAlbumOther sets the "elineupmall_photo_album_other" field to the value that was provided on create. +func (u *HPFollowUpsertOne) UpdateElineupmallPhotoAlbumOther() *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallPhotoAlbumOther() + }) +} + +// SetElineupmallPhotoBook sets the "elineupmall_photo_book" field. +func (u *HPFollowUpsertOne) SetElineupmallPhotoBook(v enums.HPFollowType) *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallPhotoBook(v) + }) +} + +// UpdateElineupmallPhotoBook sets the "elineupmall_photo_book" field to the value that was provided on create. +func (u *HPFollowUpsertOne) UpdateElineupmallPhotoBook() *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallPhotoBook() + }) +} + +// SetElineupmallPhotoBookOther sets the "elineupmall_photo_book_other" field. +func (u *HPFollowUpsertOne) SetElineupmallPhotoBookOther(v enums.HPFollowType) *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallPhotoBookOther(v) + }) +} + +// UpdateElineupmallPhotoBookOther sets the "elineupmall_photo_book_other" field to the value that was provided on create. +func (u *HPFollowUpsertOne) UpdateElineupmallPhotoBookOther() *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallPhotoBookOther() + }) +} + +// SetElineupmallDvd sets the "elineupmall_dvd" field. +func (u *HPFollowUpsertOne) SetElineupmallDvd(v enums.HPFollowType) *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallDvd(v) + }) +} + +// UpdateElineupmallDvd sets the "elineupmall_dvd" field to the value that was provided on create. +func (u *HPFollowUpsertOne) UpdateElineupmallDvd() *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallDvd() + }) +} + +// SetElineupmallDvdMagazine sets the "elineupmall_dvd_magazine" field. +func (u *HPFollowUpsertOne) SetElineupmallDvdMagazine(v enums.HPFollowType) *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallDvdMagazine(v) + }) +} + +// UpdateElineupmallDvdMagazine sets the "elineupmall_dvd_magazine" field to the value that was provided on create. +func (u *HPFollowUpsertOne) UpdateElineupmallDvdMagazine() *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallDvdMagazine() + }) +} + +// SetElineupmallDvdMagazineOther sets the "elineupmall_dvd_magazine_other" field. +func (u *HPFollowUpsertOne) SetElineupmallDvdMagazineOther(v enums.HPFollowType) *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallDvdMagazineOther(v) + }) +} + +// UpdateElineupmallDvdMagazineOther sets the "elineupmall_dvd_magazine_other" field to the value that was provided on create. +func (u *HPFollowUpsertOne) UpdateElineupmallDvdMagazineOther() *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallDvdMagazineOther() + }) +} + +// SetElineupmallBlueray sets the "elineupmall_blueray" field. +func (u *HPFollowUpsertOne) SetElineupmallBlueray(v enums.HPFollowType) *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallBlueray(v) + }) +} + +// UpdateElineupmallBlueray sets the "elineupmall_blueray" field to the value that was provided on create. +func (u *HPFollowUpsertOne) UpdateElineupmallBlueray() *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallBlueray() + }) +} + +// SetElineupmallPenlight sets the "elineupmall_penlight" field. +func (u *HPFollowUpsertOne) SetElineupmallPenlight(v enums.HPFollowType) *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallPenlight(v) + }) +} + +// UpdateElineupmallPenlight sets the "elineupmall_penlight" field to the value that was provided on create. +func (u *HPFollowUpsertOne) UpdateElineupmallPenlight() *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallPenlight() + }) +} + +// SetElineupmallCollectionPinnapPoster sets the "elineupmall_collection_pinnap_poster" field. +func (u *HPFollowUpsertOne) SetElineupmallCollectionPinnapPoster(v enums.HPFollowType) *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallCollectionPinnapPoster(v) + }) +} + +// UpdateElineupmallCollectionPinnapPoster sets the "elineupmall_collection_pinnap_poster" field to the value that was provided on create. +func (u *HPFollowUpsertOne) UpdateElineupmallCollectionPinnapPoster() *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallCollectionPinnapPoster() + }) +} + +// SetElineupmallCollectionPhoto sets the "elineupmall_collection_photo" field. +func (u *HPFollowUpsertOne) SetElineupmallCollectionPhoto(v enums.HPFollowType) *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallCollectionPhoto(v) + }) +} + +// UpdateElineupmallCollectionPhoto sets the "elineupmall_collection_photo" field to the value that was provided on create. +func (u *HPFollowUpsertOne) UpdateElineupmallCollectionPhoto() *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallCollectionPhoto() + }) +} + +// SetElineupmallCollectionOther sets the "elineupmall_collection_other" field. +func (u *HPFollowUpsertOne) SetElineupmallCollectionOther(v enums.HPFollowType) *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallCollectionOther(v) + }) +} + +// UpdateElineupmallCollectionOther sets the "elineupmall_collection_other" field to the value that was provided on create. +func (u *HPFollowUpsertOne) UpdateElineupmallCollectionOther() *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallCollectionOther() + }) +} + +// SetElineupmallTshirt sets the "elineupmall_tshirt" field. +func (u *HPFollowUpsertOne) SetElineupmallTshirt(v enums.HPFollowType) *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallTshirt(v) + }) +} + +// UpdateElineupmallTshirt sets the "elineupmall_tshirt" field to the value that was provided on create. +func (u *HPFollowUpsertOne) UpdateElineupmallTshirt() *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallTshirt() + }) +} + +// SetElineupmallMicrofiberTowel sets the "elineupmall_microfiber_towel" field. +func (u *HPFollowUpsertOne) SetElineupmallMicrofiberTowel(v enums.HPFollowType) *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallMicrofiberTowel(v) + }) } -// Ignore sets each column to itself in case of conflict. -// Using this option is equivalent to using: -// -// client.HPFollow.Create(). -// OnConflict(sql.ResolveWithIgnore()). -// Exec(ctx) -func (u *HPFollowUpsertOne) Ignore() *HPFollowUpsertOne { - u.create.conflict = append(u.create.conflict, sql.ResolveWithIgnore()) - return u +// UpdateElineupmallMicrofiberTowel sets the "elineupmall_microfiber_towel" field to the value that was provided on create. +func (u *HPFollowUpsertOne) UpdateElineupmallMicrofiberTowel() *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallMicrofiberTowel() + }) } -// DoNothing configures the conflict_action to `DO NOTHING`. -// Supported only by SQLite and PostgreSQL. -func (u *HPFollowUpsertOne) DoNothing() *HPFollowUpsertOne { - u.create.conflict = append(u.create.conflict, sql.DoNothing()) - return u +// SetElineupmallMufflerTowel sets the "elineupmall_muffler_towel" field. +func (u *HPFollowUpsertOne) SetElineupmallMufflerTowel(v enums.HPFollowType) *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallMufflerTowel(v) + }) } -// Update allows overriding fields `UPDATE` values. See the HPFollowCreate.OnConflict -// documentation for more info. -func (u *HPFollowUpsertOne) Update(set func(*HPFollowUpsert)) *HPFollowUpsertOne { - u.create.conflict = append(u.create.conflict, sql.ResolveWith(func(update *sql.UpdateSet) { - set(&HPFollowUpsert{UpdateSet: update}) - })) - return u +// UpdateElineupmallMufflerTowel sets the "elineupmall_muffler_towel" field to the value that was provided on create. +func (u *HPFollowUpsertOne) UpdateElineupmallMufflerTowel() *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallMufflerTowel() + }) } -// SetUpdatedAt sets the "updated_at" field. -func (u *HPFollowUpsertOne) SetUpdatedAt(v time.Time) *HPFollowUpsertOne { +// SetElineupmallFsk sets the "elineupmall_fsk" field. +func (u *HPFollowUpsertOne) SetElineupmallFsk(v enums.HPFollowType) *HPFollowUpsertOne { return u.Update(func(s *HPFollowUpsert) { - s.SetUpdatedAt(v) + s.SetElineupmallFsk(v) }) } -// UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create. -func (u *HPFollowUpsertOne) UpdateUpdatedAt() *HPFollowUpsertOne { +// UpdateElineupmallFsk sets the "elineupmall_fsk" field to the value that was provided on create. +func (u *HPFollowUpsertOne) UpdateElineupmallFsk() *HPFollowUpsertOne { return u.Update(func(s *HPFollowUpsert) { - s.UpdateUpdatedAt() + s.UpdateElineupmallFsk() }) } -// ClearUpdatedAt clears the value of the "updated_at" field. -func (u *HPFollowUpsertOne) ClearUpdatedAt() *HPFollowUpsertOne { +// SetElineupmallKeyringOther sets the "elineupmall_keyring_other" field. +func (u *HPFollowUpsertOne) SetElineupmallKeyringOther(v enums.HPFollowType) *HPFollowUpsertOne { return u.Update(func(s *HPFollowUpsert) { - s.ClearUpdatedAt() + s.SetElineupmallKeyringOther(v) }) } -// SetType sets the "type" field. -func (u *HPFollowUpsertOne) SetType(v enums.HPFollowType) *HPFollowUpsertOne { +// UpdateElineupmallKeyringOther sets the "elineupmall_keyring_other" field to the value that was provided on create. +func (u *HPFollowUpsertOne) UpdateElineupmallKeyringOther() *HPFollowUpsertOne { return u.Update(func(s *HPFollowUpsert) { - s.SetType(v) + s.UpdateElineupmallKeyringOther() }) } -// UpdateType sets the "type" field to the value that was provided on create. -func (u *HPFollowUpsertOne) UpdateType() *HPFollowUpsertOne { +// SetElineupmallClearFile sets the "elineupmall_clear_file" field. +func (u *HPFollowUpsertOne) SetElineupmallClearFile(v enums.HPFollowType) *HPFollowUpsertOne { return u.Update(func(s *HPFollowUpsert) { - s.UpdateType() + s.SetElineupmallClearFile(v) + }) +} + +// UpdateElineupmallClearFile sets the "elineupmall_clear_file" field to the value that was provided on create. +func (u *HPFollowUpsertOne) UpdateElineupmallClearFile() *HPFollowUpsertOne { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallClearFile() }) } @@ -626,6 +1970,342 @@ func (u *HPFollowUpsertBulk) UpdateType() *HPFollowUpsertBulk { }) } +// SetElineupmallOther sets the "elineupmall_other" field. +func (u *HPFollowUpsertBulk) SetElineupmallOther(v enums.HPFollowType) *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallOther(v) + }) +} + +// UpdateElineupmallOther sets the "elineupmall_other" field to the value that was provided on create. +func (u *HPFollowUpsertBulk) UpdateElineupmallOther() *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallOther() + }) +} + +// SetElineupmallPhotoDaily sets the "elineupmall_photo_daily" field. +func (u *HPFollowUpsertBulk) SetElineupmallPhotoDaily(v enums.HPFollowType) *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallPhotoDaily(v) + }) +} + +// UpdateElineupmallPhotoDaily sets the "elineupmall_photo_daily" field to the value that was provided on create. +func (u *HPFollowUpsertBulk) UpdateElineupmallPhotoDaily() *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallPhotoDaily() + }) +} + +// SetElineupmallPhotoA4 sets the "elineupmall_photo_a4" field. +func (u *HPFollowUpsertBulk) SetElineupmallPhotoA4(v enums.HPFollowType) *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallPhotoA4(v) + }) +} + +// UpdateElineupmallPhotoA4 sets the "elineupmall_photo_a4" field to the value that was provided on create. +func (u *HPFollowUpsertBulk) UpdateElineupmallPhotoA4() *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallPhotoA4() + }) +} + +// SetElineupmallPhotoA5 sets the "elineupmall_photo_a5" field. +func (u *HPFollowUpsertBulk) SetElineupmallPhotoA5(v enums.HPFollowType) *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallPhotoA5(v) + }) +} + +// UpdateElineupmallPhotoA5 sets the "elineupmall_photo_a5" field to the value that was provided on create. +func (u *HPFollowUpsertBulk) UpdateElineupmallPhotoA5() *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallPhotoA5() + }) +} + +// SetElineupmallPhoto2l sets the "elineupmall_photo_2l" field. +func (u *HPFollowUpsertBulk) SetElineupmallPhoto2l(v enums.HPFollowType) *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallPhoto2l(v) + }) +} + +// UpdateElineupmallPhoto2l sets the "elineupmall_photo_2l" field to the value that was provided on create. +func (u *HPFollowUpsertBulk) UpdateElineupmallPhoto2l() *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallPhoto2l() + }) +} + +// SetElineupmallPhotoOther sets the "elineupmall_photo_other" field. +func (u *HPFollowUpsertBulk) SetElineupmallPhotoOther(v enums.HPFollowType) *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallPhotoOther(v) + }) +} + +// UpdateElineupmallPhotoOther sets the "elineupmall_photo_other" field to the value that was provided on create. +func (u *HPFollowUpsertBulk) UpdateElineupmallPhotoOther() *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallPhotoOther() + }) +} + +// SetElineupmallPhotoAlbum sets the "elineupmall_photo_album" field. +func (u *HPFollowUpsertBulk) SetElineupmallPhotoAlbum(v enums.HPFollowType) *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallPhotoAlbum(v) + }) +} + +// UpdateElineupmallPhotoAlbum sets the "elineupmall_photo_album" field to the value that was provided on create. +func (u *HPFollowUpsertBulk) UpdateElineupmallPhotoAlbum() *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallPhotoAlbum() + }) +} + +// SetElineupmallPhotoAlbumOther sets the "elineupmall_photo_album_other" field. +func (u *HPFollowUpsertBulk) SetElineupmallPhotoAlbumOther(v enums.HPFollowType) *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallPhotoAlbumOther(v) + }) +} + +// UpdateElineupmallPhotoAlbumOther sets the "elineupmall_photo_album_other" field to the value that was provided on create. +func (u *HPFollowUpsertBulk) UpdateElineupmallPhotoAlbumOther() *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallPhotoAlbumOther() + }) +} + +// SetElineupmallPhotoBook sets the "elineupmall_photo_book" field. +func (u *HPFollowUpsertBulk) SetElineupmallPhotoBook(v enums.HPFollowType) *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallPhotoBook(v) + }) +} + +// UpdateElineupmallPhotoBook sets the "elineupmall_photo_book" field to the value that was provided on create. +func (u *HPFollowUpsertBulk) UpdateElineupmallPhotoBook() *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallPhotoBook() + }) +} + +// SetElineupmallPhotoBookOther sets the "elineupmall_photo_book_other" field. +func (u *HPFollowUpsertBulk) SetElineupmallPhotoBookOther(v enums.HPFollowType) *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallPhotoBookOther(v) + }) +} + +// UpdateElineupmallPhotoBookOther sets the "elineupmall_photo_book_other" field to the value that was provided on create. +func (u *HPFollowUpsertBulk) UpdateElineupmallPhotoBookOther() *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallPhotoBookOther() + }) +} + +// SetElineupmallDvd sets the "elineupmall_dvd" field. +func (u *HPFollowUpsertBulk) SetElineupmallDvd(v enums.HPFollowType) *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallDvd(v) + }) +} + +// UpdateElineupmallDvd sets the "elineupmall_dvd" field to the value that was provided on create. +func (u *HPFollowUpsertBulk) UpdateElineupmallDvd() *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallDvd() + }) +} + +// SetElineupmallDvdMagazine sets the "elineupmall_dvd_magazine" field. +func (u *HPFollowUpsertBulk) SetElineupmallDvdMagazine(v enums.HPFollowType) *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallDvdMagazine(v) + }) +} + +// UpdateElineupmallDvdMagazine sets the "elineupmall_dvd_magazine" field to the value that was provided on create. +func (u *HPFollowUpsertBulk) UpdateElineupmallDvdMagazine() *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallDvdMagazine() + }) +} + +// SetElineupmallDvdMagazineOther sets the "elineupmall_dvd_magazine_other" field. +func (u *HPFollowUpsertBulk) SetElineupmallDvdMagazineOther(v enums.HPFollowType) *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallDvdMagazineOther(v) + }) +} + +// UpdateElineupmallDvdMagazineOther sets the "elineupmall_dvd_magazine_other" field to the value that was provided on create. +func (u *HPFollowUpsertBulk) UpdateElineupmallDvdMagazineOther() *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallDvdMagazineOther() + }) +} + +// SetElineupmallBlueray sets the "elineupmall_blueray" field. +func (u *HPFollowUpsertBulk) SetElineupmallBlueray(v enums.HPFollowType) *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallBlueray(v) + }) +} + +// UpdateElineupmallBlueray sets the "elineupmall_blueray" field to the value that was provided on create. +func (u *HPFollowUpsertBulk) UpdateElineupmallBlueray() *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallBlueray() + }) +} + +// SetElineupmallPenlight sets the "elineupmall_penlight" field. +func (u *HPFollowUpsertBulk) SetElineupmallPenlight(v enums.HPFollowType) *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallPenlight(v) + }) +} + +// UpdateElineupmallPenlight sets the "elineupmall_penlight" field to the value that was provided on create. +func (u *HPFollowUpsertBulk) UpdateElineupmallPenlight() *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallPenlight() + }) +} + +// SetElineupmallCollectionPinnapPoster sets the "elineupmall_collection_pinnap_poster" field. +func (u *HPFollowUpsertBulk) SetElineupmallCollectionPinnapPoster(v enums.HPFollowType) *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallCollectionPinnapPoster(v) + }) +} + +// UpdateElineupmallCollectionPinnapPoster sets the "elineupmall_collection_pinnap_poster" field to the value that was provided on create. +func (u *HPFollowUpsertBulk) UpdateElineupmallCollectionPinnapPoster() *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallCollectionPinnapPoster() + }) +} + +// SetElineupmallCollectionPhoto sets the "elineupmall_collection_photo" field. +func (u *HPFollowUpsertBulk) SetElineupmallCollectionPhoto(v enums.HPFollowType) *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallCollectionPhoto(v) + }) +} + +// UpdateElineupmallCollectionPhoto sets the "elineupmall_collection_photo" field to the value that was provided on create. +func (u *HPFollowUpsertBulk) UpdateElineupmallCollectionPhoto() *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallCollectionPhoto() + }) +} + +// SetElineupmallCollectionOther sets the "elineupmall_collection_other" field. +func (u *HPFollowUpsertBulk) SetElineupmallCollectionOther(v enums.HPFollowType) *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallCollectionOther(v) + }) +} + +// UpdateElineupmallCollectionOther sets the "elineupmall_collection_other" field to the value that was provided on create. +func (u *HPFollowUpsertBulk) UpdateElineupmallCollectionOther() *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallCollectionOther() + }) +} + +// SetElineupmallTshirt sets the "elineupmall_tshirt" field. +func (u *HPFollowUpsertBulk) SetElineupmallTshirt(v enums.HPFollowType) *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallTshirt(v) + }) +} + +// UpdateElineupmallTshirt sets the "elineupmall_tshirt" field to the value that was provided on create. +func (u *HPFollowUpsertBulk) UpdateElineupmallTshirt() *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallTshirt() + }) +} + +// SetElineupmallMicrofiberTowel sets the "elineupmall_microfiber_towel" field. +func (u *HPFollowUpsertBulk) SetElineupmallMicrofiberTowel(v enums.HPFollowType) *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallMicrofiberTowel(v) + }) +} + +// UpdateElineupmallMicrofiberTowel sets the "elineupmall_microfiber_towel" field to the value that was provided on create. +func (u *HPFollowUpsertBulk) UpdateElineupmallMicrofiberTowel() *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallMicrofiberTowel() + }) +} + +// SetElineupmallMufflerTowel sets the "elineupmall_muffler_towel" field. +func (u *HPFollowUpsertBulk) SetElineupmallMufflerTowel(v enums.HPFollowType) *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallMufflerTowel(v) + }) +} + +// UpdateElineupmallMufflerTowel sets the "elineupmall_muffler_towel" field to the value that was provided on create. +func (u *HPFollowUpsertBulk) UpdateElineupmallMufflerTowel() *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallMufflerTowel() + }) +} + +// SetElineupmallFsk sets the "elineupmall_fsk" field. +func (u *HPFollowUpsertBulk) SetElineupmallFsk(v enums.HPFollowType) *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallFsk(v) + }) +} + +// UpdateElineupmallFsk sets the "elineupmall_fsk" field to the value that was provided on create. +func (u *HPFollowUpsertBulk) UpdateElineupmallFsk() *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallFsk() + }) +} + +// SetElineupmallKeyringOther sets the "elineupmall_keyring_other" field. +func (u *HPFollowUpsertBulk) SetElineupmallKeyringOther(v enums.HPFollowType) *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallKeyringOther(v) + }) +} + +// UpdateElineupmallKeyringOther sets the "elineupmall_keyring_other" field to the value that was provided on create. +func (u *HPFollowUpsertBulk) UpdateElineupmallKeyringOther() *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallKeyringOther() + }) +} + +// SetElineupmallClearFile sets the "elineupmall_clear_file" field. +func (u *HPFollowUpsertBulk) SetElineupmallClearFile(v enums.HPFollowType) *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.SetElineupmallClearFile(v) + }) +} + +// UpdateElineupmallClearFile sets the "elineupmall_clear_file" field to the value that was provided on create. +func (u *HPFollowUpsertBulk) UpdateElineupmallClearFile() *HPFollowUpsertBulk { + return u.Update(func(s *HPFollowUpsert) { + s.UpdateElineupmallClearFile() + }) +} + // Exec executes the query. func (u *HPFollowUpsertBulk) Exec(ctx context.Context) error { for i, b := range u.create.builders { diff --git a/go/service/ent/hpfollow_update.go b/go/service/ent/hpfollow_update.go index 5a21ad0..f2705ff 100644 --- a/go/service/ent/hpfollow_update.go +++ b/go/service/ent/hpfollow_update.go @@ -65,6 +65,342 @@ func (hfu *HPFollowUpdate) SetNillableType(eft *enums.HPFollowType) *HPFollowUpd return hfu } +// SetElineupmallOther sets the "elineupmall_other" field. +func (hfu *HPFollowUpdate) SetElineupmallOther(eft enums.HPFollowType) *HPFollowUpdate { + hfu.mutation.SetElineupmallOther(eft) + return hfu +} + +// SetNillableElineupmallOther sets the "elineupmall_other" field if the given value is not nil. +func (hfu *HPFollowUpdate) SetNillableElineupmallOther(eft *enums.HPFollowType) *HPFollowUpdate { + if eft != nil { + hfu.SetElineupmallOther(*eft) + } + return hfu +} + +// SetElineupmallPhotoDaily sets the "elineupmall_photo_daily" field. +func (hfu *HPFollowUpdate) SetElineupmallPhotoDaily(eft enums.HPFollowType) *HPFollowUpdate { + hfu.mutation.SetElineupmallPhotoDaily(eft) + return hfu +} + +// SetNillableElineupmallPhotoDaily sets the "elineupmall_photo_daily" field if the given value is not nil. +func (hfu *HPFollowUpdate) SetNillableElineupmallPhotoDaily(eft *enums.HPFollowType) *HPFollowUpdate { + if eft != nil { + hfu.SetElineupmallPhotoDaily(*eft) + } + return hfu +} + +// SetElineupmallPhotoA4 sets the "elineupmall_photo_a4" field. +func (hfu *HPFollowUpdate) SetElineupmallPhotoA4(eft enums.HPFollowType) *HPFollowUpdate { + hfu.mutation.SetElineupmallPhotoA4(eft) + return hfu +} + +// SetNillableElineupmallPhotoA4 sets the "elineupmall_photo_a4" field if the given value is not nil. +func (hfu *HPFollowUpdate) SetNillableElineupmallPhotoA4(eft *enums.HPFollowType) *HPFollowUpdate { + if eft != nil { + hfu.SetElineupmallPhotoA4(*eft) + } + return hfu +} + +// SetElineupmallPhotoA5 sets the "elineupmall_photo_a5" field. +func (hfu *HPFollowUpdate) SetElineupmallPhotoA5(eft enums.HPFollowType) *HPFollowUpdate { + hfu.mutation.SetElineupmallPhotoA5(eft) + return hfu +} + +// SetNillableElineupmallPhotoA5 sets the "elineupmall_photo_a5" field if the given value is not nil. +func (hfu *HPFollowUpdate) SetNillableElineupmallPhotoA5(eft *enums.HPFollowType) *HPFollowUpdate { + if eft != nil { + hfu.SetElineupmallPhotoA5(*eft) + } + return hfu +} + +// SetElineupmallPhoto2l sets the "elineupmall_photo_2l" field. +func (hfu *HPFollowUpdate) SetElineupmallPhoto2l(eft enums.HPFollowType) *HPFollowUpdate { + hfu.mutation.SetElineupmallPhoto2l(eft) + return hfu +} + +// SetNillableElineupmallPhoto2l sets the "elineupmall_photo_2l" field if the given value is not nil. +func (hfu *HPFollowUpdate) SetNillableElineupmallPhoto2l(eft *enums.HPFollowType) *HPFollowUpdate { + if eft != nil { + hfu.SetElineupmallPhoto2l(*eft) + } + return hfu +} + +// SetElineupmallPhotoOther sets the "elineupmall_photo_other" field. +func (hfu *HPFollowUpdate) SetElineupmallPhotoOther(eft enums.HPFollowType) *HPFollowUpdate { + hfu.mutation.SetElineupmallPhotoOther(eft) + return hfu +} + +// SetNillableElineupmallPhotoOther sets the "elineupmall_photo_other" field if the given value is not nil. +func (hfu *HPFollowUpdate) SetNillableElineupmallPhotoOther(eft *enums.HPFollowType) *HPFollowUpdate { + if eft != nil { + hfu.SetElineupmallPhotoOther(*eft) + } + return hfu +} + +// SetElineupmallPhotoAlbum sets the "elineupmall_photo_album" field. +func (hfu *HPFollowUpdate) SetElineupmallPhotoAlbum(eft enums.HPFollowType) *HPFollowUpdate { + hfu.mutation.SetElineupmallPhotoAlbum(eft) + return hfu +} + +// SetNillableElineupmallPhotoAlbum sets the "elineupmall_photo_album" field if the given value is not nil. +func (hfu *HPFollowUpdate) SetNillableElineupmallPhotoAlbum(eft *enums.HPFollowType) *HPFollowUpdate { + if eft != nil { + hfu.SetElineupmallPhotoAlbum(*eft) + } + return hfu +} + +// SetElineupmallPhotoAlbumOther sets the "elineupmall_photo_album_other" field. +func (hfu *HPFollowUpdate) SetElineupmallPhotoAlbumOther(eft enums.HPFollowType) *HPFollowUpdate { + hfu.mutation.SetElineupmallPhotoAlbumOther(eft) + return hfu +} + +// SetNillableElineupmallPhotoAlbumOther sets the "elineupmall_photo_album_other" field if the given value is not nil. +func (hfu *HPFollowUpdate) SetNillableElineupmallPhotoAlbumOther(eft *enums.HPFollowType) *HPFollowUpdate { + if eft != nil { + hfu.SetElineupmallPhotoAlbumOther(*eft) + } + return hfu +} + +// SetElineupmallPhotoBook sets the "elineupmall_photo_book" field. +func (hfu *HPFollowUpdate) SetElineupmallPhotoBook(eft enums.HPFollowType) *HPFollowUpdate { + hfu.mutation.SetElineupmallPhotoBook(eft) + return hfu +} + +// SetNillableElineupmallPhotoBook sets the "elineupmall_photo_book" field if the given value is not nil. +func (hfu *HPFollowUpdate) SetNillableElineupmallPhotoBook(eft *enums.HPFollowType) *HPFollowUpdate { + if eft != nil { + hfu.SetElineupmallPhotoBook(*eft) + } + return hfu +} + +// SetElineupmallPhotoBookOther sets the "elineupmall_photo_book_other" field. +func (hfu *HPFollowUpdate) SetElineupmallPhotoBookOther(eft enums.HPFollowType) *HPFollowUpdate { + hfu.mutation.SetElineupmallPhotoBookOther(eft) + return hfu +} + +// SetNillableElineupmallPhotoBookOther sets the "elineupmall_photo_book_other" field if the given value is not nil. +func (hfu *HPFollowUpdate) SetNillableElineupmallPhotoBookOther(eft *enums.HPFollowType) *HPFollowUpdate { + if eft != nil { + hfu.SetElineupmallPhotoBookOther(*eft) + } + return hfu +} + +// SetElineupmallDvd sets the "elineupmall_dvd" field. +func (hfu *HPFollowUpdate) SetElineupmallDvd(eft enums.HPFollowType) *HPFollowUpdate { + hfu.mutation.SetElineupmallDvd(eft) + return hfu +} + +// SetNillableElineupmallDvd sets the "elineupmall_dvd" field if the given value is not nil. +func (hfu *HPFollowUpdate) SetNillableElineupmallDvd(eft *enums.HPFollowType) *HPFollowUpdate { + if eft != nil { + hfu.SetElineupmallDvd(*eft) + } + return hfu +} + +// SetElineupmallDvdMagazine sets the "elineupmall_dvd_magazine" field. +func (hfu *HPFollowUpdate) SetElineupmallDvdMagazine(eft enums.HPFollowType) *HPFollowUpdate { + hfu.mutation.SetElineupmallDvdMagazine(eft) + return hfu +} + +// SetNillableElineupmallDvdMagazine sets the "elineupmall_dvd_magazine" field if the given value is not nil. +func (hfu *HPFollowUpdate) SetNillableElineupmallDvdMagazine(eft *enums.HPFollowType) *HPFollowUpdate { + if eft != nil { + hfu.SetElineupmallDvdMagazine(*eft) + } + return hfu +} + +// SetElineupmallDvdMagazineOther sets the "elineupmall_dvd_magazine_other" field. +func (hfu *HPFollowUpdate) SetElineupmallDvdMagazineOther(eft enums.HPFollowType) *HPFollowUpdate { + hfu.mutation.SetElineupmallDvdMagazineOther(eft) + return hfu +} + +// SetNillableElineupmallDvdMagazineOther sets the "elineupmall_dvd_magazine_other" field if the given value is not nil. +func (hfu *HPFollowUpdate) SetNillableElineupmallDvdMagazineOther(eft *enums.HPFollowType) *HPFollowUpdate { + if eft != nil { + hfu.SetElineupmallDvdMagazineOther(*eft) + } + return hfu +} + +// SetElineupmallBlueray sets the "elineupmall_blueray" field. +func (hfu *HPFollowUpdate) SetElineupmallBlueray(eft enums.HPFollowType) *HPFollowUpdate { + hfu.mutation.SetElineupmallBlueray(eft) + return hfu +} + +// SetNillableElineupmallBlueray sets the "elineupmall_blueray" field if the given value is not nil. +func (hfu *HPFollowUpdate) SetNillableElineupmallBlueray(eft *enums.HPFollowType) *HPFollowUpdate { + if eft != nil { + hfu.SetElineupmallBlueray(*eft) + } + return hfu +} + +// SetElineupmallPenlight sets the "elineupmall_penlight" field. +func (hfu *HPFollowUpdate) SetElineupmallPenlight(eft enums.HPFollowType) *HPFollowUpdate { + hfu.mutation.SetElineupmallPenlight(eft) + return hfu +} + +// SetNillableElineupmallPenlight sets the "elineupmall_penlight" field if the given value is not nil. +func (hfu *HPFollowUpdate) SetNillableElineupmallPenlight(eft *enums.HPFollowType) *HPFollowUpdate { + if eft != nil { + hfu.SetElineupmallPenlight(*eft) + } + return hfu +} + +// SetElineupmallCollectionPinnapPoster sets the "elineupmall_collection_pinnap_poster" field. +func (hfu *HPFollowUpdate) SetElineupmallCollectionPinnapPoster(eft enums.HPFollowType) *HPFollowUpdate { + hfu.mutation.SetElineupmallCollectionPinnapPoster(eft) + return hfu +} + +// SetNillableElineupmallCollectionPinnapPoster sets the "elineupmall_collection_pinnap_poster" field if the given value is not nil. +func (hfu *HPFollowUpdate) SetNillableElineupmallCollectionPinnapPoster(eft *enums.HPFollowType) *HPFollowUpdate { + if eft != nil { + hfu.SetElineupmallCollectionPinnapPoster(*eft) + } + return hfu +} + +// SetElineupmallCollectionPhoto sets the "elineupmall_collection_photo" field. +func (hfu *HPFollowUpdate) SetElineupmallCollectionPhoto(eft enums.HPFollowType) *HPFollowUpdate { + hfu.mutation.SetElineupmallCollectionPhoto(eft) + return hfu +} + +// SetNillableElineupmallCollectionPhoto sets the "elineupmall_collection_photo" field if the given value is not nil. +func (hfu *HPFollowUpdate) SetNillableElineupmallCollectionPhoto(eft *enums.HPFollowType) *HPFollowUpdate { + if eft != nil { + hfu.SetElineupmallCollectionPhoto(*eft) + } + return hfu +} + +// SetElineupmallCollectionOther sets the "elineupmall_collection_other" field. +func (hfu *HPFollowUpdate) SetElineupmallCollectionOther(eft enums.HPFollowType) *HPFollowUpdate { + hfu.mutation.SetElineupmallCollectionOther(eft) + return hfu +} + +// SetNillableElineupmallCollectionOther sets the "elineupmall_collection_other" field if the given value is not nil. +func (hfu *HPFollowUpdate) SetNillableElineupmallCollectionOther(eft *enums.HPFollowType) *HPFollowUpdate { + if eft != nil { + hfu.SetElineupmallCollectionOther(*eft) + } + return hfu +} + +// SetElineupmallTshirt sets the "elineupmall_tshirt" field. +func (hfu *HPFollowUpdate) SetElineupmallTshirt(eft enums.HPFollowType) *HPFollowUpdate { + hfu.mutation.SetElineupmallTshirt(eft) + return hfu +} + +// SetNillableElineupmallTshirt sets the "elineupmall_tshirt" field if the given value is not nil. +func (hfu *HPFollowUpdate) SetNillableElineupmallTshirt(eft *enums.HPFollowType) *HPFollowUpdate { + if eft != nil { + hfu.SetElineupmallTshirt(*eft) + } + return hfu +} + +// SetElineupmallMicrofiberTowel sets the "elineupmall_microfiber_towel" field. +func (hfu *HPFollowUpdate) SetElineupmallMicrofiberTowel(eft enums.HPFollowType) *HPFollowUpdate { + hfu.mutation.SetElineupmallMicrofiberTowel(eft) + return hfu +} + +// SetNillableElineupmallMicrofiberTowel sets the "elineupmall_microfiber_towel" field if the given value is not nil. +func (hfu *HPFollowUpdate) SetNillableElineupmallMicrofiberTowel(eft *enums.HPFollowType) *HPFollowUpdate { + if eft != nil { + hfu.SetElineupmallMicrofiberTowel(*eft) + } + return hfu +} + +// SetElineupmallMufflerTowel sets the "elineupmall_muffler_towel" field. +func (hfu *HPFollowUpdate) SetElineupmallMufflerTowel(eft enums.HPFollowType) *HPFollowUpdate { + hfu.mutation.SetElineupmallMufflerTowel(eft) + return hfu +} + +// SetNillableElineupmallMufflerTowel sets the "elineupmall_muffler_towel" field if the given value is not nil. +func (hfu *HPFollowUpdate) SetNillableElineupmallMufflerTowel(eft *enums.HPFollowType) *HPFollowUpdate { + if eft != nil { + hfu.SetElineupmallMufflerTowel(*eft) + } + return hfu +} + +// SetElineupmallFsk sets the "elineupmall_fsk" field. +func (hfu *HPFollowUpdate) SetElineupmallFsk(eft enums.HPFollowType) *HPFollowUpdate { + hfu.mutation.SetElineupmallFsk(eft) + return hfu +} + +// SetNillableElineupmallFsk sets the "elineupmall_fsk" field if the given value is not nil. +func (hfu *HPFollowUpdate) SetNillableElineupmallFsk(eft *enums.HPFollowType) *HPFollowUpdate { + if eft != nil { + hfu.SetElineupmallFsk(*eft) + } + return hfu +} + +// SetElineupmallKeyringOther sets the "elineupmall_keyring_other" field. +func (hfu *HPFollowUpdate) SetElineupmallKeyringOther(eft enums.HPFollowType) *HPFollowUpdate { + hfu.mutation.SetElineupmallKeyringOther(eft) + return hfu +} + +// SetNillableElineupmallKeyringOther sets the "elineupmall_keyring_other" field if the given value is not nil. +func (hfu *HPFollowUpdate) SetNillableElineupmallKeyringOther(eft *enums.HPFollowType) *HPFollowUpdate { + if eft != nil { + hfu.SetElineupmallKeyringOther(*eft) + } + return hfu +} + +// SetElineupmallClearFile sets the "elineupmall_clear_file" field. +func (hfu *HPFollowUpdate) SetElineupmallClearFile(eft enums.HPFollowType) *HPFollowUpdate { + hfu.mutation.SetElineupmallClearFile(eft) + return hfu +} + +// SetNillableElineupmallClearFile sets the "elineupmall_clear_file" field if the given value is not nil. +func (hfu *HPFollowUpdate) SetNillableElineupmallClearFile(eft *enums.HPFollowType) *HPFollowUpdate { + if eft != nil { + hfu.SetElineupmallClearFile(*eft) + } + return hfu +} + // SetUserID sets the "user" edge to the User entity by ID. func (hfu *HPFollowUpdate) SetUserID(id int) *HPFollowUpdate { hfu.mutation.SetUserID(id) @@ -82,203 +418,731 @@ func (hfu *HPFollowUpdate) SetMemberID(id int) *HPFollowUpdate { return hfu } -// SetMember sets the "member" edge to the HPMember entity. -func (hfu *HPFollowUpdate) SetMember(h *HPMember) *HPFollowUpdate { - return hfu.SetMemberID(h.ID) +// SetMember sets the "member" edge to the HPMember entity. +func (hfu *HPFollowUpdate) SetMember(h *HPMember) *HPFollowUpdate { + return hfu.SetMemberID(h.ID) +} + +// Mutation returns the HPFollowMutation object of the builder. +func (hfu *HPFollowUpdate) Mutation() *HPFollowMutation { + return hfu.mutation +} + +// ClearUser clears the "user" edge to the User entity. +func (hfu *HPFollowUpdate) ClearUser() *HPFollowUpdate { + hfu.mutation.ClearUser() + return hfu +} + +// ClearMember clears the "member" edge to the HPMember entity. +func (hfu *HPFollowUpdate) ClearMember() *HPFollowUpdate { + hfu.mutation.ClearMember() + return hfu +} + +// Save executes the query and returns the number of nodes affected by the update operation. +func (hfu *HPFollowUpdate) Save(ctx context.Context) (int, error) { + return withHooks[int, HPFollowMutation](ctx, hfu.sqlSave, hfu.mutation, hfu.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (hfu *HPFollowUpdate) SaveX(ctx context.Context) int { + affected, err := hfu.Save(ctx) + if err != nil { + panic(err) + } + return affected +} + +// Exec executes the query. +func (hfu *HPFollowUpdate) Exec(ctx context.Context) error { + _, err := hfu.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (hfu *HPFollowUpdate) ExecX(ctx context.Context) { + if err := hfu.Exec(ctx); err != nil { + panic(err) + } +} + +// check runs all checks and user-defined validators on the builder. +func (hfu *HPFollowUpdate) check() error { + if v, ok := hfu.mutation.GetType(); ok { + if err := hpfollow.TypeValidator(v); err != nil { + return &ValidationError{Name: "type", err: fmt.Errorf(`ent: validator failed for field "HPFollow.type": %w`, err)} + } + } + if v, ok := hfu.mutation.ElineupmallOther(); ok { + if err := hpfollow.ElineupmallOtherValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_other", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_other": %w`, err)} + } + } + if v, ok := hfu.mutation.ElineupmallPhotoDaily(); ok { + if err := hpfollow.ElineupmallPhotoDailyValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_photo_daily", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_photo_daily": %w`, err)} + } + } + if v, ok := hfu.mutation.ElineupmallPhotoA4(); ok { + if err := hpfollow.ElineupmallPhotoA4Validator(v); err != nil { + return &ValidationError{Name: "elineupmall_photo_a4", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_photo_a4": %w`, err)} + } + } + if v, ok := hfu.mutation.ElineupmallPhotoA5(); ok { + if err := hpfollow.ElineupmallPhotoA5Validator(v); err != nil { + return &ValidationError{Name: "elineupmall_photo_a5", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_photo_a5": %w`, err)} + } + } + if v, ok := hfu.mutation.ElineupmallPhoto2l(); ok { + if err := hpfollow.ElineupmallPhoto2lValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_photo_2l", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_photo_2l": %w`, err)} + } + } + if v, ok := hfu.mutation.ElineupmallPhotoOther(); ok { + if err := hpfollow.ElineupmallPhotoOtherValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_photo_other", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_photo_other": %w`, err)} + } + } + if v, ok := hfu.mutation.ElineupmallPhotoAlbum(); ok { + if err := hpfollow.ElineupmallPhotoAlbumValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_photo_album", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_photo_album": %w`, err)} + } + } + if v, ok := hfu.mutation.ElineupmallPhotoAlbumOther(); ok { + if err := hpfollow.ElineupmallPhotoAlbumOtherValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_photo_album_other", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_photo_album_other": %w`, err)} + } + } + if v, ok := hfu.mutation.ElineupmallPhotoBook(); ok { + if err := hpfollow.ElineupmallPhotoBookValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_photo_book", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_photo_book": %w`, err)} + } + } + if v, ok := hfu.mutation.ElineupmallPhotoBookOther(); ok { + if err := hpfollow.ElineupmallPhotoBookOtherValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_photo_book_other", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_photo_book_other": %w`, err)} + } + } + if v, ok := hfu.mutation.ElineupmallDvd(); ok { + if err := hpfollow.ElineupmallDvdValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_dvd", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_dvd": %w`, err)} + } + } + if v, ok := hfu.mutation.ElineupmallDvdMagazine(); ok { + if err := hpfollow.ElineupmallDvdMagazineValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_dvd_magazine", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_dvd_magazine": %w`, err)} + } + } + if v, ok := hfu.mutation.ElineupmallDvdMagazineOther(); ok { + if err := hpfollow.ElineupmallDvdMagazineOtherValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_dvd_magazine_other", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_dvd_magazine_other": %w`, err)} + } + } + if v, ok := hfu.mutation.ElineupmallBlueray(); ok { + if err := hpfollow.ElineupmallBluerayValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_blueray", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_blueray": %w`, err)} + } + } + if v, ok := hfu.mutation.ElineupmallPenlight(); ok { + if err := hpfollow.ElineupmallPenlightValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_penlight", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_penlight": %w`, err)} + } + } + if v, ok := hfu.mutation.ElineupmallCollectionPinnapPoster(); ok { + if err := hpfollow.ElineupmallCollectionPinnapPosterValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_collection_pinnap_poster", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_collection_pinnap_poster": %w`, err)} + } + } + if v, ok := hfu.mutation.ElineupmallCollectionPhoto(); ok { + if err := hpfollow.ElineupmallCollectionPhotoValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_collection_photo", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_collection_photo": %w`, err)} + } + } + if v, ok := hfu.mutation.ElineupmallCollectionOther(); ok { + if err := hpfollow.ElineupmallCollectionOtherValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_collection_other", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_collection_other": %w`, err)} + } + } + if v, ok := hfu.mutation.ElineupmallTshirt(); ok { + if err := hpfollow.ElineupmallTshirtValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_tshirt", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_tshirt": %w`, err)} + } + } + if v, ok := hfu.mutation.ElineupmallMicrofiberTowel(); ok { + if err := hpfollow.ElineupmallMicrofiberTowelValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_microfiber_towel", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_microfiber_towel": %w`, err)} + } + } + if v, ok := hfu.mutation.ElineupmallMufflerTowel(); ok { + if err := hpfollow.ElineupmallMufflerTowelValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_muffler_towel", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_muffler_towel": %w`, err)} + } + } + if v, ok := hfu.mutation.ElineupmallFsk(); ok { + if err := hpfollow.ElineupmallFskValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_fsk", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_fsk": %w`, err)} + } + } + if v, ok := hfu.mutation.ElineupmallKeyringOther(); ok { + if err := hpfollow.ElineupmallKeyringOtherValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_keyring_other", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_keyring_other": %w`, err)} + } + } + if v, ok := hfu.mutation.ElineupmallClearFile(); ok { + if err := hpfollow.ElineupmallClearFileValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_clear_file", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_clear_file": %w`, err)} + } + } + if _, ok := hfu.mutation.UserID(); hfu.mutation.UserCleared() && !ok { + return errors.New(`ent: clearing a required unique edge "HPFollow.user"`) + } + if _, ok := hfu.mutation.MemberID(); hfu.mutation.MemberCleared() && !ok { + return errors.New(`ent: clearing a required unique edge "HPFollow.member"`) + } + return nil +} + +func (hfu *HPFollowUpdate) sqlSave(ctx context.Context) (n int, err error) { + if err := hfu.check(); err != nil { + return n, err + } + _spec := sqlgraph.NewUpdateSpec(hpfollow.Table, hpfollow.Columns, sqlgraph.NewFieldSpec(hpfollow.FieldID, field.TypeInt)) + if ps := hfu.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + if hfu.mutation.CreatedAtCleared() { + _spec.ClearField(hpfollow.FieldCreatedAt, field.TypeTime) + } + if value, ok := hfu.mutation.UpdatedAt(); ok { + _spec.SetField(hpfollow.FieldUpdatedAt, field.TypeTime, value) + } + if hfu.mutation.UpdatedAtCleared() { + _spec.ClearField(hpfollow.FieldUpdatedAt, field.TypeTime) + } + if value, ok := hfu.mutation.GetType(); ok { + _spec.SetField(hpfollow.FieldType, field.TypeEnum, value) + } + if value, ok := hfu.mutation.ElineupmallOther(); ok { + _spec.SetField(hpfollow.FieldElineupmallOther, field.TypeEnum, value) + } + if value, ok := hfu.mutation.ElineupmallPhotoDaily(); ok { + _spec.SetField(hpfollow.FieldElineupmallPhotoDaily, field.TypeEnum, value) + } + if value, ok := hfu.mutation.ElineupmallPhotoA4(); ok { + _spec.SetField(hpfollow.FieldElineupmallPhotoA4, field.TypeEnum, value) + } + if value, ok := hfu.mutation.ElineupmallPhotoA5(); ok { + _spec.SetField(hpfollow.FieldElineupmallPhotoA5, field.TypeEnum, value) + } + if value, ok := hfu.mutation.ElineupmallPhoto2l(); ok { + _spec.SetField(hpfollow.FieldElineupmallPhoto2l, field.TypeEnum, value) + } + if value, ok := hfu.mutation.ElineupmallPhotoOther(); ok { + _spec.SetField(hpfollow.FieldElineupmallPhotoOther, field.TypeEnum, value) + } + if value, ok := hfu.mutation.ElineupmallPhotoAlbum(); ok { + _spec.SetField(hpfollow.FieldElineupmallPhotoAlbum, field.TypeEnum, value) + } + if value, ok := hfu.mutation.ElineupmallPhotoAlbumOther(); ok { + _spec.SetField(hpfollow.FieldElineupmallPhotoAlbumOther, field.TypeEnum, value) + } + if value, ok := hfu.mutation.ElineupmallPhotoBook(); ok { + _spec.SetField(hpfollow.FieldElineupmallPhotoBook, field.TypeEnum, value) + } + if value, ok := hfu.mutation.ElineupmallPhotoBookOther(); ok { + _spec.SetField(hpfollow.FieldElineupmallPhotoBookOther, field.TypeEnum, value) + } + if value, ok := hfu.mutation.ElineupmallDvd(); ok { + _spec.SetField(hpfollow.FieldElineupmallDvd, field.TypeEnum, value) + } + if value, ok := hfu.mutation.ElineupmallDvdMagazine(); ok { + _spec.SetField(hpfollow.FieldElineupmallDvdMagazine, field.TypeEnum, value) + } + if value, ok := hfu.mutation.ElineupmallDvdMagazineOther(); ok { + _spec.SetField(hpfollow.FieldElineupmallDvdMagazineOther, field.TypeEnum, value) + } + if value, ok := hfu.mutation.ElineupmallBlueray(); ok { + _spec.SetField(hpfollow.FieldElineupmallBlueray, field.TypeEnum, value) + } + if value, ok := hfu.mutation.ElineupmallPenlight(); ok { + _spec.SetField(hpfollow.FieldElineupmallPenlight, field.TypeEnum, value) + } + if value, ok := hfu.mutation.ElineupmallCollectionPinnapPoster(); ok { + _spec.SetField(hpfollow.FieldElineupmallCollectionPinnapPoster, field.TypeEnum, value) + } + if value, ok := hfu.mutation.ElineupmallCollectionPhoto(); ok { + _spec.SetField(hpfollow.FieldElineupmallCollectionPhoto, field.TypeEnum, value) + } + if value, ok := hfu.mutation.ElineupmallCollectionOther(); ok { + _spec.SetField(hpfollow.FieldElineupmallCollectionOther, field.TypeEnum, value) + } + if value, ok := hfu.mutation.ElineupmallTshirt(); ok { + _spec.SetField(hpfollow.FieldElineupmallTshirt, field.TypeEnum, value) + } + if value, ok := hfu.mutation.ElineupmallMicrofiberTowel(); ok { + _spec.SetField(hpfollow.FieldElineupmallMicrofiberTowel, field.TypeEnum, value) + } + if value, ok := hfu.mutation.ElineupmallMufflerTowel(); ok { + _spec.SetField(hpfollow.FieldElineupmallMufflerTowel, field.TypeEnum, value) + } + if value, ok := hfu.mutation.ElineupmallFsk(); ok { + _spec.SetField(hpfollow.FieldElineupmallFsk, field.TypeEnum, value) + } + if value, ok := hfu.mutation.ElineupmallKeyringOther(); ok { + _spec.SetField(hpfollow.FieldElineupmallKeyringOther, field.TypeEnum, value) + } + if value, ok := hfu.mutation.ElineupmallClearFile(); ok { + _spec.SetField(hpfollow.FieldElineupmallClearFile, field.TypeEnum, value) + } + if hfu.mutation.UserCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: hpfollow.UserTable, + Columns: []string{hpfollow.UserColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(user.FieldID, field.TypeInt), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := hfu.mutation.UserIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: hpfollow.UserTable, + Columns: []string{hpfollow.UserColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(user.FieldID, field.TypeInt), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if hfu.mutation.MemberCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: hpfollow.MemberTable, + Columns: []string{hpfollow.MemberColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(hpmember.FieldID, field.TypeInt), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := hfu.mutation.MemberIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: false, + Table: hpfollow.MemberTable, + Columns: []string{hpfollow.MemberColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(hpmember.FieldID, field.TypeInt), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if n, err = sqlgraph.UpdateNodes(ctx, hfu.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{hpfollow.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return 0, err + } + hfu.mutation.done = true + return n, nil +} + +// HPFollowUpdateOne is the builder for updating a single HPFollow entity. +type HPFollowUpdateOne struct { + config + fields []string + hooks []Hook + mutation *HPFollowMutation +} + +// SetUpdatedAt sets the "updated_at" field. +func (hfuo *HPFollowUpdateOne) SetUpdatedAt(t time.Time) *HPFollowUpdateOne { + hfuo.mutation.SetUpdatedAt(t) + return hfuo +} + +// SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil. +func (hfuo *HPFollowUpdateOne) SetNillableUpdatedAt(t *time.Time) *HPFollowUpdateOne { + if t != nil { + hfuo.SetUpdatedAt(*t) + } + return hfuo +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (hfuo *HPFollowUpdateOne) ClearUpdatedAt() *HPFollowUpdateOne { + hfuo.mutation.ClearUpdatedAt() + return hfuo +} + +// SetType sets the "type" field. +func (hfuo *HPFollowUpdateOne) SetType(eft enums.HPFollowType) *HPFollowUpdateOne { + hfuo.mutation.SetType(eft) + return hfuo +} + +// SetNillableType sets the "type" field if the given value is not nil. +func (hfuo *HPFollowUpdateOne) SetNillableType(eft *enums.HPFollowType) *HPFollowUpdateOne { + if eft != nil { + hfuo.SetType(*eft) + } + return hfuo +} + +// SetElineupmallOther sets the "elineupmall_other" field. +func (hfuo *HPFollowUpdateOne) SetElineupmallOther(eft enums.HPFollowType) *HPFollowUpdateOne { + hfuo.mutation.SetElineupmallOther(eft) + return hfuo +} + +// SetNillableElineupmallOther sets the "elineupmall_other" field if the given value is not nil. +func (hfuo *HPFollowUpdateOne) SetNillableElineupmallOther(eft *enums.HPFollowType) *HPFollowUpdateOne { + if eft != nil { + hfuo.SetElineupmallOther(*eft) + } + return hfuo +} + +// SetElineupmallPhotoDaily sets the "elineupmall_photo_daily" field. +func (hfuo *HPFollowUpdateOne) SetElineupmallPhotoDaily(eft enums.HPFollowType) *HPFollowUpdateOne { + hfuo.mutation.SetElineupmallPhotoDaily(eft) + return hfuo +} + +// SetNillableElineupmallPhotoDaily sets the "elineupmall_photo_daily" field if the given value is not nil. +func (hfuo *HPFollowUpdateOne) SetNillableElineupmallPhotoDaily(eft *enums.HPFollowType) *HPFollowUpdateOne { + if eft != nil { + hfuo.SetElineupmallPhotoDaily(*eft) + } + return hfuo +} + +// SetElineupmallPhotoA4 sets the "elineupmall_photo_a4" field. +func (hfuo *HPFollowUpdateOne) SetElineupmallPhotoA4(eft enums.HPFollowType) *HPFollowUpdateOne { + hfuo.mutation.SetElineupmallPhotoA4(eft) + return hfuo +} + +// SetNillableElineupmallPhotoA4 sets the "elineupmall_photo_a4" field if the given value is not nil. +func (hfuo *HPFollowUpdateOne) SetNillableElineupmallPhotoA4(eft *enums.HPFollowType) *HPFollowUpdateOne { + if eft != nil { + hfuo.SetElineupmallPhotoA4(*eft) + } + return hfuo +} + +// SetElineupmallPhotoA5 sets the "elineupmall_photo_a5" field. +func (hfuo *HPFollowUpdateOne) SetElineupmallPhotoA5(eft enums.HPFollowType) *HPFollowUpdateOne { + hfuo.mutation.SetElineupmallPhotoA5(eft) + return hfuo +} + +// SetNillableElineupmallPhotoA5 sets the "elineupmall_photo_a5" field if the given value is not nil. +func (hfuo *HPFollowUpdateOne) SetNillableElineupmallPhotoA5(eft *enums.HPFollowType) *HPFollowUpdateOne { + if eft != nil { + hfuo.SetElineupmallPhotoA5(*eft) + } + return hfuo +} + +// SetElineupmallPhoto2l sets the "elineupmall_photo_2l" field. +func (hfuo *HPFollowUpdateOne) SetElineupmallPhoto2l(eft enums.HPFollowType) *HPFollowUpdateOne { + hfuo.mutation.SetElineupmallPhoto2l(eft) + return hfuo +} + +// SetNillableElineupmallPhoto2l sets the "elineupmall_photo_2l" field if the given value is not nil. +func (hfuo *HPFollowUpdateOne) SetNillableElineupmallPhoto2l(eft *enums.HPFollowType) *HPFollowUpdateOne { + if eft != nil { + hfuo.SetElineupmallPhoto2l(*eft) + } + return hfuo +} + +// SetElineupmallPhotoOther sets the "elineupmall_photo_other" field. +func (hfuo *HPFollowUpdateOne) SetElineupmallPhotoOther(eft enums.HPFollowType) *HPFollowUpdateOne { + hfuo.mutation.SetElineupmallPhotoOther(eft) + return hfuo +} + +// SetNillableElineupmallPhotoOther sets the "elineupmall_photo_other" field if the given value is not nil. +func (hfuo *HPFollowUpdateOne) SetNillableElineupmallPhotoOther(eft *enums.HPFollowType) *HPFollowUpdateOne { + if eft != nil { + hfuo.SetElineupmallPhotoOther(*eft) + } + return hfuo +} + +// SetElineupmallPhotoAlbum sets the "elineupmall_photo_album" field. +func (hfuo *HPFollowUpdateOne) SetElineupmallPhotoAlbum(eft enums.HPFollowType) *HPFollowUpdateOne { + hfuo.mutation.SetElineupmallPhotoAlbum(eft) + return hfuo +} + +// SetNillableElineupmallPhotoAlbum sets the "elineupmall_photo_album" field if the given value is not nil. +func (hfuo *HPFollowUpdateOne) SetNillableElineupmallPhotoAlbum(eft *enums.HPFollowType) *HPFollowUpdateOne { + if eft != nil { + hfuo.SetElineupmallPhotoAlbum(*eft) + } + return hfuo +} + +// SetElineupmallPhotoAlbumOther sets the "elineupmall_photo_album_other" field. +func (hfuo *HPFollowUpdateOne) SetElineupmallPhotoAlbumOther(eft enums.HPFollowType) *HPFollowUpdateOne { + hfuo.mutation.SetElineupmallPhotoAlbumOther(eft) + return hfuo +} + +// SetNillableElineupmallPhotoAlbumOther sets the "elineupmall_photo_album_other" field if the given value is not nil. +func (hfuo *HPFollowUpdateOne) SetNillableElineupmallPhotoAlbumOther(eft *enums.HPFollowType) *HPFollowUpdateOne { + if eft != nil { + hfuo.SetElineupmallPhotoAlbumOther(*eft) + } + return hfuo +} + +// SetElineupmallPhotoBook sets the "elineupmall_photo_book" field. +func (hfuo *HPFollowUpdateOne) SetElineupmallPhotoBook(eft enums.HPFollowType) *HPFollowUpdateOne { + hfuo.mutation.SetElineupmallPhotoBook(eft) + return hfuo +} + +// SetNillableElineupmallPhotoBook sets the "elineupmall_photo_book" field if the given value is not nil. +func (hfuo *HPFollowUpdateOne) SetNillableElineupmallPhotoBook(eft *enums.HPFollowType) *HPFollowUpdateOne { + if eft != nil { + hfuo.SetElineupmallPhotoBook(*eft) + } + return hfuo +} + +// SetElineupmallPhotoBookOther sets the "elineupmall_photo_book_other" field. +func (hfuo *HPFollowUpdateOne) SetElineupmallPhotoBookOther(eft enums.HPFollowType) *HPFollowUpdateOne { + hfuo.mutation.SetElineupmallPhotoBookOther(eft) + return hfuo +} + +// SetNillableElineupmallPhotoBookOther sets the "elineupmall_photo_book_other" field if the given value is not nil. +func (hfuo *HPFollowUpdateOne) SetNillableElineupmallPhotoBookOther(eft *enums.HPFollowType) *HPFollowUpdateOne { + if eft != nil { + hfuo.SetElineupmallPhotoBookOther(*eft) + } + return hfuo +} + +// SetElineupmallDvd sets the "elineupmall_dvd" field. +func (hfuo *HPFollowUpdateOne) SetElineupmallDvd(eft enums.HPFollowType) *HPFollowUpdateOne { + hfuo.mutation.SetElineupmallDvd(eft) + return hfuo +} + +// SetNillableElineupmallDvd sets the "elineupmall_dvd" field if the given value is not nil. +func (hfuo *HPFollowUpdateOne) SetNillableElineupmallDvd(eft *enums.HPFollowType) *HPFollowUpdateOne { + if eft != nil { + hfuo.SetElineupmallDvd(*eft) + } + return hfuo +} + +// SetElineupmallDvdMagazine sets the "elineupmall_dvd_magazine" field. +func (hfuo *HPFollowUpdateOne) SetElineupmallDvdMagazine(eft enums.HPFollowType) *HPFollowUpdateOne { + hfuo.mutation.SetElineupmallDvdMagazine(eft) + return hfuo +} + +// SetNillableElineupmallDvdMagazine sets the "elineupmall_dvd_magazine" field if the given value is not nil. +func (hfuo *HPFollowUpdateOne) SetNillableElineupmallDvdMagazine(eft *enums.HPFollowType) *HPFollowUpdateOne { + if eft != nil { + hfuo.SetElineupmallDvdMagazine(*eft) + } + return hfuo +} + +// SetElineupmallDvdMagazineOther sets the "elineupmall_dvd_magazine_other" field. +func (hfuo *HPFollowUpdateOne) SetElineupmallDvdMagazineOther(eft enums.HPFollowType) *HPFollowUpdateOne { + hfuo.mutation.SetElineupmallDvdMagazineOther(eft) + return hfuo +} + +// SetNillableElineupmallDvdMagazineOther sets the "elineupmall_dvd_magazine_other" field if the given value is not nil. +func (hfuo *HPFollowUpdateOne) SetNillableElineupmallDvdMagazineOther(eft *enums.HPFollowType) *HPFollowUpdateOne { + if eft != nil { + hfuo.SetElineupmallDvdMagazineOther(*eft) + } + return hfuo +} + +// SetElineupmallBlueray sets the "elineupmall_blueray" field. +func (hfuo *HPFollowUpdateOne) SetElineupmallBlueray(eft enums.HPFollowType) *HPFollowUpdateOne { + hfuo.mutation.SetElineupmallBlueray(eft) + return hfuo +} + +// SetNillableElineupmallBlueray sets the "elineupmall_blueray" field if the given value is not nil. +func (hfuo *HPFollowUpdateOne) SetNillableElineupmallBlueray(eft *enums.HPFollowType) *HPFollowUpdateOne { + if eft != nil { + hfuo.SetElineupmallBlueray(*eft) + } + return hfuo +} + +// SetElineupmallPenlight sets the "elineupmall_penlight" field. +func (hfuo *HPFollowUpdateOne) SetElineupmallPenlight(eft enums.HPFollowType) *HPFollowUpdateOne { + hfuo.mutation.SetElineupmallPenlight(eft) + return hfuo +} + +// SetNillableElineupmallPenlight sets the "elineupmall_penlight" field if the given value is not nil. +func (hfuo *HPFollowUpdateOne) SetNillableElineupmallPenlight(eft *enums.HPFollowType) *HPFollowUpdateOne { + if eft != nil { + hfuo.SetElineupmallPenlight(*eft) + } + return hfuo +} + +// SetElineupmallCollectionPinnapPoster sets the "elineupmall_collection_pinnap_poster" field. +func (hfuo *HPFollowUpdateOne) SetElineupmallCollectionPinnapPoster(eft enums.HPFollowType) *HPFollowUpdateOne { + hfuo.mutation.SetElineupmallCollectionPinnapPoster(eft) + return hfuo +} + +// SetNillableElineupmallCollectionPinnapPoster sets the "elineupmall_collection_pinnap_poster" field if the given value is not nil. +func (hfuo *HPFollowUpdateOne) SetNillableElineupmallCollectionPinnapPoster(eft *enums.HPFollowType) *HPFollowUpdateOne { + if eft != nil { + hfuo.SetElineupmallCollectionPinnapPoster(*eft) + } + return hfuo +} + +// SetElineupmallCollectionPhoto sets the "elineupmall_collection_photo" field. +func (hfuo *HPFollowUpdateOne) SetElineupmallCollectionPhoto(eft enums.HPFollowType) *HPFollowUpdateOne { + hfuo.mutation.SetElineupmallCollectionPhoto(eft) + return hfuo } -// Mutation returns the HPFollowMutation object of the builder. -func (hfu *HPFollowUpdate) Mutation() *HPFollowMutation { - return hfu.mutation +// SetNillableElineupmallCollectionPhoto sets the "elineupmall_collection_photo" field if the given value is not nil. +func (hfuo *HPFollowUpdateOne) SetNillableElineupmallCollectionPhoto(eft *enums.HPFollowType) *HPFollowUpdateOne { + if eft != nil { + hfuo.SetElineupmallCollectionPhoto(*eft) + } + return hfuo } -// ClearUser clears the "user" edge to the User entity. -func (hfu *HPFollowUpdate) ClearUser() *HPFollowUpdate { - hfu.mutation.ClearUser() - return hfu +// SetElineupmallCollectionOther sets the "elineupmall_collection_other" field. +func (hfuo *HPFollowUpdateOne) SetElineupmallCollectionOther(eft enums.HPFollowType) *HPFollowUpdateOne { + hfuo.mutation.SetElineupmallCollectionOther(eft) + return hfuo } -// ClearMember clears the "member" edge to the HPMember entity. -func (hfu *HPFollowUpdate) ClearMember() *HPFollowUpdate { - hfu.mutation.ClearMember() - return hfu +// SetNillableElineupmallCollectionOther sets the "elineupmall_collection_other" field if the given value is not nil. +func (hfuo *HPFollowUpdateOne) SetNillableElineupmallCollectionOther(eft *enums.HPFollowType) *HPFollowUpdateOne { + if eft != nil { + hfuo.SetElineupmallCollectionOther(*eft) + } + return hfuo } -// Save executes the query and returns the number of nodes affected by the update operation. -func (hfu *HPFollowUpdate) Save(ctx context.Context) (int, error) { - return withHooks[int, HPFollowMutation](ctx, hfu.sqlSave, hfu.mutation, hfu.hooks) +// SetElineupmallTshirt sets the "elineupmall_tshirt" field. +func (hfuo *HPFollowUpdateOne) SetElineupmallTshirt(eft enums.HPFollowType) *HPFollowUpdateOne { + hfuo.mutation.SetElineupmallTshirt(eft) + return hfuo } -// SaveX is like Save, but panics if an error occurs. -func (hfu *HPFollowUpdate) SaveX(ctx context.Context) int { - affected, err := hfu.Save(ctx) - if err != nil { - panic(err) +// SetNillableElineupmallTshirt sets the "elineupmall_tshirt" field if the given value is not nil. +func (hfuo *HPFollowUpdateOne) SetNillableElineupmallTshirt(eft *enums.HPFollowType) *HPFollowUpdateOne { + if eft != nil { + hfuo.SetElineupmallTshirt(*eft) } - return affected + return hfuo } -// Exec executes the query. -func (hfu *HPFollowUpdate) Exec(ctx context.Context) error { - _, err := hfu.Save(ctx) - return err +// SetElineupmallMicrofiberTowel sets the "elineupmall_microfiber_towel" field. +func (hfuo *HPFollowUpdateOne) SetElineupmallMicrofiberTowel(eft enums.HPFollowType) *HPFollowUpdateOne { + hfuo.mutation.SetElineupmallMicrofiberTowel(eft) + return hfuo } -// ExecX is like Exec, but panics if an error occurs. -func (hfu *HPFollowUpdate) ExecX(ctx context.Context) { - if err := hfu.Exec(ctx); err != nil { - panic(err) +// SetNillableElineupmallMicrofiberTowel sets the "elineupmall_microfiber_towel" field if the given value is not nil. +func (hfuo *HPFollowUpdateOne) SetNillableElineupmallMicrofiberTowel(eft *enums.HPFollowType) *HPFollowUpdateOne { + if eft != nil { + hfuo.SetElineupmallMicrofiberTowel(*eft) } + return hfuo } -// check runs all checks and user-defined validators on the builder. -func (hfu *HPFollowUpdate) check() error { - if v, ok := hfu.mutation.GetType(); ok { - if err := hpfollow.TypeValidator(v); err != nil { - return &ValidationError{Name: "type", err: fmt.Errorf(`ent: validator failed for field "HPFollow.type": %w`, err)} - } - } - if _, ok := hfu.mutation.UserID(); hfu.mutation.UserCleared() && !ok { - return errors.New(`ent: clearing a required unique edge "HPFollow.user"`) - } - if _, ok := hfu.mutation.MemberID(); hfu.mutation.MemberCleared() && !ok { - return errors.New(`ent: clearing a required unique edge "HPFollow.member"`) - } - return nil +// SetElineupmallMufflerTowel sets the "elineupmall_muffler_towel" field. +func (hfuo *HPFollowUpdateOne) SetElineupmallMufflerTowel(eft enums.HPFollowType) *HPFollowUpdateOne { + hfuo.mutation.SetElineupmallMufflerTowel(eft) + return hfuo } -func (hfu *HPFollowUpdate) sqlSave(ctx context.Context) (n int, err error) { - if err := hfu.check(); err != nil { - return n, err - } - _spec := sqlgraph.NewUpdateSpec(hpfollow.Table, hpfollow.Columns, sqlgraph.NewFieldSpec(hpfollow.FieldID, field.TypeInt)) - if ps := hfu.mutation.predicates; len(ps) > 0 { - _spec.Predicate = func(selector *sql.Selector) { - for i := range ps { - ps[i](selector) - } - } - } - if hfu.mutation.CreatedAtCleared() { - _spec.ClearField(hpfollow.FieldCreatedAt, field.TypeTime) - } - if value, ok := hfu.mutation.UpdatedAt(); ok { - _spec.SetField(hpfollow.FieldUpdatedAt, field.TypeTime, value) - } - if hfu.mutation.UpdatedAtCleared() { - _spec.ClearField(hpfollow.FieldUpdatedAt, field.TypeTime) - } - if value, ok := hfu.mutation.GetType(); ok { - _spec.SetField(hpfollow.FieldType, field.TypeEnum, value) - } - if hfu.mutation.UserCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: hpfollow.UserTable, - Columns: []string{hpfollow.UserColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(user.FieldID, field.TypeInt), - }, - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) - } - if nodes := hfu.mutation.UserIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: true, - Table: hpfollow.UserTable, - Columns: []string{hpfollow.UserColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(user.FieldID, field.TypeInt), - }, - } - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) - } - if hfu.mutation.MemberCleared() { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: false, - Table: hpfollow.MemberTable, - Columns: []string{hpfollow.MemberColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(hpmember.FieldID, field.TypeInt), - }, - } - _spec.Edges.Clear = append(_spec.Edges.Clear, edge) - } - if nodes := hfu.mutation.MemberIDs(); len(nodes) > 0 { - edge := &sqlgraph.EdgeSpec{ - Rel: sqlgraph.M2O, - Inverse: false, - Table: hpfollow.MemberTable, - Columns: []string{hpfollow.MemberColumn}, - Bidi: false, - Target: &sqlgraph.EdgeTarget{ - IDSpec: sqlgraph.NewFieldSpec(hpmember.FieldID, field.TypeInt), - }, - } - for _, k := range nodes { - edge.Target.Nodes = append(edge.Target.Nodes, k) - } - _spec.Edges.Add = append(_spec.Edges.Add, edge) - } - if n, err = sqlgraph.UpdateNodes(ctx, hfu.driver, _spec); err != nil { - if _, ok := err.(*sqlgraph.NotFoundError); ok { - err = &NotFoundError{hpfollow.Label} - } else if sqlgraph.IsConstraintError(err) { - err = &ConstraintError{msg: err.Error(), wrap: err} - } - return 0, err +// SetNillableElineupmallMufflerTowel sets the "elineupmall_muffler_towel" field if the given value is not nil. +func (hfuo *HPFollowUpdateOne) SetNillableElineupmallMufflerTowel(eft *enums.HPFollowType) *HPFollowUpdateOne { + if eft != nil { + hfuo.SetElineupmallMufflerTowel(*eft) } - hfu.mutation.done = true - return n, nil + return hfuo } -// HPFollowUpdateOne is the builder for updating a single HPFollow entity. -type HPFollowUpdateOne struct { - config - fields []string - hooks []Hook - mutation *HPFollowMutation +// SetElineupmallFsk sets the "elineupmall_fsk" field. +func (hfuo *HPFollowUpdateOne) SetElineupmallFsk(eft enums.HPFollowType) *HPFollowUpdateOne { + hfuo.mutation.SetElineupmallFsk(eft) + return hfuo } -// SetUpdatedAt sets the "updated_at" field. -func (hfuo *HPFollowUpdateOne) SetUpdatedAt(t time.Time) *HPFollowUpdateOne { - hfuo.mutation.SetUpdatedAt(t) +// SetNillableElineupmallFsk sets the "elineupmall_fsk" field if the given value is not nil. +func (hfuo *HPFollowUpdateOne) SetNillableElineupmallFsk(eft *enums.HPFollowType) *HPFollowUpdateOne { + if eft != nil { + hfuo.SetElineupmallFsk(*eft) + } return hfuo } -// SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil. -func (hfuo *HPFollowUpdateOne) SetNillableUpdatedAt(t *time.Time) *HPFollowUpdateOne { - if t != nil { - hfuo.SetUpdatedAt(*t) - } +// SetElineupmallKeyringOther sets the "elineupmall_keyring_other" field. +func (hfuo *HPFollowUpdateOne) SetElineupmallKeyringOther(eft enums.HPFollowType) *HPFollowUpdateOne { + hfuo.mutation.SetElineupmallKeyringOther(eft) return hfuo } -// ClearUpdatedAt clears the value of the "updated_at" field. -func (hfuo *HPFollowUpdateOne) ClearUpdatedAt() *HPFollowUpdateOne { - hfuo.mutation.ClearUpdatedAt() +// SetNillableElineupmallKeyringOther sets the "elineupmall_keyring_other" field if the given value is not nil. +func (hfuo *HPFollowUpdateOne) SetNillableElineupmallKeyringOther(eft *enums.HPFollowType) *HPFollowUpdateOne { + if eft != nil { + hfuo.SetElineupmallKeyringOther(*eft) + } return hfuo } -// SetType sets the "type" field. -func (hfuo *HPFollowUpdateOne) SetType(eft enums.HPFollowType) *HPFollowUpdateOne { - hfuo.mutation.SetType(eft) +// SetElineupmallClearFile sets the "elineupmall_clear_file" field. +func (hfuo *HPFollowUpdateOne) SetElineupmallClearFile(eft enums.HPFollowType) *HPFollowUpdateOne { + hfuo.mutation.SetElineupmallClearFile(eft) return hfuo } -// SetNillableType sets the "type" field if the given value is not nil. -func (hfuo *HPFollowUpdateOne) SetNillableType(eft *enums.HPFollowType) *HPFollowUpdateOne { +// SetNillableElineupmallClearFile sets the "elineupmall_clear_file" field if the given value is not nil. +func (hfuo *HPFollowUpdateOne) SetNillableElineupmallClearFile(eft *enums.HPFollowType) *HPFollowUpdateOne { if eft != nil { - hfuo.SetType(*eft) + hfuo.SetElineupmallClearFile(*eft) } return hfuo } @@ -369,6 +1233,126 @@ func (hfuo *HPFollowUpdateOne) check() error { return &ValidationError{Name: "type", err: fmt.Errorf(`ent: validator failed for field "HPFollow.type": %w`, err)} } } + if v, ok := hfuo.mutation.ElineupmallOther(); ok { + if err := hpfollow.ElineupmallOtherValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_other", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_other": %w`, err)} + } + } + if v, ok := hfuo.mutation.ElineupmallPhotoDaily(); ok { + if err := hpfollow.ElineupmallPhotoDailyValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_photo_daily", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_photo_daily": %w`, err)} + } + } + if v, ok := hfuo.mutation.ElineupmallPhotoA4(); ok { + if err := hpfollow.ElineupmallPhotoA4Validator(v); err != nil { + return &ValidationError{Name: "elineupmall_photo_a4", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_photo_a4": %w`, err)} + } + } + if v, ok := hfuo.mutation.ElineupmallPhotoA5(); ok { + if err := hpfollow.ElineupmallPhotoA5Validator(v); err != nil { + return &ValidationError{Name: "elineupmall_photo_a5", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_photo_a5": %w`, err)} + } + } + if v, ok := hfuo.mutation.ElineupmallPhoto2l(); ok { + if err := hpfollow.ElineupmallPhoto2lValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_photo_2l", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_photo_2l": %w`, err)} + } + } + if v, ok := hfuo.mutation.ElineupmallPhotoOther(); ok { + if err := hpfollow.ElineupmallPhotoOtherValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_photo_other", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_photo_other": %w`, err)} + } + } + if v, ok := hfuo.mutation.ElineupmallPhotoAlbum(); ok { + if err := hpfollow.ElineupmallPhotoAlbumValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_photo_album", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_photo_album": %w`, err)} + } + } + if v, ok := hfuo.mutation.ElineupmallPhotoAlbumOther(); ok { + if err := hpfollow.ElineupmallPhotoAlbumOtherValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_photo_album_other", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_photo_album_other": %w`, err)} + } + } + if v, ok := hfuo.mutation.ElineupmallPhotoBook(); ok { + if err := hpfollow.ElineupmallPhotoBookValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_photo_book", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_photo_book": %w`, err)} + } + } + if v, ok := hfuo.mutation.ElineupmallPhotoBookOther(); ok { + if err := hpfollow.ElineupmallPhotoBookOtherValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_photo_book_other", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_photo_book_other": %w`, err)} + } + } + if v, ok := hfuo.mutation.ElineupmallDvd(); ok { + if err := hpfollow.ElineupmallDvdValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_dvd", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_dvd": %w`, err)} + } + } + if v, ok := hfuo.mutation.ElineupmallDvdMagazine(); ok { + if err := hpfollow.ElineupmallDvdMagazineValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_dvd_magazine", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_dvd_magazine": %w`, err)} + } + } + if v, ok := hfuo.mutation.ElineupmallDvdMagazineOther(); ok { + if err := hpfollow.ElineupmallDvdMagazineOtherValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_dvd_magazine_other", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_dvd_magazine_other": %w`, err)} + } + } + if v, ok := hfuo.mutation.ElineupmallBlueray(); ok { + if err := hpfollow.ElineupmallBluerayValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_blueray", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_blueray": %w`, err)} + } + } + if v, ok := hfuo.mutation.ElineupmallPenlight(); ok { + if err := hpfollow.ElineupmallPenlightValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_penlight", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_penlight": %w`, err)} + } + } + if v, ok := hfuo.mutation.ElineupmallCollectionPinnapPoster(); ok { + if err := hpfollow.ElineupmallCollectionPinnapPosterValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_collection_pinnap_poster", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_collection_pinnap_poster": %w`, err)} + } + } + if v, ok := hfuo.mutation.ElineupmallCollectionPhoto(); ok { + if err := hpfollow.ElineupmallCollectionPhotoValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_collection_photo", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_collection_photo": %w`, err)} + } + } + if v, ok := hfuo.mutation.ElineupmallCollectionOther(); ok { + if err := hpfollow.ElineupmallCollectionOtherValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_collection_other", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_collection_other": %w`, err)} + } + } + if v, ok := hfuo.mutation.ElineupmallTshirt(); ok { + if err := hpfollow.ElineupmallTshirtValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_tshirt", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_tshirt": %w`, err)} + } + } + if v, ok := hfuo.mutation.ElineupmallMicrofiberTowel(); ok { + if err := hpfollow.ElineupmallMicrofiberTowelValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_microfiber_towel", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_microfiber_towel": %w`, err)} + } + } + if v, ok := hfuo.mutation.ElineupmallMufflerTowel(); ok { + if err := hpfollow.ElineupmallMufflerTowelValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_muffler_towel", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_muffler_towel": %w`, err)} + } + } + if v, ok := hfuo.mutation.ElineupmallFsk(); ok { + if err := hpfollow.ElineupmallFskValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_fsk", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_fsk": %w`, err)} + } + } + if v, ok := hfuo.mutation.ElineupmallKeyringOther(); ok { + if err := hpfollow.ElineupmallKeyringOtherValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_keyring_other", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_keyring_other": %w`, err)} + } + } + if v, ok := hfuo.mutation.ElineupmallClearFile(); ok { + if err := hpfollow.ElineupmallClearFileValidator(v); err != nil { + return &ValidationError{Name: "elineupmall_clear_file", err: fmt.Errorf(`ent: validator failed for field "HPFollow.elineupmall_clear_file": %w`, err)} + } + } if _, ok := hfuo.mutation.UserID(); hfuo.mutation.UserCleared() && !ok { return errors.New(`ent: clearing a required unique edge "HPFollow.user"`) } @@ -419,6 +1403,78 @@ func (hfuo *HPFollowUpdateOne) sqlSave(ctx context.Context) (_node *HPFollow, er if value, ok := hfuo.mutation.GetType(); ok { _spec.SetField(hpfollow.FieldType, field.TypeEnum, value) } + if value, ok := hfuo.mutation.ElineupmallOther(); ok { + _spec.SetField(hpfollow.FieldElineupmallOther, field.TypeEnum, value) + } + if value, ok := hfuo.mutation.ElineupmallPhotoDaily(); ok { + _spec.SetField(hpfollow.FieldElineupmallPhotoDaily, field.TypeEnum, value) + } + if value, ok := hfuo.mutation.ElineupmallPhotoA4(); ok { + _spec.SetField(hpfollow.FieldElineupmallPhotoA4, field.TypeEnum, value) + } + if value, ok := hfuo.mutation.ElineupmallPhotoA5(); ok { + _spec.SetField(hpfollow.FieldElineupmallPhotoA5, field.TypeEnum, value) + } + if value, ok := hfuo.mutation.ElineupmallPhoto2l(); ok { + _spec.SetField(hpfollow.FieldElineupmallPhoto2l, field.TypeEnum, value) + } + if value, ok := hfuo.mutation.ElineupmallPhotoOther(); ok { + _spec.SetField(hpfollow.FieldElineupmallPhotoOther, field.TypeEnum, value) + } + if value, ok := hfuo.mutation.ElineupmallPhotoAlbum(); ok { + _spec.SetField(hpfollow.FieldElineupmallPhotoAlbum, field.TypeEnum, value) + } + if value, ok := hfuo.mutation.ElineupmallPhotoAlbumOther(); ok { + _spec.SetField(hpfollow.FieldElineupmallPhotoAlbumOther, field.TypeEnum, value) + } + if value, ok := hfuo.mutation.ElineupmallPhotoBook(); ok { + _spec.SetField(hpfollow.FieldElineupmallPhotoBook, field.TypeEnum, value) + } + if value, ok := hfuo.mutation.ElineupmallPhotoBookOther(); ok { + _spec.SetField(hpfollow.FieldElineupmallPhotoBookOther, field.TypeEnum, value) + } + if value, ok := hfuo.mutation.ElineupmallDvd(); ok { + _spec.SetField(hpfollow.FieldElineupmallDvd, field.TypeEnum, value) + } + if value, ok := hfuo.mutation.ElineupmallDvdMagazine(); ok { + _spec.SetField(hpfollow.FieldElineupmallDvdMagazine, field.TypeEnum, value) + } + if value, ok := hfuo.mutation.ElineupmallDvdMagazineOther(); ok { + _spec.SetField(hpfollow.FieldElineupmallDvdMagazineOther, field.TypeEnum, value) + } + if value, ok := hfuo.mutation.ElineupmallBlueray(); ok { + _spec.SetField(hpfollow.FieldElineupmallBlueray, field.TypeEnum, value) + } + if value, ok := hfuo.mutation.ElineupmallPenlight(); ok { + _spec.SetField(hpfollow.FieldElineupmallPenlight, field.TypeEnum, value) + } + if value, ok := hfuo.mutation.ElineupmallCollectionPinnapPoster(); ok { + _spec.SetField(hpfollow.FieldElineupmallCollectionPinnapPoster, field.TypeEnum, value) + } + if value, ok := hfuo.mutation.ElineupmallCollectionPhoto(); ok { + _spec.SetField(hpfollow.FieldElineupmallCollectionPhoto, field.TypeEnum, value) + } + if value, ok := hfuo.mutation.ElineupmallCollectionOther(); ok { + _spec.SetField(hpfollow.FieldElineupmallCollectionOther, field.TypeEnum, value) + } + if value, ok := hfuo.mutation.ElineupmallTshirt(); ok { + _spec.SetField(hpfollow.FieldElineupmallTshirt, field.TypeEnum, value) + } + if value, ok := hfuo.mutation.ElineupmallMicrofiberTowel(); ok { + _spec.SetField(hpfollow.FieldElineupmallMicrofiberTowel, field.TypeEnum, value) + } + if value, ok := hfuo.mutation.ElineupmallMufflerTowel(); ok { + _spec.SetField(hpfollow.FieldElineupmallMufflerTowel, field.TypeEnum, value) + } + if value, ok := hfuo.mutation.ElineupmallFsk(); ok { + _spec.SetField(hpfollow.FieldElineupmallFsk, field.TypeEnum, value) + } + if value, ok := hfuo.mutation.ElineupmallKeyringOther(); ok { + _spec.SetField(hpfollow.FieldElineupmallKeyringOther, field.TypeEnum, value) + } + if value, ok := hfuo.mutation.ElineupmallClearFile(); ok { + _spec.SetField(hpfollow.FieldElineupmallClearFile, field.TypeEnum, value) + } if hfuo.mutation.UserCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2O, diff --git a/go/service/ent/internal/schema.go b/go/service/ent/internal/schema.go index a84596d..580a37b 100644 --- a/go/service/ent/internal/schema.go +++ b/go/service/ent/internal/schema.go @@ -6,4 +6,4 @@ // Package internal holds a loadable version of the latest schema. package internal -const Schema = `{"Schema":"github.com/yssk22/hpapp/go/service/schema","Package":"github.com/yssk22/hpapp/go/service/ent","Schemas":[{"name":"Auth","config":{"Table":""},"edges":[{"name":"user","type":"User","field":"owner_user_id","ref_name":"auth","unique":true,"inverse":true,"annotations":{"EntGQL":{"Skip":63}}}],"fields":[{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"createdAt"}}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"updatedAt"}}},{"name":"provider_name","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":0,"MixedIn":false,"MixinIndex":0},"comment":"oauth provider name"},{"name":"provider_user_id","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"unique":true,"position":{"Index":1,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}},"comment":"user id that the provider uses"},{"name":"access_token","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"size":2147483647,"position":{"Index":2,"MixedIn":false,"MixinIndex":0},"sensitive":true,"comment":"[DEPRECATED - #125] access token"},{"name":"refresh_token","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"size":2147483647,"optional":true,"position":{"Index":3,"MixedIn":false,"MixinIndex":0},"sensitive":true,"comment":"[DEPRECATED - #125] refresh token"},{"name":"expire_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":4,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}},"comment":"token expire"},{"name":"scope","type":{"Type":3,"Ident":"[]string","PkgPath":"","PkgName":"","Nillable":true,"RType":{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":{}}},"optional":true,"position":{"Index":5,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}},"comment":"oauth scope"},{"name":"owner_user_id","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"optional":true,"storage_key":"user_auth","position":{"Index":6,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}},"comment":"owner user id"}],"indexes":[{"fields":["created_at"]},{"fields":["updated_at"]},{"unique":true,"fields":["provider_name","provider_user_id"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":0}],"policy":[{"Index":0,"MixedIn":false,"MixinIndex":0}]},{"name":"HPAmebloPost","config":{"Table":""},"edges":[{"name":"owner_artist","type":"HPArtist","field":"owner_artist_id","ref_name":"owning_ameblo_posts","unique":true,"inverse":true},{"name":"owner_member","type":"HPMember","field":"owner_member_id","ref_name":"owning_ameblo_posts","unique":true,"inverse":true},{"name":"tagged_artists","type":"HPArtist","ref_name":"tagged_ameblo_posts","inverse":true},{"name":"tagged_members","type":"HPMember","ref_name":"tagged_ameblo_posts","inverse":true},{"name":"asset","type":"HPAsset","ref_name":"ameblo_posts","unique":true,"inverse":true},{"name":"blobs","type":"HPBlob","annotations":{"EntSQL":{"on_delete":"CASCADE"}}}],"fields":[{"name":"crawled_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0}},{"name":"error_count","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"default":true,"default_value":0,"default_kind":2,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"name":"manually_modified","type":{"Type":3,"Ident":"*jsonfields.ManuallyModified","PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","PkgName":"jsonfields","Nillable":true,"RType":{"Name":"ManuallyModified","Ident":"jsonfields.ManuallyModified","Kind":22,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","Methods":{}}},"optional":true,"position":{"Index":2,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}}},{"name":"last_error_message","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"size":2147483647,"nillable":true,"optional":true,"position":{"Index":3,"MixedIn":true,"MixinIndex":0}},{"name":"recrawl_required","type":{"Type":1,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"optional":true,"default":true,"default_value":false,"default_kind":1,"position":{"Index":4,"MixedIn":true,"MixinIndex":0}},{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":1},"annotations":{"EntGQL":{"OrderField":"createdAt"}}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":1},"annotations":{"EntGQL":{"OrderField":"updatedAt"}}},{"name":"path","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"unique":true,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"next_path","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":1,"MixedIn":false,"MixinIndex":0}},{"name":"prev_path","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":2,"MixedIn":false,"MixinIndex":0}},{"name":"artist_key","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":3,"MixedIn":false,"MixinIndex":0}},{"name":"member_key","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":4,"MixedIn":false,"MixinIndex":0}},{"name":"title","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":5,"MixedIn":false,"MixinIndex":0}},{"name":"description","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"size":2147483647,"position":{"Index":6,"MixedIn":false,"MixinIndex":0}},{"name":"theme","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":7,"MixedIn":false,"MixinIndex":0}},{"name":"post_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"position":{"Index":8,"MixedIn":false,"MixinIndex":0}},{"name":"source","type":{"Type":6,"Ident":"hpameblopost.Source","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"enums":[{"N":"rss","V":"rss"},{"N":"list","V":"list"},{"N":"entry","V":"entry"}],"position":{"Index":9,"MixedIn":false,"MixinIndex":0}},{"name":"images","type":{"Type":3,"Ident":"[]jsonfields.Media","PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","PkgName":"jsonfields","Nillable":true,"RType":{"Name":"","Ident":"[]jsonfields.Media","Kind":23,"PkgPath":"","Methods":{}}},"optional":true,"position":{"Index":10,"MixedIn":false,"MixinIndex":0}},{"name":"likes","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":11,"MixedIn":false,"MixinIndex":0}},{"name":"comments","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":12,"MixedIn":false,"MixinIndex":0}},{"name":"reblogs","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":13,"MixedIn":false,"MixinIndex":0}},{"name":"owner_artist_id","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"storage_key":"hp_artist_ameblo_posts","position":{"Index":14,"MixedIn":false,"MixinIndex":0}},{"name":"owner_member_id","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"storage_key":"hp_member_ameblo_posts","position":{"Index":15,"MixedIn":false,"MixinIndex":0}}],"indexes":[{"fields":["created_at"]},{"fields":["updated_at"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":1}]},{"name":"HPArtist","config":{"Table":""},"edges":[{"name":"members","type":"HPMember"},{"name":"assets","type":"HPAsset"},{"name":"owning_feed","type":"HPFeedItem","annotations":{"EntGQL":{"Skip":63}}},{"name":"tagged_feed","type":"HPFeedItem","storage_key":{"Table":"hp_artist_feed","Symbols":null,"Columns":["hp_artist_id","hp_feed_item_id"]},"annotations":{"EntGQL":{"Skip":63}}},{"name":"owning_ig_posts","type":"HPIgPost","annotations":{"EntGQL":{"Skip":63}}},{"name":"tagged_ig_posts","type":"HPIgPost","annotations":{"EntGQL":{"Skip":63}}},{"name":"owning_ameblo_posts","type":"HPAmebloPost","annotations":{"EntGQL":{"Skip":63}}},{"name":"tagged_ameblo_posts","type":"HPAmebloPost","annotations":{"EntGQL":{"Skip":63}}},{"name":"tagged_elineup_mall_items","type":"HPElineupMallItem","storage_key":{"Table":"hp_artist_elineup_mall_items","Symbols":null,"Columns":["hp_artist_id","hp_elineup_mall_item_id"]},"annotations":{"EntGQL":{"Skip":63}}}],"fields":[{"name":"crawled_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0}},{"name":"error_count","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"default":true,"default_value":0,"default_kind":2,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"name":"manually_modified","type":{"Type":3,"Ident":"*jsonfields.ManuallyModified","PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","PkgName":"jsonfields","Nillable":true,"RType":{"Name":"ManuallyModified","Ident":"jsonfields.ManuallyModified","Kind":22,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","Methods":{}}},"optional":true,"position":{"Index":2,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}}},{"name":"last_error_message","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"size":2147483647,"nillable":true,"optional":true,"position":{"Index":3,"MixedIn":true,"MixinIndex":0}},{"name":"recrawl_required","type":{"Type":1,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"optional":true,"default":true,"default_value":false,"default_kind":1,"position":{"Index":4,"MixedIn":true,"MixinIndex":0}},{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":1},"annotations":{"EntGQL":{"OrderField":"createdAt"}}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":1},"annotations":{"EntGQL":{"OrderField":"updatedAt"}}},{"name":"key","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"unique":true,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"name","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"unique":true,"position":{"Index":1,"MixedIn":false,"MixinIndex":0}},{"name":"thumbnail_url","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":2,"MixedIn":false,"MixinIndex":0}},{"name":"index","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":3,"MixedIn":false,"MixinIndex":0}}],"indexes":[{"fields":["created_at"]},{"fields":["updated_at"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":1}],"policy":[{"Index":0,"MixedIn":false,"MixinIndex":0}]},{"name":"HPAsset","config":{"Table":""},"edges":[{"name":"artist","type":"HPArtist","ref_name":"assets","unique":true,"inverse":true},{"name":"members","type":"HPMember","ref_name":"assets","inverse":true},{"name":"ameblo_posts","type":"HPAmebloPost","annotations":{"EntGQL":{"Skip":63}}},{"name":"ig_posts","type":"HPIgPost","annotations":{"EntGQL":{"Skip":63}}}],"fields":[{"name":"key","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"asset_type","type":{"Type":6,"Ident":"enums.HPAssetType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPAssetType","Ident":"enums.HPAssetType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"ameblo","V":"ameblo"},{"N":"elineupmall","V":"elineupmall"},{"N":"instagram","V":"instagram"},{"N":"tiktok","V":"tiktok"},{"N":"twitter","V":"twitter"},{"N":"youtube","V":"youtube"}],"position":{"Index":1,"MixedIn":false,"MixinIndex":0}}],"indexes":[{"unique":true,"fields":["key","asset_type"]}],"annotations":{"EntGQL":{"Skip":63}}},{"name":"HPBlob","config":{"Table":""},"edges":[{"name":"owner_artist","type":"HPArtist","field":"owner_artist_id","unique":true},{"name":"owner_member","type":"HPMember","field":"owner_member_id","unique":true},{"name":"ameblo_posts","type":"HPAmebloPost","ref_name":"blobs","inverse":true},{"name":"ig_posts","type":"HPIgPost","ref_name":"blobs","inverse":true}],"fields":[{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"createdAt"}}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"updatedAt"}}},{"name":"storage_path","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"size":768,"unique":true,"validators":1,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"source_url","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"size":2048,"validators":1,"position":{"Index":1,"MixedIn":false,"MixinIndex":0}},{"name":"source_html_url","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"size":2048,"validators":1,"position":{"Index":2,"MixedIn":false,"MixinIndex":0}},{"name":"status","type":{"Type":6,"Ident":"enums.HPBlobStatus","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPBlobStatus","Ident":"enums.HPBlobStatus","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"error","V":"error"},{"N":"need_download","V":"need_download"},{"N":"ready_to_host","V":"ready_to_host"},{"N":"unknown","V":"unknown"}],"position":{"Index":3,"MixedIn":false,"MixinIndex":0}},{"name":"status_message","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"size":2147483647,"optional":true,"position":{"Index":4,"MixedIn":false,"MixinIndex":0}},{"name":"status_error_count","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":5,"MixedIn":false,"MixinIndex":0}},{"name":"type","type":{"Type":6,"Ident":"enums.HPBlobType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPBlobType","Ident":"enums.HPBlobType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"image","V":"image"},{"N":"text","V":"text"},{"N":"unknown","V":"unknown"},{"N":"video","V":"video"}],"position":{"Index":6,"MixedIn":false,"MixinIndex":0}},{"name":"sub_type","type":{"Type":6,"Ident":"enums.HPBlobSubType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPBlobSubType","Ident":"enums.HPBlobSubType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"html","V":"html"},{"N":"jpeg","V":"jpeg"},{"N":"mp4","V":"mp4"},{"N":"unknown","V":"unknown"}],"position":{"Index":7,"MixedIn":false,"MixinIndex":0}},{"name":"width","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":8,"MixedIn":false,"MixinIndex":0}},{"name":"height","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":9,"MixedIn":false,"MixinIndex":0}},{"name":"size","type":{"Type":13,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":10,"MixedIn":false,"MixinIndex":0}},{"name":"owner_artist_id","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":11,"MixedIn":false,"MixinIndex":0}},{"name":"owner_member_id","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":12,"MixedIn":false,"MixinIndex":0}},{"name":"num_faces","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":13,"MixedIn":false,"MixinIndex":0}},{"name":"faces","type":{"Type":3,"Ident":"jsonfields.HPBlobImageFace","PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","PkgName":"jsonfields","Nillable":false,"RType":{"Name":"HPBlobImageFace","Ident":"jsonfields.HPBlobImageFace","Kind":25,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","Methods":{}}},"optional":true,"position":{"Index":14,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}}},{"name":"face_recognition_status","type":{"Type":6,"Ident":"enums.HPBlobFaceRecognitionStatus","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPBlobFaceRecognitionStatus","Ident":"enums.HPBlobFaceRecognitionStatus","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"error","V":"error"},{"N":"face_automatically_labeled","V":"face_automatically_labeled"},{"N":"face_detected","V":"face_detected"},{"N":"face_manually_labeled","V":"face_manually_labeled"},{"N":"unknown","V":"unknown"}],"optional":true,"default":true,"default_value":"unknown","default_kind":24,"position":{"Index":15,"MixedIn":false,"MixinIndex":0}},{"name":"thumbnail","type":{"Type":3,"Ident":"*jsonfields.HPBlobThumbnail","PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","PkgName":"jsonfields","Nillable":true,"RType":{"Name":"HPBlobThumbnail","Ident":"jsonfields.HPBlobThumbnail","Kind":22,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","Methods":{}}},"optional":true,"position":{"Index":16,"MixedIn":false,"MixinIndex":0}},{"name":"duration_seconds","type":{"Type":20,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":17,"MixedIn":false,"MixinIndex":0}}],"indexes":[{"fields":["created_at"]},{"fields":["updated_at"]},{"fields":["storage_path"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":0}]},{"name":"HPElineupMallItem","config":{"Table":""},"edges":[{"name":"tagged_artists","type":"HPArtist","ref_name":"tagged_elineup_mall_items","inverse":true},{"name":"tagged_members","type":"HPMember","ref_name":"tagged_elineup_mall_items","inverse":true}],"fields":[{"name":"crawled_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0}},{"name":"error_count","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"default":true,"default_value":0,"default_kind":2,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"name":"manually_modified","type":{"Type":3,"Ident":"*jsonfields.ManuallyModified","PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","PkgName":"jsonfields","Nillable":true,"RType":{"Name":"ManuallyModified","Ident":"jsonfields.ManuallyModified","Kind":22,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","Methods":{}}},"optional":true,"position":{"Index":2,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}}},{"name":"last_error_message","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"size":2147483647,"nillable":true,"optional":true,"position":{"Index":3,"MixedIn":true,"MixinIndex":0}},{"name":"recrawl_required","type":{"Type":1,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"optional":true,"default":true,"default_value":false,"default_kind":1,"position":{"Index":4,"MixedIn":true,"MixinIndex":0}},{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":1},"annotations":{"EntGQL":{"OrderField":"createdAt"}}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":1},"annotations":{"EntGQL":{"OrderField":"updatedAt"}}},{"name":"permalink","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"unique":true,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"name","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":1,"MixedIn":false,"MixinIndex":0}},{"name":"description","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"size":2147483647,"default":true,"default_value":"","default_kind":24,"position":{"Index":2,"MixedIn":false,"MixinIndex":0}},{"name":"supplier","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":3,"MixedIn":false,"MixinIndex":0}},{"name":"price","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":4,"MixedIn":false,"MixinIndex":0}},{"name":"is_limited_to_fc","type":{"Type":1,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":5,"MixedIn":false,"MixinIndex":0}},{"name":"is_out_of_stock","type":{"Type":1,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":6,"MixedIn":false,"MixinIndex":0}},{"name":"images","type":{"Type":3,"Ident":"[]jsonfields.Media","PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","PkgName":"jsonfields","Nillable":true,"RType":{"Name":"","Ident":"[]jsonfields.Media","Kind":23,"PkgPath":"","Methods":{}}},"position":{"Index":7,"MixedIn":false,"MixinIndex":0}},{"name":"category","type":{"Type":6,"Ident":"enums.HPElineupMallItemCategory","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPElineupMallItemCategory","Ident":"enums.HPElineupMallItemCategory","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"Blueray","V":"Blueray"},{"N":"ClearFile","V":"ClearFile"},{"N":"ColllectionOther","V":"ColllectionOther"},{"N":"ColllectionPhoto","V":"ColllectionPhoto"},{"N":"ColllectionPinnapPoster","V":"ColllectionPinnapPoster"},{"N":"DVD","V":"DVD"},{"N":"DVDMagazine","V":"DVDMagazine"},{"N":"DVDMagazineOther","V":"DVDMagazineOther"},{"N":"FSK","V":"FSK"},{"N":"KeyringOther","V":"KeyringOther"},{"N":"MicrofiberTowel","V":"MicrofiberTowel"},{"N":"MufflerTowel","V":"MufflerTowel"},{"N":"Other","V":"Other"},{"N":"Penlight","V":"Penlight"},{"N":"Photo2L","V":"Photo2L"},{"N":"PhotoA4","V":"PhotoA4"},{"N":"PhotoA5","V":"PhotoA5"},{"N":"PhotoAlbum","V":"PhotoAlbum"},{"N":"PhotoAlbumOther","V":"PhotoAlbumOther"},{"N":"PhotoBook","V":"PhotoBook"},{"N":"PhotoBookOther","V":"PhotoBookOther"},{"N":"PhotoDaily","V":"PhotoDaily"},{"N":"PhotoOther","V":"PhotoOther"},{"N":"TShirt","V":"TShirt"}],"default":true,"default_value":"Other","default_kind":24,"position":{"Index":8,"MixedIn":false,"MixinIndex":0}},{"name":"order_start_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":9,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"orderStartAt"}}},{"name":"order_end_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":10,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"orderEndAt"}}}],"indexes":[{"fields":["created_at"]},{"fields":["updated_at"]},{"unique":true,"fields":["permalink"]},{"fields":["order_end_at"]},{"fields":["order_end_at","category"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":1}],"annotations":{"EntGQL":{"RelayConnection":true}}},{"name":"HPEvent","config":{"Table":""},"edges":[{"name":"members","type":"HPMember","annotations":{"EntGQL":{"Skip":63}}},{"name":"artists","type":"HPArtist","annotations":{"EntGQL":{"Skip":63}}},{"name":"hpfc_event_tickets","type":"HPFCEventTicket","annotations":{"EntGQL":{"Skip":63}}}],"fields":[{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"createdAt"}}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"updatedAt"}}},{"name":"key","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"unique":true,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"display_titles","type":{"Type":3,"Ident":"[]string","PkgPath":"","PkgName":"","Nillable":true,"RType":{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":{}}},"position":{"Index":1,"MixedIn":false,"MixinIndex":0}},{"name":"open_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":2,"MixedIn":false,"MixinIndex":0}},{"name":"start_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"position":{"Index":3,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"startAt"}}},{"name":"venue","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":4,"MixedIn":false,"MixinIndex":0}},{"name":"prefecture","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":5,"MixedIn":false,"MixinIndex":0}},{"name":"source","type":{"Type":6,"Ident":"enums.HPEventSource","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPEventSource","Ident":"enums.HPEventSource","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"fc_scrape","V":"fc_scrape"}],"default":true,"default_value":"fc_scrape","default_kind":24,"position":{"Index":6,"MixedIn":false,"MixinIndex":0}}],"indexes":[{"fields":["created_at"]},{"fields":["updated_at"]},{"unique":true,"fields":["key"]},{"fields":["start_at"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":0}],"annotations":{"EntGQL":{"RelayConnection":true}}},{"name":"HPFCEventTicket","config":{"Table":""},"edges":[{"name":"event","type":"HPEvent","ref_name":"hpfc_event_tickets","unique":true,"inverse":true,"annotations":{"EntGQL":{"Skip":63}}},{"name":"user","type":"User","field":"owner_user_id","ref_name":"hpfc_event_tickets","unique":true,"inverse":true,"required":true,"annotations":{"EntGQL":{"Skip":63}}}],"fields":[{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"createdAt"}}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"updatedAt"}}},{"name":"num","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"status","type":{"Type":6,"Ident":"enums.HPFCEventTicketApplicationStatus","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPFCEventTicketApplicationStatus","Ident":"enums.HPFCEventTicketApplicationStatus","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"BeforeLottery","V":"BeforeLottery"},{"N":"Completed","V":"Completed"},{"N":"PaymentOverdue","V":"PaymentOverdue"},{"N":"PendingPayment","V":"PendingPayment"},{"N":"Rejected","V":"Rejected"},{"N":"Submitted","V":"Submitted"},{"N":"Unknown","V":"Unknown"}],"default":true,"default_value":"Submitted","default_kind":24,"position":{"Index":1,"MixedIn":false,"MixinIndex":0}},{"name":"fc_member_sha256","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":2,"MixedIn":false,"MixinIndex":0}},{"name":"application_title","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":3,"MixedIn":false,"MixinIndex":0}},{"name":"application_id","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":4,"MixedIn":false,"MixinIndex":0}},{"name":"application_site","type":{"Type":6,"Ident":"enums.HPFCEventTicketApplicationSite","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPFCEventTicketApplicationSite","Ident":"enums.HPFCEventTicketApplicationSite","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"helloproject","V":"helloproject"},{"N":"mline","V":"mline"}],"default":true,"default_value":"helloproject","default_kind":24,"position":{"Index":5,"MixedIn":false,"MixinIndex":0}},{"name":"application_start_date","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":6,"MixedIn":false,"MixinIndex":0}},{"name":"application_due_date","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":7,"MixedIn":false,"MixinIndex":0}},{"name":"payment_start_date","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":8,"MixedIn":false,"MixinIndex":0}},{"name":"payment_due_date","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":9,"MixedIn":false,"MixinIndex":0}},{"name":"owner_user_id","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"storage_key":"user_hpfc_event_tickets","position":{"Index":10,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}}}],"indexes":[{"fields":["created_at"]},{"fields":["updated_at"]},{"edges":["user","event"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":0}],"policy":[{"Index":0,"MixedIn":false,"MixinIndex":0}]},{"name":"HPFeedItem","config":{"Table":""},"edges":[{"name":"view_histories","type":"HPViewHistory","annotations":{"EntGQL":{"Skip":63}}},{"name":"owner_artist","type":"HPArtist","field":"owner_artist_id","ref_name":"owning_feed","unique":true,"inverse":true},{"name":"owner_member","type":"HPMember","field":"owner_member_id","ref_name":"owning_feed","unique":true,"inverse":true},{"name":"tagged_artists","type":"HPArtist","ref_name":"tagged_feed","inverse":true},{"name":"tagged_members","type":"HPMember","ref_name":"tagged_feed","inverse":true}],"fields":[{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"createdAt"}}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"updatedAt"}}},{"name":"source_id","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"unique":true,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"asset_type","type":{"Type":6,"Ident":"enums.HPAssetType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPAssetType","Ident":"enums.HPAssetType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"ameblo","V":"ameblo"},{"N":"elineupmall","V":"elineupmall"},{"N":"instagram","V":"instagram"},{"N":"tiktok","V":"tiktok"},{"N":"twitter","V":"twitter"},{"N":"youtube","V":"youtube"}],"default":true,"default_value":"ameblo","default_kind":24,"position":{"Index":1,"MixedIn":false,"MixinIndex":0}},{"name":"title","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":2,"MixedIn":false,"MixinIndex":0}},{"name":"post_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"position":{"Index":3,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"postAt"}}},{"name":"source_url","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":4,"MixedIn":false,"MixinIndex":0}},{"name":"image_url","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":5,"MixedIn":false,"MixinIndex":0}},{"name":"media","type":{"Type":3,"Ident":"[]jsonfields.Media","PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","PkgName":"jsonfields","Nillable":true,"RType":{"Name":"","Ident":"[]jsonfields.Media","Kind":23,"PkgPath":"","Methods":{}}},"position":{"Index":6,"MixedIn":false,"MixinIndex":0}},{"name":"owner_artist_id","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":7,"MixedIn":false,"MixinIndex":0}},{"name":"owner_member_id","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":8,"MixedIn":false,"MixinIndex":0}}],"indexes":[{"fields":["created_at"]},{"fields":["updated_at"]},{"fields":["post_at"]},{"fields":["post_at","id"]},{"fields":["owner_member_id","asset_type","post_at","id"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":0}],"annotations":{"EntGQL":{"RelayConnection":true}}},{"name":"HPFollow","config":{"Table":""},"edges":[{"name":"user","type":"User","ref_name":"hpmember_following","unique":true,"inverse":true,"required":true,"annotations":{"EntSQL":{"on_delete":"CASCADE"}}},{"name":"member","type":"HPMember","unique":true,"required":true}],"fields":[{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"createdAt"}}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"updatedAt"}}},{"name":"type","type":{"Type":6,"Ident":"enums.HPFollowType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPFollowType","Ident":"enums.HPFollowType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"follow","V":"follow"},{"N":"follow_with_notification","V":"follow_with_notification"},{"N":"unfollow","V":"unfollow"},{"N":"unknown","V":"unknown"}],"default":true,"default_value":"follow_with_notification","default_kind":24,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}}],"indexes":[{"fields":["created_at"]},{"fields":["updated_at"]},{"edges":["member"]},{"unique":true,"edges":["user","member"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":0}]},{"name":"HPIgPost","config":{"Table":""},"edges":[{"name":"owner_artist","type":"HPArtist","field":"owner_artist_id","ref_name":"owning_ig_posts","unique":true,"inverse":true},{"name":"owner_member","type":"HPMember","field":"owner_member_id","ref_name":"owning_ig_posts","unique":true,"inverse":true},{"name":"asset","type":"HPAsset","ref_name":"ig_posts","unique":true,"inverse":true},{"name":"tagged_artists","type":"HPArtist","ref_name":"tagged_ig_posts","inverse":true},{"name":"tagged_members","type":"HPMember","ref_name":"tagged_ig_posts","inverse":true},{"name":"blobs","type":"HPBlob","annotations":{"EntSQL":{"on_delete":"CASCADE"}}}],"fields":[{"name":"crawled_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0}},{"name":"error_count","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"default":true,"default_value":0,"default_kind":2,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"name":"manually_modified","type":{"Type":3,"Ident":"*jsonfields.ManuallyModified","PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","PkgName":"jsonfields","Nillable":true,"RType":{"Name":"ManuallyModified","Ident":"jsonfields.ManuallyModified","Kind":22,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","Methods":{}}},"optional":true,"position":{"Index":2,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}}},{"name":"last_error_message","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"size":2147483647,"nillable":true,"optional":true,"position":{"Index":3,"MixedIn":true,"MixinIndex":0}},{"name":"recrawl_required","type":{"Type":1,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"optional":true,"default":true,"default_value":false,"default_kind":1,"position":{"Index":4,"MixedIn":true,"MixinIndex":0}},{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":1},"annotations":{"EntGQL":{"OrderField":"createdAt"}}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":1},"annotations":{"EntGQL":{"OrderField":"updatedAt"}}},{"name":"shortcode","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"unique":true,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"description","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"size":2147483647,"position":{"Index":1,"MixedIn":false,"MixinIndex":0}},{"name":"post_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"position":{"Index":2,"MixedIn":false,"MixinIndex":0}},{"name":"media","type":{"Type":3,"Ident":"[]jsonfields.Media","PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","PkgName":"jsonfields","Nillable":true,"RType":{"Name":"","Ident":"[]jsonfields.Media","Kind":23,"PkgPath":"","Methods":{}}},"position":{"Index":3,"MixedIn":false,"MixinIndex":0}},{"name":"likes","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":4,"MixedIn":false,"MixinIndex":0}},{"name":"comments","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":5,"MixedIn":false,"MixinIndex":0}},{"name":"recrawl_args","type":{"Type":3,"Ident":"*jsonfields.HPIgCrawlArgs","PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","PkgName":"jsonfields","Nillable":true,"RType":{"Name":"HPIgCrawlArgs","Ident":"jsonfields.HPIgCrawlArgs","Kind":22,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","Methods":{}}},"optional":true,"position":{"Index":6,"MixedIn":false,"MixinIndex":0}},{"name":"owner_artist_id","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"storage_key":"hp_artist_ig_posts","position":{"Index":7,"MixedIn":false,"MixinIndex":0}},{"name":"owner_member_id","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"storage_key":"hp_member_ig_posts","position":{"Index":8,"MixedIn":false,"MixinIndex":0}}],"indexes":[{"fields":["created_at"]},{"fields":["updated_at"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":1}],"annotations":{"EntGQL":{"RelayConnection":true}}},{"name":"HPMember","config":{"Table":""},"edges":[{"name":"assets","type":"HPAsset"},{"name":"artist","type":"HPArtist","field":"artist_id","ref_name":"members","unique":true,"inverse":true},{"name":"owning_feed","type":"HPFeedItem","annotations":{"EntGQL":{"Skip":63}}},{"name":"tagged_feed","type":"HPFeedItem","storage_key":{"Table":"hp_member_feed","Symbols":null,"Columns":["hp_member_id","hp_feed_item_id"]},"annotations":{"EntGQL":{"Skip":63}}},{"name":"owning_ig_posts","type":"HPIgPost","annotations":{"EntGQL":{"Skip":63}}},{"name":"tagged_ig_posts","type":"HPIgPost","annotations":{"EntGQL":{"Skip":63}}},{"name":"owning_ameblo_posts","type":"HPAmebloPost","annotations":{"EntGQL":{"Skip":63}}},{"name":"tagged_ameblo_posts","type":"HPAmebloPost","annotations":{"EntGQL":{"Skip":63}}},{"name":"tagged_elineup_mall_items","type":"HPElineupMallItem","storage_key":{"Table":"hp_member_elineup_mall_items","Symbols":null,"Columns":["hp_member_id","hp_elineup_mall_item_id"]},"annotations":{"EntGQL":{"Skip":63}}},{"name":"followed_by","type":"HPFollow","ref_name":"member","inverse":true,"annotations":{"EntGQL":{"Skip":63}}}],"fields":[{"name":"crawled_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0}},{"name":"error_count","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"default":true,"default_value":0,"default_kind":2,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"name":"manually_modified","type":{"Type":3,"Ident":"*jsonfields.ManuallyModified","PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","PkgName":"jsonfields","Nillable":true,"RType":{"Name":"ManuallyModified","Ident":"jsonfields.ManuallyModified","Kind":22,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","Methods":{}}},"optional":true,"position":{"Index":2,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}}},{"name":"last_error_message","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"size":2147483647,"nillable":true,"optional":true,"position":{"Index":3,"MixedIn":true,"MixinIndex":0}},{"name":"recrawl_required","type":{"Type":1,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"optional":true,"default":true,"default_value":false,"default_kind":1,"position":{"Index":4,"MixedIn":true,"MixinIndex":0}},{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":1},"annotations":{"EntGQL":{"OrderField":"createdAt"}}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":1},"annotations":{"EntGQL":{"OrderField":"updatedAt"}}},{"name":"key","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"unique":true,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"artist_key","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":1,"MixedIn":false,"MixinIndex":0}},{"name":"name","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":2,"MixedIn":false,"MixinIndex":0}},{"name":"name_kana","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":3,"MixedIn":false,"MixinIndex":0}},{"name":"thumbnail_url","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":4,"MixedIn":false,"MixinIndex":0}},{"name":"date_of_birth","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"position":{"Index":5,"MixedIn":false,"MixinIndex":0}},{"name":"blood_type","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":6,"MixedIn":false,"MixinIndex":0}},{"name":"hometown","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":7,"MixedIn":false,"MixinIndex":0}},{"name":"join_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":8,"MixedIn":false,"MixinIndex":0}},{"name":"graduate_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":9,"MixedIn":false,"MixinIndex":0}},{"name":"artist_id","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"storage_key":"hp_artist_members","position":{"Index":10,"MixedIn":false,"MixinIndex":0}}],"indexes":[{"fields":["created_at"]},{"fields":["updated_at"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":1}],"policy":[{"Index":0,"MixedIn":false,"MixinIndex":0}],"annotations":{"EntGQL":{"RelayConnection":true}}},{"name":"HPSortHistory","config":{"Table":""},"edges":[{"name":"owner","type":"User","field":"owner_user_id","ref_name":"hpsort_history","unique":true,"inverse":true}],"fields":[{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"createdAt"}}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"updatedAt"}}},{"name":"sort_result","type":{"Type":3,"Ident":"jsonfields.HPSortResult","PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","PkgName":"jsonfields","Nillable":false,"RType":{"Name":"HPSortResult","Ident":"jsonfields.HPSortResult","Kind":25,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","Methods":{}}},"immutable":true,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"owner_user_id","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"storage_key":"user_hpsort_history","position":{"Index":1,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}}}],"indexes":[{"fields":["created_at"]},{"fields":["updated_at"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":0}],"policy":[{"Index":0,"MixedIn":false,"MixinIndex":0}],"annotations":{"EntGQL":{"RelayConnection":true}}},{"name":"HPViewHistory","config":{"Table":""},"edges":[{"name":"feed","type":"HPFeedItem","ref_name":"view_histories","unique":true,"inverse":true},{"name":"user","type":"User","field":"owner_user_id","ref_name":"hpview_history","unique":true,"inverse":true,"required":true,"annotations":{"EntGQL":{"Skip":63}}}],"fields":[{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"createdAt"}}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"updatedAt"}}},{"name":"content_id","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"content_post_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"position":{"Index":1,"MixedIn":false,"MixinIndex":0},"comment":"post_at field value on content to query histories by post_at range"},{"name":"asset_type","type":{"Type":6,"Ident":"enums.HPAssetType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPAssetType","Ident":"enums.HPAssetType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"ameblo","V":"ameblo"},{"N":"elineupmall","V":"elineupmall"},{"N":"instagram","V":"instagram"},{"N":"tiktok","V":"tiktok"},{"N":"twitter","V":"twitter"},{"N":"youtube","V":"youtube"}],"position":{"Index":2,"MixedIn":false,"MixinIndex":0}},{"name":"is_favorite","type":{"Type":1,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"default":true,"default_value":false,"default_kind":1,"position":{"Index":3,"MixedIn":false,"MixinIndex":0}},{"name":"owner_user_id","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"storage_key":"user_hpview_history","position":{"Index":4,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}}}],"indexes":[{"fields":["created_at"]},{"fields":["updated_at"]},{"unique":true,"edges":["user"],"fields":["content_id"]},{"edges":["user"],"fields":["content_post_at"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":0}],"policy":[{"Index":0,"MixedIn":false,"MixinIndex":0}],"annotations":{"EntGQL":{"RelayConnection":true}}},{"name":"TestEnt","config":{"Table":""},"fields":[{"name":"string_field","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"default":true,"default_value":"test_string","default_kind":24,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"text_field","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"size":2147483647,"nillable":true,"optional":true,"default":true,"default_value":"test_text","default_kind":24,"position":{"Index":1,"MixedIn":false,"MixinIndex":0}},{"name":"bytes_field","type":{"Type":5,"Ident":"","PkgPath":"","PkgName":"","Nillable":true,"RType":null},"nillable":true,"optional":true,"default":true,"default_value":"dGVzdF9ieXRlcw==","default_kind":23,"position":{"Index":2,"MixedIn":false,"MixinIndex":0}},{"name":"bool_field","type":{"Type":1,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"default":true,"default_value":true,"default_kind":1,"position":{"Index":3,"MixedIn":false,"MixinIndex":0}},{"name":"time_field","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"default":true,"default_value":"1996-10-30T01:02:03.000000004Z","default_kind":25,"position":{"Index":4,"MixedIn":false,"MixinIndex":0}},{"name":"int_field","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"default":true,"default_value":10,"default_kind":2,"position":{"Index":5,"MixedIn":false,"MixinIndex":0}},{"name":"int64_field","type":{"Type":13,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"default":true,"default_value":30,"default_kind":6,"position":{"Index":6,"MixedIn":false,"MixinIndex":0}},{"name":"float_field","type":{"Type":20,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"default":true,"default_value":19.96,"default_kind":14,"position":{"Index":7,"MixedIn":false,"MixinIndex":0}},{"name":"json_field","type":{"Type":3,"Ident":"*jsonfields.TestJSON","PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","PkgName":"jsonfields","Nillable":true,"RType":{"Name":"TestJSON","Ident":"jsonfields.TestJSON","Kind":22,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","Methods":{}}},"optional":true,"default":true,"default_value":{"datetime":"1996-10-30T01:02:03.000000004Z","int":10,"string":"string_field"},"default_kind":22,"position":{"Index":8,"MixedIn":false,"MixinIndex":0}},{"name":"enum_field","type":{"Type":6,"Ident":"enums.TestEnum","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"TestEnum","Ident":"enums.TestEnum","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"a","V":"a"},{"N":"b","V":"b"},{"N":"c","V":"c"}],"optional":true,"default":true,"default_value":"b","default_kind":24,"position":{"Index":9,"MixedIn":false,"MixinIndex":0}}],"annotations":{"EntGQL":{"Skip":63}}},{"name":"User","config":{"Table":""},"edges":[{"name":"auth","type":"Auth","annotations":{"EntSQL":{"on_delete":"CASCADE"}}},{"name":"notification_settings","type":"UserNotificationSetting","annotations":{"EntSQL":{"on_delete":"CASCADE"}}},{"name":"hpview_history","type":"HPViewHistory","annotations":{"EntSQL":{"on_delete":"CASCADE"}}},{"name":"hpmember_following","type":"HPFollow","annotations":{"EntSQL":{"on_delete":"CASCADE"}}},{"name":"hpsort_history","type":"HPSortHistory","annotations":{"EntSQL":{"on_delete":"CASCADE"}}},{"name":"hpfc_event_tickets","type":"HPFCEventTicket","annotations":{"EntSQL":{"on_delete":"CASCADE"}}}],"fields":[{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"createdAt"}}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"updatedAt"}}},{"name":"username","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"unique":true,"position":{"Index":0,"MixedIn":false,"MixinIndex":0},"comment":"unique identifier with [a-z0-9][a-z0-9_.]+"},{"name":"access_token","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"unique":true,"position":{"Index":1,"MixedIn":false,"MixinIndex":0},"comment":"access token for the first party clients to access"}],"indexes":[{"fields":["created_at"]},{"fields":["updated_at"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":0}],"policy":[{"Index":0,"MixedIn":false,"MixinIndex":0}]},{"name":"UserNotificationLog","config":{"Table":""},"edges":[{"name":"receivers","type":"UserNotificationSetting"}],"fields":[{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"createdAt"}}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"updatedAt"}}},{"name":"key","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"immutable":true,"position":{"Index":0,"MixedIn":false,"MixinIndex":0},"comment":"unique key to identify the notification source"},{"name":"trigger","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"immutable":true,"position":{"Index":1,"MixedIn":false,"MixinIndex":0},"comment":"ocurrence of the notification. the pair of the key and trigger has to be unique"},{"name":"is_test","type":{"Type":1,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":2,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}},"comment":"true if the notification is generated for the test"},{"name":"react_navigation_message","type":{"Type":3,"Ident":"jsonfields.ReactNavigationPush","PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","PkgName":"jsonfields","Nillable":false,"RType":{"Name":"ReactNavigationPush","Ident":"jsonfields.ReactNavigationPush","Kind":25,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","Methods":{"ToPushMessage":{"In":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}],"Out":[{"Name":"","Ident":"*push.Message","Kind":22,"PkgPath":"","Methods":null}]}}}},"position":{"Index":3,"MixedIn":false,"MixinIndex":0},"comment":"Message payload for client to handle the notification"},{"name":"expected_delivery_time","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"position":{"Index":4,"MixedIn":false,"MixinIndex":0},"comment":"expected time for the notification to be sent"},{"name":"status","type":{"Type":6,"Ident":"enums.UserNotificationStatus","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"UserNotificationStatus","Ident":"enums.UserNotificationStatus","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"error","V":"error"},{"N":"prepared","V":"prepared"},{"N":"sent","V":"sent"}],"default":true,"default_value":"prepared","default_kind":24,"position":{"Index":5,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}}},{"name":"status_message","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"default":true,"default_value":"","default_kind":24,"position":{"Index":6,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}},"comment":"error message if happens"}],"indexes":[{"fields":["created_at"]},{"fields":["updated_at"]},{"unique":true,"fields":["key","trigger"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":0}],"annotations":{"EntGQL":{"Skip":63}}},{"name":"UserNotificationSetting","config":{"Table":""},"edges":[{"name":"user","type":"User","field":"owner_user_id","ref_name":"notification_settings","unique":true,"inverse":true},{"name":"notification_logs","type":"UserNotificationLog","ref_name":"receivers","inverse":true}],"fields":[{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"createdAt"}}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"updatedAt"}}},{"name":"token","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"unique":true,"position":{"Index":0,"MixedIn":false,"MixinIndex":0},"comment":"expo token"},{"name":"slug","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":1,"MixedIn":false,"MixinIndex":0},"comment":"expo slug value (project name)"},{"name":"name","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":2,"MixedIn":false,"MixinIndex":0},"comment":"human friendly name (taken on client side)"},{"name":"enable_new_posts","type":{"Type":1,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":3,"MixedIn":false,"MixinIndex":0},"comment":"notify when a new post is created"},{"name":"enable_payment_start","type":{"Type":1,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":4,"MixedIn":false,"MixinIndex":0},"comment":"notify when a payment is started"},{"name":"enable_payment_due","type":{"Type":1,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":5,"MixedIn":false,"MixinIndex":0},"comment":"notify when a payment due date is close"},{"name":"owner_user_id","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"storage_key":"user_notification_settings","position":{"Index":6,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}}}],"indexes":[{"fields":["created_at"]},{"fields":["updated_at"]},{"edges":["user"],"fields":["token"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":0}],"policy":[{"Index":0,"MixedIn":false,"MixinIndex":0}]}],"Features":["privacy","sql/upsert","schema/snapshot","entql","namedges"]}` +const Schema = `{"Schema":"github.com/yssk22/hpapp/go/service/schema","Package":"github.com/yssk22/hpapp/go/service/ent","Schemas":[{"name":"Auth","config":{"Table":""},"edges":[{"name":"user","type":"User","field":"owner_user_id","ref_name":"auth","unique":true,"inverse":true,"annotations":{"EntGQL":{"Skip":63}}}],"fields":[{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"createdAt"}}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"updatedAt"}}},{"name":"provider_name","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":0,"MixedIn":false,"MixinIndex":0},"comment":"oauth provider name"},{"name":"provider_user_id","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"unique":true,"position":{"Index":1,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}},"comment":"user id that the provider uses"},{"name":"access_token","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"size":2147483647,"position":{"Index":2,"MixedIn":false,"MixinIndex":0},"sensitive":true,"comment":"[DEPRECATED - #125] access token"},{"name":"refresh_token","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"size":2147483647,"optional":true,"position":{"Index":3,"MixedIn":false,"MixinIndex":0},"sensitive":true,"comment":"[DEPRECATED - #125] refresh token"},{"name":"expire_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":4,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}},"comment":"token expire"},{"name":"scope","type":{"Type":3,"Ident":"[]string","PkgPath":"","PkgName":"","Nillable":true,"RType":{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":{}}},"optional":true,"position":{"Index":5,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}},"comment":"oauth scope"},{"name":"owner_user_id","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"optional":true,"storage_key":"user_auth","position":{"Index":6,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}},"comment":"owner user id"}],"indexes":[{"fields":["created_at"]},{"fields":["updated_at"]},{"unique":true,"fields":["provider_name","provider_user_id"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":0}],"policy":[{"Index":0,"MixedIn":false,"MixinIndex":0}]},{"name":"HPAmebloPost","config":{"Table":""},"edges":[{"name":"owner_artist","type":"HPArtist","field":"owner_artist_id","ref_name":"owning_ameblo_posts","unique":true,"inverse":true},{"name":"owner_member","type":"HPMember","field":"owner_member_id","ref_name":"owning_ameblo_posts","unique":true,"inverse":true},{"name":"tagged_artists","type":"HPArtist","ref_name":"tagged_ameblo_posts","inverse":true},{"name":"tagged_members","type":"HPMember","ref_name":"tagged_ameblo_posts","inverse":true},{"name":"asset","type":"HPAsset","ref_name":"ameblo_posts","unique":true,"inverse":true},{"name":"blobs","type":"HPBlob","annotations":{"EntSQL":{"on_delete":"CASCADE"}}}],"fields":[{"name":"crawled_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0}},{"name":"error_count","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"default":true,"default_value":0,"default_kind":2,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"name":"manually_modified","type":{"Type":3,"Ident":"*jsonfields.ManuallyModified","PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","PkgName":"jsonfields","Nillable":true,"RType":{"Name":"ManuallyModified","Ident":"jsonfields.ManuallyModified","Kind":22,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","Methods":{}}},"optional":true,"position":{"Index":2,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}}},{"name":"last_error_message","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"size":2147483647,"nillable":true,"optional":true,"position":{"Index":3,"MixedIn":true,"MixinIndex":0}},{"name":"recrawl_required","type":{"Type":1,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"optional":true,"default":true,"default_value":false,"default_kind":1,"position":{"Index":4,"MixedIn":true,"MixinIndex":0}},{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":1},"annotations":{"EntGQL":{"OrderField":"createdAt"}}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":1},"annotations":{"EntGQL":{"OrderField":"updatedAt"}}},{"name":"path","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"unique":true,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"next_path","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":1,"MixedIn":false,"MixinIndex":0}},{"name":"prev_path","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":2,"MixedIn":false,"MixinIndex":0}},{"name":"artist_key","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":3,"MixedIn":false,"MixinIndex":0}},{"name":"member_key","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":4,"MixedIn":false,"MixinIndex":0}},{"name":"title","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":5,"MixedIn":false,"MixinIndex":0}},{"name":"description","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"size":2147483647,"position":{"Index":6,"MixedIn":false,"MixinIndex":0}},{"name":"theme","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":7,"MixedIn":false,"MixinIndex":0}},{"name":"post_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"position":{"Index":8,"MixedIn":false,"MixinIndex":0}},{"name":"source","type":{"Type":6,"Ident":"hpameblopost.Source","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"enums":[{"N":"rss","V":"rss"},{"N":"list","V":"list"},{"N":"entry","V":"entry"}],"position":{"Index":9,"MixedIn":false,"MixinIndex":0}},{"name":"images","type":{"Type":3,"Ident":"[]jsonfields.Media","PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","PkgName":"jsonfields","Nillable":true,"RType":{"Name":"","Ident":"[]jsonfields.Media","Kind":23,"PkgPath":"","Methods":{}}},"optional":true,"position":{"Index":10,"MixedIn":false,"MixinIndex":0}},{"name":"likes","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":11,"MixedIn":false,"MixinIndex":0}},{"name":"comments","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":12,"MixedIn":false,"MixinIndex":0}},{"name":"reblogs","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":13,"MixedIn":false,"MixinIndex":0}},{"name":"owner_artist_id","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"storage_key":"hp_artist_ameblo_posts","position":{"Index":14,"MixedIn":false,"MixinIndex":0}},{"name":"owner_member_id","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"storage_key":"hp_member_ameblo_posts","position":{"Index":15,"MixedIn":false,"MixinIndex":0}}],"indexes":[{"fields":["created_at"]},{"fields":["updated_at"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":1}]},{"name":"HPArtist","config":{"Table":""},"edges":[{"name":"members","type":"HPMember"},{"name":"assets","type":"HPAsset"},{"name":"owning_feed","type":"HPFeedItem","annotations":{"EntGQL":{"Skip":63}}},{"name":"tagged_feed","type":"HPFeedItem","storage_key":{"Table":"hp_artist_feed","Symbols":null,"Columns":["hp_artist_id","hp_feed_item_id"]},"annotations":{"EntGQL":{"Skip":63}}},{"name":"owning_ig_posts","type":"HPIgPost","annotations":{"EntGQL":{"Skip":63}}},{"name":"tagged_ig_posts","type":"HPIgPost","annotations":{"EntGQL":{"Skip":63}}},{"name":"owning_ameblo_posts","type":"HPAmebloPost","annotations":{"EntGQL":{"Skip":63}}},{"name":"tagged_ameblo_posts","type":"HPAmebloPost","annotations":{"EntGQL":{"Skip":63}}},{"name":"tagged_elineup_mall_items","type":"HPElineupMallItem","storage_key":{"Table":"hp_artist_elineup_mall_items","Symbols":null,"Columns":["hp_artist_id","hp_elineup_mall_item_id"]},"annotations":{"EntGQL":{"Skip":63}}}],"fields":[{"name":"crawled_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0}},{"name":"error_count","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"default":true,"default_value":0,"default_kind":2,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"name":"manually_modified","type":{"Type":3,"Ident":"*jsonfields.ManuallyModified","PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","PkgName":"jsonfields","Nillable":true,"RType":{"Name":"ManuallyModified","Ident":"jsonfields.ManuallyModified","Kind":22,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","Methods":{}}},"optional":true,"position":{"Index":2,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}}},{"name":"last_error_message","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"size":2147483647,"nillable":true,"optional":true,"position":{"Index":3,"MixedIn":true,"MixinIndex":0}},{"name":"recrawl_required","type":{"Type":1,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"optional":true,"default":true,"default_value":false,"default_kind":1,"position":{"Index":4,"MixedIn":true,"MixinIndex":0}},{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":1},"annotations":{"EntGQL":{"OrderField":"createdAt"}}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":1},"annotations":{"EntGQL":{"OrderField":"updatedAt"}}},{"name":"key","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"unique":true,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"name","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"unique":true,"position":{"Index":1,"MixedIn":false,"MixinIndex":0}},{"name":"thumbnail_url","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":2,"MixedIn":false,"MixinIndex":0}},{"name":"index","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":3,"MixedIn":false,"MixinIndex":0}}],"indexes":[{"fields":["created_at"]},{"fields":["updated_at"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":1}],"policy":[{"Index":0,"MixedIn":false,"MixinIndex":0}]},{"name":"HPAsset","config":{"Table":""},"edges":[{"name":"artist","type":"HPArtist","ref_name":"assets","unique":true,"inverse":true},{"name":"members","type":"HPMember","ref_name":"assets","inverse":true},{"name":"ameblo_posts","type":"HPAmebloPost","annotations":{"EntGQL":{"Skip":63}}},{"name":"ig_posts","type":"HPIgPost","annotations":{"EntGQL":{"Skip":63}}}],"fields":[{"name":"key","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"asset_type","type":{"Type":6,"Ident":"enums.HPAssetType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPAssetType","Ident":"enums.HPAssetType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"ameblo","V":"ameblo"},{"N":"elineupmall","V":"elineupmall"},{"N":"instagram","V":"instagram"},{"N":"tiktok","V":"tiktok"},{"N":"twitter","V":"twitter"},{"N":"youtube","V":"youtube"}],"position":{"Index":1,"MixedIn":false,"MixinIndex":0}}],"indexes":[{"unique":true,"fields":["key","asset_type"]}],"annotations":{"EntGQL":{"Skip":63}}},{"name":"HPBlob","config":{"Table":""},"edges":[{"name":"owner_artist","type":"HPArtist","field":"owner_artist_id","unique":true},{"name":"owner_member","type":"HPMember","field":"owner_member_id","unique":true},{"name":"ameblo_posts","type":"HPAmebloPost","ref_name":"blobs","inverse":true},{"name":"ig_posts","type":"HPIgPost","ref_name":"blobs","inverse":true}],"fields":[{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"createdAt"}}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"updatedAt"}}},{"name":"storage_path","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"size":768,"unique":true,"validators":1,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"source_url","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"size":2048,"validators":1,"position":{"Index":1,"MixedIn":false,"MixinIndex":0}},{"name":"source_html_url","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"size":2048,"validators":1,"position":{"Index":2,"MixedIn":false,"MixinIndex":0}},{"name":"status","type":{"Type":6,"Ident":"enums.HPBlobStatus","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPBlobStatus","Ident":"enums.HPBlobStatus","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"error","V":"error"},{"N":"need_download","V":"need_download"},{"N":"ready_to_host","V":"ready_to_host"},{"N":"unknown","V":"unknown"}],"position":{"Index":3,"MixedIn":false,"MixinIndex":0}},{"name":"status_message","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"size":2147483647,"optional":true,"position":{"Index":4,"MixedIn":false,"MixinIndex":0}},{"name":"status_error_count","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":5,"MixedIn":false,"MixinIndex":0}},{"name":"type","type":{"Type":6,"Ident":"enums.HPBlobType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPBlobType","Ident":"enums.HPBlobType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"image","V":"image"},{"N":"text","V":"text"},{"N":"unknown","V":"unknown"},{"N":"video","V":"video"}],"position":{"Index":6,"MixedIn":false,"MixinIndex":0}},{"name":"sub_type","type":{"Type":6,"Ident":"enums.HPBlobSubType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPBlobSubType","Ident":"enums.HPBlobSubType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"html","V":"html"},{"N":"jpeg","V":"jpeg"},{"N":"mp4","V":"mp4"},{"N":"unknown","V":"unknown"}],"position":{"Index":7,"MixedIn":false,"MixinIndex":0}},{"name":"width","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":8,"MixedIn":false,"MixinIndex":0}},{"name":"height","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":9,"MixedIn":false,"MixinIndex":0}},{"name":"size","type":{"Type":13,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":10,"MixedIn":false,"MixinIndex":0}},{"name":"owner_artist_id","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":11,"MixedIn":false,"MixinIndex":0}},{"name":"owner_member_id","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":12,"MixedIn":false,"MixinIndex":0}},{"name":"num_faces","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":13,"MixedIn":false,"MixinIndex":0}},{"name":"faces","type":{"Type":3,"Ident":"jsonfields.HPBlobImageFace","PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","PkgName":"jsonfields","Nillable":false,"RType":{"Name":"HPBlobImageFace","Ident":"jsonfields.HPBlobImageFace","Kind":25,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","Methods":{}}},"optional":true,"position":{"Index":14,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}}},{"name":"face_recognition_status","type":{"Type":6,"Ident":"enums.HPBlobFaceRecognitionStatus","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPBlobFaceRecognitionStatus","Ident":"enums.HPBlobFaceRecognitionStatus","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"error","V":"error"},{"N":"face_automatically_labeled","V":"face_automatically_labeled"},{"N":"face_detected","V":"face_detected"},{"N":"face_manually_labeled","V":"face_manually_labeled"},{"N":"unknown","V":"unknown"}],"optional":true,"default":true,"default_value":"unknown","default_kind":24,"position":{"Index":15,"MixedIn":false,"MixinIndex":0}},{"name":"thumbnail","type":{"Type":3,"Ident":"*jsonfields.HPBlobThumbnail","PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","PkgName":"jsonfields","Nillable":true,"RType":{"Name":"HPBlobThumbnail","Ident":"jsonfields.HPBlobThumbnail","Kind":22,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","Methods":{}}},"optional":true,"position":{"Index":16,"MixedIn":false,"MixinIndex":0}},{"name":"duration_seconds","type":{"Type":20,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":17,"MixedIn":false,"MixinIndex":0}}],"indexes":[{"fields":["created_at"]},{"fields":["updated_at"]},{"fields":["storage_path"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":0}]},{"name":"HPElineupMallItem","config":{"Table":""},"edges":[{"name":"tagged_artists","type":"HPArtist","ref_name":"tagged_elineup_mall_items","inverse":true},{"name":"tagged_members","type":"HPMember","ref_name":"tagged_elineup_mall_items","inverse":true}],"fields":[{"name":"crawled_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0}},{"name":"error_count","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"default":true,"default_value":0,"default_kind":2,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"name":"manually_modified","type":{"Type":3,"Ident":"*jsonfields.ManuallyModified","PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","PkgName":"jsonfields","Nillable":true,"RType":{"Name":"ManuallyModified","Ident":"jsonfields.ManuallyModified","Kind":22,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","Methods":{}}},"optional":true,"position":{"Index":2,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}}},{"name":"last_error_message","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"size":2147483647,"nillable":true,"optional":true,"position":{"Index":3,"MixedIn":true,"MixinIndex":0}},{"name":"recrawl_required","type":{"Type":1,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"optional":true,"default":true,"default_value":false,"default_kind":1,"position":{"Index":4,"MixedIn":true,"MixinIndex":0}},{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":1},"annotations":{"EntGQL":{"OrderField":"createdAt"}}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":1},"annotations":{"EntGQL":{"OrderField":"updatedAt"}}},{"name":"permalink","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"unique":true,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"name","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":1,"MixedIn":false,"MixinIndex":0}},{"name":"description","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"size":2147483647,"default":true,"default_value":"","default_kind":24,"position":{"Index":2,"MixedIn":false,"MixinIndex":0}},{"name":"supplier","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":3,"MixedIn":false,"MixinIndex":0}},{"name":"price","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":4,"MixedIn":false,"MixinIndex":0}},{"name":"is_limited_to_fc","type":{"Type":1,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":5,"MixedIn":false,"MixinIndex":0}},{"name":"is_out_of_stock","type":{"Type":1,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":6,"MixedIn":false,"MixinIndex":0}},{"name":"images","type":{"Type":3,"Ident":"[]jsonfields.Media","PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","PkgName":"jsonfields","Nillable":true,"RType":{"Name":"","Ident":"[]jsonfields.Media","Kind":23,"PkgPath":"","Methods":{}}},"position":{"Index":7,"MixedIn":false,"MixinIndex":0}},{"name":"category","type":{"Type":6,"Ident":"enums.HPElineupMallItemCategory","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPElineupMallItemCategory","Ident":"enums.HPElineupMallItemCategory","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"Blueray","V":"Blueray"},{"N":"ClearFile","V":"ClearFile"},{"N":"ColllectionOther","V":"ColllectionOther"},{"N":"ColllectionPhoto","V":"ColllectionPhoto"},{"N":"ColllectionPinnapPoster","V":"ColllectionPinnapPoster"},{"N":"DVD","V":"DVD"},{"N":"DVDMagazine","V":"DVDMagazine"},{"N":"DVDMagazineOther","V":"DVDMagazineOther"},{"N":"FSK","V":"FSK"},{"N":"KeyringOther","V":"KeyringOther"},{"N":"MicrofiberTowel","V":"MicrofiberTowel"},{"N":"MufflerTowel","V":"MufflerTowel"},{"N":"Other","V":"Other"},{"N":"Penlight","V":"Penlight"},{"N":"Photo2L","V":"Photo2L"},{"N":"PhotoA4","V":"PhotoA4"},{"N":"PhotoA5","V":"PhotoA5"},{"N":"PhotoAlbum","V":"PhotoAlbum"},{"N":"PhotoAlbumOther","V":"PhotoAlbumOther"},{"N":"PhotoBook","V":"PhotoBook"},{"N":"PhotoBookOther","V":"PhotoBookOther"},{"N":"PhotoDaily","V":"PhotoDaily"},{"N":"PhotoOther","V":"PhotoOther"},{"N":"TShirt","V":"TShirt"}],"default":true,"default_value":"Other","default_kind":24,"position":{"Index":8,"MixedIn":false,"MixinIndex":0}},{"name":"order_start_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":9,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"orderStartAt"}}},{"name":"order_end_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":10,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"orderEndAt"}}}],"indexes":[{"fields":["created_at"]},{"fields":["updated_at"]},{"unique":true,"fields":["permalink"]},{"fields":["order_end_at"]},{"fields":["order_end_at","category"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":1}],"annotations":{"EntGQL":{"RelayConnection":true}}},{"name":"HPEvent","config":{"Table":""},"edges":[{"name":"members","type":"HPMember","annotations":{"EntGQL":{"Skip":63}}},{"name":"artists","type":"HPArtist","annotations":{"EntGQL":{"Skip":63}}},{"name":"hpfc_event_tickets","type":"HPFCEventTicket","annotations":{"EntGQL":{"Skip":63}}}],"fields":[{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"createdAt"}}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"updatedAt"}}},{"name":"key","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"unique":true,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"display_titles","type":{"Type":3,"Ident":"[]string","PkgPath":"","PkgName":"","Nillable":true,"RType":{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":{}}},"position":{"Index":1,"MixedIn":false,"MixinIndex":0}},{"name":"open_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":2,"MixedIn":false,"MixinIndex":0}},{"name":"start_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"position":{"Index":3,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"startAt"}}},{"name":"venue","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":4,"MixedIn":false,"MixinIndex":0}},{"name":"prefecture","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":5,"MixedIn":false,"MixinIndex":0}},{"name":"source","type":{"Type":6,"Ident":"enums.HPEventSource","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPEventSource","Ident":"enums.HPEventSource","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"fc_scrape","V":"fc_scrape"}],"default":true,"default_value":"fc_scrape","default_kind":24,"position":{"Index":6,"MixedIn":false,"MixinIndex":0}}],"indexes":[{"fields":["created_at"]},{"fields":["updated_at"]},{"unique":true,"fields":["key"]},{"fields":["start_at"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":0}],"annotations":{"EntGQL":{"RelayConnection":true}}},{"name":"HPFCEventTicket","config":{"Table":""},"edges":[{"name":"event","type":"HPEvent","ref_name":"hpfc_event_tickets","unique":true,"inverse":true,"annotations":{"EntGQL":{"Skip":63}}},{"name":"user","type":"User","field":"owner_user_id","ref_name":"hpfc_event_tickets","unique":true,"inverse":true,"required":true,"annotations":{"EntGQL":{"Skip":63}}}],"fields":[{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"createdAt"}}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"updatedAt"}}},{"name":"num","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"status","type":{"Type":6,"Ident":"enums.HPFCEventTicketApplicationStatus","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPFCEventTicketApplicationStatus","Ident":"enums.HPFCEventTicketApplicationStatus","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"BeforeLottery","V":"BeforeLottery"},{"N":"Completed","V":"Completed"},{"N":"PaymentOverdue","V":"PaymentOverdue"},{"N":"PendingPayment","V":"PendingPayment"},{"N":"Rejected","V":"Rejected"},{"N":"Submitted","V":"Submitted"},{"N":"Unknown","V":"Unknown"}],"default":true,"default_value":"Submitted","default_kind":24,"position":{"Index":1,"MixedIn":false,"MixinIndex":0}},{"name":"fc_member_sha256","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":2,"MixedIn":false,"MixinIndex":0}},{"name":"application_title","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":3,"MixedIn":false,"MixinIndex":0}},{"name":"application_id","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":4,"MixedIn":false,"MixinIndex":0}},{"name":"application_site","type":{"Type":6,"Ident":"enums.HPFCEventTicketApplicationSite","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPFCEventTicketApplicationSite","Ident":"enums.HPFCEventTicketApplicationSite","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"helloproject","V":"helloproject"},{"N":"mline","V":"mline"}],"default":true,"default_value":"helloproject","default_kind":24,"position":{"Index":5,"MixedIn":false,"MixinIndex":0}},{"name":"application_start_date","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":6,"MixedIn":false,"MixinIndex":0}},{"name":"application_due_date","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":7,"MixedIn":false,"MixinIndex":0}},{"name":"payment_start_date","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":8,"MixedIn":false,"MixinIndex":0}},{"name":"payment_due_date","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":9,"MixedIn":false,"MixinIndex":0}},{"name":"owner_user_id","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"storage_key":"user_hpfc_event_tickets","position":{"Index":10,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}}}],"indexes":[{"fields":["created_at"]},{"fields":["updated_at"]},{"edges":["user","event"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":0}],"policy":[{"Index":0,"MixedIn":false,"MixinIndex":0}]},{"name":"HPFeedItem","config":{"Table":""},"edges":[{"name":"view_histories","type":"HPViewHistory","annotations":{"EntGQL":{"Skip":63}}},{"name":"owner_artist","type":"HPArtist","field":"owner_artist_id","ref_name":"owning_feed","unique":true,"inverse":true},{"name":"owner_member","type":"HPMember","field":"owner_member_id","ref_name":"owning_feed","unique":true,"inverse":true},{"name":"tagged_artists","type":"HPArtist","ref_name":"tagged_feed","inverse":true},{"name":"tagged_members","type":"HPMember","ref_name":"tagged_feed","inverse":true}],"fields":[{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"createdAt"}}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"updatedAt"}}},{"name":"source_id","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"unique":true,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"asset_type","type":{"Type":6,"Ident":"enums.HPAssetType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPAssetType","Ident":"enums.HPAssetType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"ameblo","V":"ameblo"},{"N":"elineupmall","V":"elineupmall"},{"N":"instagram","V":"instagram"},{"N":"tiktok","V":"tiktok"},{"N":"twitter","V":"twitter"},{"N":"youtube","V":"youtube"}],"default":true,"default_value":"ameblo","default_kind":24,"position":{"Index":1,"MixedIn":false,"MixinIndex":0}},{"name":"title","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":2,"MixedIn":false,"MixinIndex":0}},{"name":"post_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"position":{"Index":3,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"postAt"}}},{"name":"source_url","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":4,"MixedIn":false,"MixinIndex":0}},{"name":"image_url","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":5,"MixedIn":false,"MixinIndex":0}},{"name":"media","type":{"Type":3,"Ident":"[]jsonfields.Media","PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","PkgName":"jsonfields","Nillable":true,"RType":{"Name":"","Ident":"[]jsonfields.Media","Kind":23,"PkgPath":"","Methods":{}}},"position":{"Index":6,"MixedIn":false,"MixinIndex":0}},{"name":"owner_artist_id","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":7,"MixedIn":false,"MixinIndex":0}},{"name":"owner_member_id","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":8,"MixedIn":false,"MixinIndex":0}}],"indexes":[{"fields":["created_at"]},{"fields":["updated_at"]},{"fields":["post_at"]},{"fields":["post_at","id"]},{"fields":["owner_member_id","asset_type","post_at","id"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":0}],"annotations":{"EntGQL":{"RelayConnection":true}}},{"name":"HPFollow","config":{"Table":""},"edges":[{"name":"user","type":"User","ref_name":"hpmember_following","unique":true,"inverse":true,"required":true,"annotations":{"EntSQL":{"on_delete":"CASCADE"}}},{"name":"member","type":"HPMember","unique":true,"required":true}],"fields":[{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"createdAt"}}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"updatedAt"}}},{"name":"type","type":{"Type":6,"Ident":"enums.HPFollowType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPFollowType","Ident":"enums.HPFollowType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"follow","V":"follow"},{"N":"follow_with_notification","V":"follow_with_notification"},{"N":"unfollow","V":"unfollow"},{"N":"unknown","V":"unknown"}],"default":true,"default_value":"follow_with_notification","default_kind":24,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"elineupmall_other","type":{"Type":6,"Ident":"enums.HPFollowType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPFollowType","Ident":"enums.HPFollowType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"follow","V":"follow"},{"N":"follow_with_notification","V":"follow_with_notification"},{"N":"unfollow","V":"unfollow"},{"N":"unknown","V":"unknown"}],"default":true,"default_value":"unknown","default_kind":24,"position":{"Index":1,"MixedIn":false,"MixinIndex":0}},{"name":"elineupmall_photo_daily","type":{"Type":6,"Ident":"enums.HPFollowType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPFollowType","Ident":"enums.HPFollowType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"follow","V":"follow"},{"N":"follow_with_notification","V":"follow_with_notification"},{"N":"unfollow","V":"unfollow"},{"N":"unknown","V":"unknown"}],"default":true,"default_value":"unknown","default_kind":24,"position":{"Index":2,"MixedIn":false,"MixinIndex":0}},{"name":"elineupmall_photo_a4","type":{"Type":6,"Ident":"enums.HPFollowType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPFollowType","Ident":"enums.HPFollowType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"follow","V":"follow"},{"N":"follow_with_notification","V":"follow_with_notification"},{"N":"unfollow","V":"unfollow"},{"N":"unknown","V":"unknown"}],"default":true,"default_value":"unknown","default_kind":24,"position":{"Index":3,"MixedIn":false,"MixinIndex":0}},{"name":"elineupmall_photo_a5","type":{"Type":6,"Ident":"enums.HPFollowType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPFollowType","Ident":"enums.HPFollowType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"follow","V":"follow"},{"N":"follow_with_notification","V":"follow_with_notification"},{"N":"unfollow","V":"unfollow"},{"N":"unknown","V":"unknown"}],"default":true,"default_value":"unknown","default_kind":24,"position":{"Index":4,"MixedIn":false,"MixinIndex":0}},{"name":"elineupmall_photo_2l","type":{"Type":6,"Ident":"enums.HPFollowType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPFollowType","Ident":"enums.HPFollowType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"follow","V":"follow"},{"N":"follow_with_notification","V":"follow_with_notification"},{"N":"unfollow","V":"unfollow"},{"N":"unknown","V":"unknown"}],"default":true,"default_value":"unknown","default_kind":24,"position":{"Index":5,"MixedIn":false,"MixinIndex":0}},{"name":"elineupmall_photo_other","type":{"Type":6,"Ident":"enums.HPFollowType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPFollowType","Ident":"enums.HPFollowType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"follow","V":"follow"},{"N":"follow_with_notification","V":"follow_with_notification"},{"N":"unfollow","V":"unfollow"},{"N":"unknown","V":"unknown"}],"default":true,"default_value":"unknown","default_kind":24,"position":{"Index":6,"MixedIn":false,"MixinIndex":0}},{"name":"elineupmall_photo_album","type":{"Type":6,"Ident":"enums.HPFollowType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPFollowType","Ident":"enums.HPFollowType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"follow","V":"follow"},{"N":"follow_with_notification","V":"follow_with_notification"},{"N":"unfollow","V":"unfollow"},{"N":"unknown","V":"unknown"}],"default":true,"default_value":"unknown","default_kind":24,"position":{"Index":7,"MixedIn":false,"MixinIndex":0}},{"name":"elineupmall_photo_album_other","type":{"Type":6,"Ident":"enums.HPFollowType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPFollowType","Ident":"enums.HPFollowType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"follow","V":"follow"},{"N":"follow_with_notification","V":"follow_with_notification"},{"N":"unfollow","V":"unfollow"},{"N":"unknown","V":"unknown"}],"default":true,"default_value":"unknown","default_kind":24,"position":{"Index":8,"MixedIn":false,"MixinIndex":0}},{"name":"elineupmall_photo_book","type":{"Type":6,"Ident":"enums.HPFollowType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPFollowType","Ident":"enums.HPFollowType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"follow","V":"follow"},{"N":"follow_with_notification","V":"follow_with_notification"},{"N":"unfollow","V":"unfollow"},{"N":"unknown","V":"unknown"}],"default":true,"default_value":"unknown","default_kind":24,"position":{"Index":9,"MixedIn":false,"MixinIndex":0}},{"name":"elineupmall_photo_book_other","type":{"Type":6,"Ident":"enums.HPFollowType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPFollowType","Ident":"enums.HPFollowType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"follow","V":"follow"},{"N":"follow_with_notification","V":"follow_with_notification"},{"N":"unfollow","V":"unfollow"},{"N":"unknown","V":"unknown"}],"default":true,"default_value":"unknown","default_kind":24,"position":{"Index":10,"MixedIn":false,"MixinIndex":0}},{"name":"elineupmall_dvd","type":{"Type":6,"Ident":"enums.HPFollowType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPFollowType","Ident":"enums.HPFollowType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"follow","V":"follow"},{"N":"follow_with_notification","V":"follow_with_notification"},{"N":"unfollow","V":"unfollow"},{"N":"unknown","V":"unknown"}],"default":true,"default_value":"unknown","default_kind":24,"position":{"Index":11,"MixedIn":false,"MixinIndex":0}},{"name":"elineupmall_dvd_magazine","type":{"Type":6,"Ident":"enums.HPFollowType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPFollowType","Ident":"enums.HPFollowType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"follow","V":"follow"},{"N":"follow_with_notification","V":"follow_with_notification"},{"N":"unfollow","V":"unfollow"},{"N":"unknown","V":"unknown"}],"default":true,"default_value":"unknown","default_kind":24,"position":{"Index":12,"MixedIn":false,"MixinIndex":0}},{"name":"elineupmall_dvd_magazine_other","type":{"Type":6,"Ident":"enums.HPFollowType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPFollowType","Ident":"enums.HPFollowType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"follow","V":"follow"},{"N":"follow_with_notification","V":"follow_with_notification"},{"N":"unfollow","V":"unfollow"},{"N":"unknown","V":"unknown"}],"default":true,"default_value":"unknown","default_kind":24,"position":{"Index":13,"MixedIn":false,"MixinIndex":0}},{"name":"elineupmall_blueray","type":{"Type":6,"Ident":"enums.HPFollowType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPFollowType","Ident":"enums.HPFollowType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"follow","V":"follow"},{"N":"follow_with_notification","V":"follow_with_notification"},{"N":"unfollow","V":"unfollow"},{"N":"unknown","V":"unknown"}],"default":true,"default_value":"unknown","default_kind":24,"position":{"Index":14,"MixedIn":false,"MixinIndex":0}},{"name":"elineupmall_penlight","type":{"Type":6,"Ident":"enums.HPFollowType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPFollowType","Ident":"enums.HPFollowType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"follow","V":"follow"},{"N":"follow_with_notification","V":"follow_with_notification"},{"N":"unfollow","V":"unfollow"},{"N":"unknown","V":"unknown"}],"default":true,"default_value":"unknown","default_kind":24,"position":{"Index":15,"MixedIn":false,"MixinIndex":0}},{"name":"elineupmall_collection_pinnap_poster","type":{"Type":6,"Ident":"enums.HPFollowType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPFollowType","Ident":"enums.HPFollowType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"follow","V":"follow"},{"N":"follow_with_notification","V":"follow_with_notification"},{"N":"unfollow","V":"unfollow"},{"N":"unknown","V":"unknown"}],"default":true,"default_value":"unknown","default_kind":24,"position":{"Index":16,"MixedIn":false,"MixinIndex":0}},{"name":"elineupmall_collection_photo","type":{"Type":6,"Ident":"enums.HPFollowType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPFollowType","Ident":"enums.HPFollowType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"follow","V":"follow"},{"N":"follow_with_notification","V":"follow_with_notification"},{"N":"unfollow","V":"unfollow"},{"N":"unknown","V":"unknown"}],"default":true,"default_value":"unknown","default_kind":24,"position":{"Index":17,"MixedIn":false,"MixinIndex":0}},{"name":"elineupmall_collection_other","type":{"Type":6,"Ident":"enums.HPFollowType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPFollowType","Ident":"enums.HPFollowType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"follow","V":"follow"},{"N":"follow_with_notification","V":"follow_with_notification"},{"N":"unfollow","V":"unfollow"},{"N":"unknown","V":"unknown"}],"default":true,"default_value":"unknown","default_kind":24,"position":{"Index":18,"MixedIn":false,"MixinIndex":0}},{"name":"elineupmall_tshirt","type":{"Type":6,"Ident":"enums.HPFollowType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPFollowType","Ident":"enums.HPFollowType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"follow","V":"follow"},{"N":"follow_with_notification","V":"follow_with_notification"},{"N":"unfollow","V":"unfollow"},{"N":"unknown","V":"unknown"}],"default":true,"default_value":"unknown","default_kind":24,"position":{"Index":19,"MixedIn":false,"MixinIndex":0}},{"name":"elineupmall_microfiber_towel","type":{"Type":6,"Ident":"enums.HPFollowType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPFollowType","Ident":"enums.HPFollowType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"follow","V":"follow"},{"N":"follow_with_notification","V":"follow_with_notification"},{"N":"unfollow","V":"unfollow"},{"N":"unknown","V":"unknown"}],"default":true,"default_value":"unknown","default_kind":24,"position":{"Index":20,"MixedIn":false,"MixinIndex":0}},{"name":"elineupmall_muffler_towel","type":{"Type":6,"Ident":"enums.HPFollowType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPFollowType","Ident":"enums.HPFollowType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"follow","V":"follow"},{"N":"follow_with_notification","V":"follow_with_notification"},{"N":"unfollow","V":"unfollow"},{"N":"unknown","V":"unknown"}],"default":true,"default_value":"unknown","default_kind":24,"position":{"Index":21,"MixedIn":false,"MixinIndex":0}},{"name":"elineupmall_fsk","type":{"Type":6,"Ident":"enums.HPFollowType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPFollowType","Ident":"enums.HPFollowType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"follow","V":"follow"},{"N":"follow_with_notification","V":"follow_with_notification"},{"N":"unfollow","V":"unfollow"},{"N":"unknown","V":"unknown"}],"default":true,"default_value":"unknown","default_kind":24,"position":{"Index":22,"MixedIn":false,"MixinIndex":0}},{"name":"elineupmall_keyring_other","type":{"Type":6,"Ident":"enums.HPFollowType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPFollowType","Ident":"enums.HPFollowType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"follow","V":"follow"},{"N":"follow_with_notification","V":"follow_with_notification"},{"N":"unfollow","V":"unfollow"},{"N":"unknown","V":"unknown"}],"default":true,"default_value":"unknown","default_kind":24,"position":{"Index":23,"MixedIn":false,"MixinIndex":0}},{"name":"elineupmall_clear_file","type":{"Type":6,"Ident":"enums.HPFollowType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPFollowType","Ident":"enums.HPFollowType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"follow","V":"follow"},{"N":"follow_with_notification","V":"follow_with_notification"},{"N":"unfollow","V":"unfollow"},{"N":"unknown","V":"unknown"}],"default":true,"default_value":"unknown","default_kind":24,"position":{"Index":24,"MixedIn":false,"MixinIndex":0}}],"indexes":[{"fields":["created_at"]},{"fields":["updated_at"]},{"edges":["member"]},{"unique":true,"edges":["user","member"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":0}]},{"name":"HPIgPost","config":{"Table":""},"edges":[{"name":"owner_artist","type":"HPArtist","field":"owner_artist_id","ref_name":"owning_ig_posts","unique":true,"inverse":true},{"name":"owner_member","type":"HPMember","field":"owner_member_id","ref_name":"owning_ig_posts","unique":true,"inverse":true},{"name":"asset","type":"HPAsset","ref_name":"ig_posts","unique":true,"inverse":true},{"name":"tagged_artists","type":"HPArtist","ref_name":"tagged_ig_posts","inverse":true},{"name":"tagged_members","type":"HPMember","ref_name":"tagged_ig_posts","inverse":true},{"name":"blobs","type":"HPBlob","annotations":{"EntSQL":{"on_delete":"CASCADE"}}}],"fields":[{"name":"crawled_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0}},{"name":"error_count","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"default":true,"default_value":0,"default_kind":2,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"name":"manually_modified","type":{"Type":3,"Ident":"*jsonfields.ManuallyModified","PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","PkgName":"jsonfields","Nillable":true,"RType":{"Name":"ManuallyModified","Ident":"jsonfields.ManuallyModified","Kind":22,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","Methods":{}}},"optional":true,"position":{"Index":2,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}}},{"name":"last_error_message","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"size":2147483647,"nillable":true,"optional":true,"position":{"Index":3,"MixedIn":true,"MixinIndex":0}},{"name":"recrawl_required","type":{"Type":1,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"optional":true,"default":true,"default_value":false,"default_kind":1,"position":{"Index":4,"MixedIn":true,"MixinIndex":0}},{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":1},"annotations":{"EntGQL":{"OrderField":"createdAt"}}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":1},"annotations":{"EntGQL":{"OrderField":"updatedAt"}}},{"name":"shortcode","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"unique":true,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"description","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"size":2147483647,"position":{"Index":1,"MixedIn":false,"MixinIndex":0}},{"name":"post_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"position":{"Index":2,"MixedIn":false,"MixinIndex":0}},{"name":"media","type":{"Type":3,"Ident":"[]jsonfields.Media","PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","PkgName":"jsonfields","Nillable":true,"RType":{"Name":"","Ident":"[]jsonfields.Media","Kind":23,"PkgPath":"","Methods":{}}},"position":{"Index":3,"MixedIn":false,"MixinIndex":0}},{"name":"likes","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":4,"MixedIn":false,"MixinIndex":0}},{"name":"comments","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":5,"MixedIn":false,"MixinIndex":0}},{"name":"recrawl_args","type":{"Type":3,"Ident":"*jsonfields.HPIgCrawlArgs","PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","PkgName":"jsonfields","Nillable":true,"RType":{"Name":"HPIgCrawlArgs","Ident":"jsonfields.HPIgCrawlArgs","Kind":22,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","Methods":{}}},"optional":true,"position":{"Index":6,"MixedIn":false,"MixinIndex":0}},{"name":"owner_artist_id","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"storage_key":"hp_artist_ig_posts","position":{"Index":7,"MixedIn":false,"MixinIndex":0}},{"name":"owner_member_id","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"storage_key":"hp_member_ig_posts","position":{"Index":8,"MixedIn":false,"MixinIndex":0}}],"indexes":[{"fields":["created_at"]},{"fields":["updated_at"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":1}],"annotations":{"EntGQL":{"RelayConnection":true}}},{"name":"HPMember","config":{"Table":""},"edges":[{"name":"assets","type":"HPAsset"},{"name":"artist","type":"HPArtist","field":"artist_id","ref_name":"members","unique":true,"inverse":true},{"name":"owning_feed","type":"HPFeedItem","annotations":{"EntGQL":{"Skip":63}}},{"name":"tagged_feed","type":"HPFeedItem","storage_key":{"Table":"hp_member_feed","Symbols":null,"Columns":["hp_member_id","hp_feed_item_id"]},"annotations":{"EntGQL":{"Skip":63}}},{"name":"owning_ig_posts","type":"HPIgPost","annotations":{"EntGQL":{"Skip":63}}},{"name":"tagged_ig_posts","type":"HPIgPost","annotations":{"EntGQL":{"Skip":63}}},{"name":"owning_ameblo_posts","type":"HPAmebloPost","annotations":{"EntGQL":{"Skip":63}}},{"name":"tagged_ameblo_posts","type":"HPAmebloPost","annotations":{"EntGQL":{"Skip":63}}},{"name":"tagged_elineup_mall_items","type":"HPElineupMallItem","storage_key":{"Table":"hp_member_elineup_mall_items","Symbols":null,"Columns":["hp_member_id","hp_elineup_mall_item_id"]},"annotations":{"EntGQL":{"Skip":63}}},{"name":"followed_by","type":"HPFollow","ref_name":"member","inverse":true,"annotations":{"EntGQL":{"Skip":63}}}],"fields":[{"name":"crawled_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0}},{"name":"error_count","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"default":true,"default_value":0,"default_kind":2,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"name":"manually_modified","type":{"Type":3,"Ident":"*jsonfields.ManuallyModified","PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","PkgName":"jsonfields","Nillable":true,"RType":{"Name":"ManuallyModified","Ident":"jsonfields.ManuallyModified","Kind":22,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","Methods":{}}},"optional":true,"position":{"Index":2,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}}},{"name":"last_error_message","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"size":2147483647,"nillable":true,"optional":true,"position":{"Index":3,"MixedIn":true,"MixinIndex":0}},{"name":"recrawl_required","type":{"Type":1,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"optional":true,"default":true,"default_value":false,"default_kind":1,"position":{"Index":4,"MixedIn":true,"MixinIndex":0}},{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":1},"annotations":{"EntGQL":{"OrderField":"createdAt"}}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":1},"annotations":{"EntGQL":{"OrderField":"updatedAt"}}},{"name":"key","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"unique":true,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"artist_key","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":1,"MixedIn":false,"MixinIndex":0}},{"name":"name","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":2,"MixedIn":false,"MixinIndex":0}},{"name":"name_kana","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":3,"MixedIn":false,"MixinIndex":0}},{"name":"thumbnail_url","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":4,"MixedIn":false,"MixinIndex":0}},{"name":"date_of_birth","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"position":{"Index":5,"MixedIn":false,"MixinIndex":0}},{"name":"blood_type","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":6,"MixedIn":false,"MixinIndex":0}},{"name":"hometown","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":7,"MixedIn":false,"MixinIndex":0}},{"name":"join_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":8,"MixedIn":false,"MixinIndex":0}},{"name":"graduate_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":9,"MixedIn":false,"MixinIndex":0}},{"name":"artist_id","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"storage_key":"hp_artist_members","position":{"Index":10,"MixedIn":false,"MixinIndex":0}}],"indexes":[{"fields":["created_at"]},{"fields":["updated_at"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":1}],"policy":[{"Index":0,"MixedIn":false,"MixinIndex":0}],"annotations":{"EntGQL":{"RelayConnection":true}}},{"name":"HPSortHistory","config":{"Table":""},"edges":[{"name":"owner","type":"User","field":"owner_user_id","ref_name":"hpsort_history","unique":true,"inverse":true}],"fields":[{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"createdAt"}}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"updatedAt"}}},{"name":"sort_result","type":{"Type":3,"Ident":"jsonfields.HPSortResult","PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","PkgName":"jsonfields","Nillable":false,"RType":{"Name":"HPSortResult","Ident":"jsonfields.HPSortResult","Kind":25,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","Methods":{}}},"immutable":true,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"owner_user_id","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"storage_key":"user_hpsort_history","position":{"Index":1,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}}}],"indexes":[{"fields":["created_at"]},{"fields":["updated_at"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":0}],"policy":[{"Index":0,"MixedIn":false,"MixinIndex":0}],"annotations":{"EntGQL":{"RelayConnection":true}}},{"name":"HPViewHistory","config":{"Table":""},"edges":[{"name":"feed","type":"HPFeedItem","ref_name":"view_histories","unique":true,"inverse":true},{"name":"user","type":"User","field":"owner_user_id","ref_name":"hpview_history","unique":true,"inverse":true,"required":true,"annotations":{"EntGQL":{"Skip":63}}}],"fields":[{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"createdAt"}}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"updatedAt"}}},{"name":"content_id","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"content_post_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"position":{"Index":1,"MixedIn":false,"MixinIndex":0},"comment":"post_at field value on content to query histories by post_at range"},{"name":"asset_type","type":{"Type":6,"Ident":"enums.HPAssetType","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPAssetType","Ident":"enums.HPAssetType","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"ameblo","V":"ameblo"},{"N":"elineupmall","V":"elineupmall"},{"N":"instagram","V":"instagram"},{"N":"tiktok","V":"tiktok"},{"N":"twitter","V":"twitter"},{"N":"youtube","V":"youtube"}],"position":{"Index":2,"MixedIn":false,"MixinIndex":0}},{"name":"is_favorite","type":{"Type":1,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"default":true,"default_value":false,"default_kind":1,"position":{"Index":3,"MixedIn":false,"MixinIndex":0}},{"name":"owner_user_id","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"storage_key":"user_hpview_history","position":{"Index":4,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}}}],"indexes":[{"fields":["created_at"]},{"fields":["updated_at"]},{"unique":true,"edges":["user"],"fields":["content_id"]},{"edges":["user"],"fields":["content_post_at"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":0}],"policy":[{"Index":0,"MixedIn":false,"MixinIndex":0}],"annotations":{"EntGQL":{"RelayConnection":true}}},{"name":"TestEnt","config":{"Table":""},"fields":[{"name":"string_field","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"default":true,"default_value":"test_string","default_kind":24,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}},{"name":"text_field","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"size":2147483647,"nillable":true,"optional":true,"default":true,"default_value":"test_text","default_kind":24,"position":{"Index":1,"MixedIn":false,"MixinIndex":0}},{"name":"bytes_field","type":{"Type":5,"Ident":"","PkgPath":"","PkgName":"","Nillable":true,"RType":null},"nillable":true,"optional":true,"default":true,"default_value":"dGVzdF9ieXRlcw==","default_kind":23,"position":{"Index":2,"MixedIn":false,"MixinIndex":0}},{"name":"bool_field","type":{"Type":1,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"default":true,"default_value":true,"default_kind":1,"position":{"Index":3,"MixedIn":false,"MixinIndex":0}},{"name":"time_field","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"default":true,"default_value":"1996-10-30T01:02:03.000000004Z","default_kind":25,"position":{"Index":4,"MixedIn":false,"MixinIndex":0}},{"name":"int_field","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"default":true,"default_value":10,"default_kind":2,"position":{"Index":5,"MixedIn":false,"MixinIndex":0}},{"name":"int64_field","type":{"Type":13,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"default":true,"default_value":30,"default_kind":6,"position":{"Index":6,"MixedIn":false,"MixinIndex":0}},{"name":"float_field","type":{"Type":20,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"default":true,"default_value":19.96,"default_kind":14,"position":{"Index":7,"MixedIn":false,"MixinIndex":0}},{"name":"json_field","type":{"Type":3,"Ident":"*jsonfields.TestJSON","PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","PkgName":"jsonfields","Nillable":true,"RType":{"Name":"TestJSON","Ident":"jsonfields.TestJSON","Kind":22,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","Methods":{}}},"optional":true,"default":true,"default_value":{"datetime":"1996-10-30T01:02:03.000000004Z","int":10,"string":"string_field"},"default_kind":22,"position":{"Index":8,"MixedIn":false,"MixinIndex":0}},{"name":"enum_field","type":{"Type":6,"Ident":"enums.TestEnum","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"TestEnum","Ident":"enums.TestEnum","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"a","V":"a"},{"N":"b","V":"b"},{"N":"c","V":"c"}],"optional":true,"default":true,"default_value":"b","default_kind":24,"position":{"Index":9,"MixedIn":false,"MixinIndex":0}}],"annotations":{"EntGQL":{"Skip":63}}},{"name":"User","config":{"Table":""},"edges":[{"name":"auth","type":"Auth","annotations":{"EntSQL":{"on_delete":"CASCADE"}}},{"name":"notification_settings","type":"UserNotificationSetting","annotations":{"EntSQL":{"on_delete":"CASCADE"}}},{"name":"hpview_history","type":"HPViewHistory","annotations":{"EntSQL":{"on_delete":"CASCADE"}}},{"name":"hpmember_following","type":"HPFollow","annotations":{"EntSQL":{"on_delete":"CASCADE"}}},{"name":"hpsort_history","type":"HPSortHistory","annotations":{"EntSQL":{"on_delete":"CASCADE"}}},{"name":"hpfc_event_tickets","type":"HPFCEventTicket","annotations":{"EntSQL":{"on_delete":"CASCADE"}}}],"fields":[{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"createdAt"}}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"updatedAt"}}},{"name":"username","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"unique":true,"position":{"Index":0,"MixedIn":false,"MixinIndex":0},"comment":"unique identifier with [a-z0-9][a-z0-9_.]+"},{"name":"access_token","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"unique":true,"position":{"Index":1,"MixedIn":false,"MixinIndex":0},"comment":"access token for the first party clients to access"}],"indexes":[{"fields":["created_at"]},{"fields":["updated_at"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":0}],"policy":[{"Index":0,"MixedIn":false,"MixinIndex":0}]},{"name":"UserNotificationLog","config":{"Table":""},"edges":[{"name":"receivers","type":"UserNotificationSetting"}],"fields":[{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"createdAt"}}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"updatedAt"}}},{"name":"key","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"immutable":true,"position":{"Index":0,"MixedIn":false,"MixinIndex":0},"comment":"unique key to identify the notification source"},{"name":"trigger","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"immutable":true,"position":{"Index":1,"MixedIn":false,"MixinIndex":0},"comment":"ocurrence of the notification. the pair of the key and trigger has to be unique"},{"name":"is_test","type":{"Type":1,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":2,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}},"comment":"true if the notification is generated for the test"},{"name":"react_navigation_message","type":{"Type":3,"Ident":"jsonfields.ReactNavigationPush","PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","PkgName":"jsonfields","Nillable":false,"RType":{"Name":"ReactNavigationPush","Ident":"jsonfields.ReactNavigationPush","Kind":25,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/jsonfields","Methods":{"ToPushMessage":{"In":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}],"Out":[{"Name":"","Ident":"*push.Message","Kind":22,"PkgPath":"","Methods":null}]}}}},"position":{"Index":3,"MixedIn":false,"MixinIndex":0},"comment":"Message payload for client to handle the notification"},{"name":"expected_delivery_time","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"position":{"Index":4,"MixedIn":false,"MixinIndex":0},"comment":"expected time for the notification to be sent"},{"name":"status","type":{"Type":6,"Ident":"enums.UserNotificationStatus","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"UserNotificationStatus","Ident":"enums.UserNotificationStatus","Kind":24,"PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","Methods":{"MarshalGQL":{"In":[{"Name":"Writer","Ident":"io.Writer","Kind":20,"PkgPath":"io","Methods":null}],"Out":[]},"UnmarshalGQL":{"In":[{"Name":"","Ident":"interface {}","Kind":20,"PkgPath":"","Methods":null}],"Out":[{"Name":"error","Ident":"error","Kind":20,"PkgPath":"","Methods":null}]},"Values":{"In":[],"Out":[{"Name":"","Ident":"[]string","Kind":23,"PkgPath":"","Methods":null}]}}}},"enums":[{"N":"error","V":"error"},{"N":"prepared","V":"prepared"},{"N":"sent","V":"sent"}],"default":true,"default_value":"prepared","default_kind":24,"position":{"Index":5,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}}},{"name":"status_message","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"default":true,"default_value":"","default_kind":24,"position":{"Index":6,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}},"comment":"error message if happens"}],"indexes":[{"fields":["created_at"]},{"fields":["updated_at"]},{"unique":true,"fields":["key","trigger"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":0}],"annotations":{"EntGQL":{"Skip":63}}},{"name":"UserNotificationSetting","config":{"Table":""},"edges":[{"name":"user","type":"User","field":"owner_user_id","ref_name":"notification_settings","unique":true,"inverse":true},{"name":"notification_logs","type":"UserNotificationLog","ref_name":"receivers","inverse":true}],"fields":[{"name":"created_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"immutable":true,"position":{"Index":0,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"createdAt"}}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0},"annotations":{"EntGQL":{"OrderField":"updatedAt"}}},{"name":"token","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"unique":true,"position":{"Index":0,"MixedIn":false,"MixinIndex":0},"comment":"expo token"},{"name":"slug","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":1,"MixedIn":false,"MixinIndex":0},"comment":"expo slug value (project name)"},{"name":"name","type":{"Type":7,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":2,"MixedIn":false,"MixinIndex":0},"comment":"human friendly name (taken on client side)"},{"name":"enable_new_posts","type":{"Type":1,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":3,"MixedIn":false,"MixinIndex":0},"comment":"notify when a new post is created"},{"name":"enable_payment_start","type":{"Type":1,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":4,"MixedIn":false,"MixinIndex":0},"comment":"notify when a payment is started"},{"name":"enable_payment_due","type":{"Type":1,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"position":{"Index":5,"MixedIn":false,"MixinIndex":0},"comment":"notify when a payment due date is close"},{"name":"owner_user_id","type":{"Type":12,"Ident":"","PkgPath":"","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"storage_key":"user_notification_settings","position":{"Index":6,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}}}],"indexes":[{"fields":["created_at"]},{"fields":["updated_at"]},{"edges":["user"],"fields":["token"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":0}],"policy":[{"Index":0,"MixedIn":false,"MixinIndex":0}]}],"Features":["privacy","sql/upsert","schema/snapshot","entql","namedges"]}` diff --git a/go/service/ent/migrate/schema.go b/go/service/ent/migrate/schema.go index 12057d1..39e57a4 100644 --- a/go/service/ent/migrate/schema.go +++ b/go/service/ent/migrate/schema.go @@ -468,6 +468,30 @@ var ( {Name: "created_at", Type: field.TypeTime, Nullable: true}, {Name: "updated_at", Type: field.TypeTime, Nullable: true}, {Name: "type", Type: field.TypeEnum, Enums: []string{"follow", "follow_with_notification", "unfollow", "unknown"}, Default: "follow_with_notification"}, + {Name: "elineupmall_other", Type: field.TypeEnum, Enums: []string{"follow", "follow_with_notification", "unfollow", "unknown"}, Default: "unknown"}, + {Name: "elineupmall_photo_daily", Type: field.TypeEnum, Enums: []string{"follow", "follow_with_notification", "unfollow", "unknown"}, Default: "unknown"}, + {Name: "elineupmall_photo_a4", Type: field.TypeEnum, Enums: []string{"follow", "follow_with_notification", "unfollow", "unknown"}, Default: "unknown"}, + {Name: "elineupmall_photo_a5", Type: field.TypeEnum, Enums: []string{"follow", "follow_with_notification", "unfollow", "unknown"}, Default: "unknown"}, + {Name: "elineupmall_photo_2l", Type: field.TypeEnum, Enums: []string{"follow", "follow_with_notification", "unfollow", "unknown"}, Default: "unknown"}, + {Name: "elineupmall_photo_other", Type: field.TypeEnum, Enums: []string{"follow", "follow_with_notification", "unfollow", "unknown"}, Default: "unknown"}, + {Name: "elineupmall_photo_album", Type: field.TypeEnum, Enums: []string{"follow", "follow_with_notification", "unfollow", "unknown"}, Default: "unknown"}, + {Name: "elineupmall_photo_album_other", Type: field.TypeEnum, Enums: []string{"follow", "follow_with_notification", "unfollow", "unknown"}, Default: "unknown"}, + {Name: "elineupmall_photo_book", Type: field.TypeEnum, Enums: []string{"follow", "follow_with_notification", "unfollow", "unknown"}, Default: "unknown"}, + {Name: "elineupmall_photo_book_other", Type: field.TypeEnum, Enums: []string{"follow", "follow_with_notification", "unfollow", "unknown"}, Default: "unknown"}, + {Name: "elineupmall_dvd", Type: field.TypeEnum, Enums: []string{"follow", "follow_with_notification", "unfollow", "unknown"}, Default: "unknown"}, + {Name: "elineupmall_dvd_magazine", Type: field.TypeEnum, Enums: []string{"follow", "follow_with_notification", "unfollow", "unknown"}, Default: "unknown"}, + {Name: "elineupmall_dvd_magazine_other", Type: field.TypeEnum, Enums: []string{"follow", "follow_with_notification", "unfollow", "unknown"}, Default: "unknown"}, + {Name: "elineupmall_blueray", Type: field.TypeEnum, Enums: []string{"follow", "follow_with_notification", "unfollow", "unknown"}, Default: "unknown"}, + {Name: "elineupmall_penlight", Type: field.TypeEnum, Enums: []string{"follow", "follow_with_notification", "unfollow", "unknown"}, Default: "unknown"}, + {Name: "elineupmall_collection_pinnap_poster", Type: field.TypeEnum, Enums: []string{"follow", "follow_with_notification", "unfollow", "unknown"}, Default: "unknown"}, + {Name: "elineupmall_collection_photo", Type: field.TypeEnum, Enums: []string{"follow", "follow_with_notification", "unfollow", "unknown"}, Default: "unknown"}, + {Name: "elineupmall_collection_other", Type: field.TypeEnum, Enums: []string{"follow", "follow_with_notification", "unfollow", "unknown"}, Default: "unknown"}, + {Name: "elineupmall_tshirt", Type: field.TypeEnum, Enums: []string{"follow", "follow_with_notification", "unfollow", "unknown"}, Default: "unknown"}, + {Name: "elineupmall_microfiber_towel", Type: field.TypeEnum, Enums: []string{"follow", "follow_with_notification", "unfollow", "unknown"}, Default: "unknown"}, + {Name: "elineupmall_muffler_towel", Type: field.TypeEnum, Enums: []string{"follow", "follow_with_notification", "unfollow", "unknown"}, Default: "unknown"}, + {Name: "elineupmall_fsk", Type: field.TypeEnum, Enums: []string{"follow", "follow_with_notification", "unfollow", "unknown"}, Default: "unknown"}, + {Name: "elineupmall_keyring_other", Type: field.TypeEnum, Enums: []string{"follow", "follow_with_notification", "unfollow", "unknown"}, Default: "unknown"}, + {Name: "elineupmall_clear_file", Type: field.TypeEnum, Enums: []string{"follow", "follow_with_notification", "unfollow", "unknown"}, Default: "unknown"}, {Name: "hp_follow_member", Type: field.TypeInt}, {Name: "user_hpmember_following", Type: field.TypeInt}, } @@ -479,13 +503,13 @@ var ( ForeignKeys: []*schema.ForeignKey{ { Symbol: "hp_follows_hp_members_member", - Columns: []*schema.Column{HpFollowsColumns[4]}, + Columns: []*schema.Column{HpFollowsColumns[28]}, RefColumns: []*schema.Column{HpMembersColumns[0]}, OnDelete: schema.NoAction, }, { Symbol: "hp_follows_users_hpmember_following", - Columns: []*schema.Column{HpFollowsColumns[5]}, + Columns: []*schema.Column{HpFollowsColumns[29]}, RefColumns: []*schema.Column{UsersColumns[0]}, OnDelete: schema.Cascade, }, @@ -504,12 +528,12 @@ var ( { Name: "hpfollow_hp_follow_member", Unique: false, - Columns: []*schema.Column{HpFollowsColumns[4]}, + Columns: []*schema.Column{HpFollowsColumns[28]}, }, { Name: "hpfollow_user_hpmember_following_hp_follow_member", Unique: true, - Columns: []*schema.Column{HpFollowsColumns[5], HpFollowsColumns[4]}, + Columns: []*schema.Column{HpFollowsColumns[29], HpFollowsColumns[28]}, }, }, } diff --git a/go/service/ent/mutation.go b/go/service/ent/mutation.go index 303e9fc..256cdf8 100644 --- a/go/service/ent/mutation.go +++ b/go/service/ent/mutation.go @@ -13401,20 +13401,44 @@ func (m *HPFeedItemMutation) ResetEdge(name string) error { // HPFollowMutation represents an operation that mutates the HPFollow nodes in the graph. type HPFollowMutation struct { config - op Op - typ string - id *int - created_at *time.Time - updated_at *time.Time - _type *enums.HPFollowType - clearedFields map[string]struct{} - user *int - cleareduser bool - member *int - clearedmember bool - done bool - oldValue func(context.Context) (*HPFollow, error) - predicates []predicate.HPFollow + op Op + typ string + id *int + created_at *time.Time + updated_at *time.Time + _type *enums.HPFollowType + elineupmall_other *enums.HPFollowType + elineupmall_photo_daily *enums.HPFollowType + elineupmall_photo_a4 *enums.HPFollowType + elineupmall_photo_a5 *enums.HPFollowType + elineupmall_photo_2l *enums.HPFollowType + elineupmall_photo_other *enums.HPFollowType + elineupmall_photo_album *enums.HPFollowType + elineupmall_photo_album_other *enums.HPFollowType + elineupmall_photo_book *enums.HPFollowType + elineupmall_photo_book_other *enums.HPFollowType + elineupmall_dvd *enums.HPFollowType + elineupmall_dvd_magazine *enums.HPFollowType + elineupmall_dvd_magazine_other *enums.HPFollowType + elineupmall_blueray *enums.HPFollowType + elineupmall_penlight *enums.HPFollowType + elineupmall_collection_pinnap_poster *enums.HPFollowType + elineupmall_collection_photo *enums.HPFollowType + elineupmall_collection_other *enums.HPFollowType + elineupmall_tshirt *enums.HPFollowType + elineupmall_microfiber_towel *enums.HPFollowType + elineupmall_muffler_towel *enums.HPFollowType + elineupmall_fsk *enums.HPFollowType + elineupmall_keyring_other *enums.HPFollowType + elineupmall_clear_file *enums.HPFollowType + clearedFields map[string]struct{} + user *int + cleareduser bool + member *int + clearedmember bool + done bool + oldValue func(context.Context) (*HPFollow, error) + predicates []predicate.HPFollow } var _ ent.Mutation = (*HPFollowMutation)(nil) @@ -13515,138 +13539,1002 @@ func (m *HPFollowMutation) IDs(ctx context.Context) ([]int, error) { } } -// SetCreatedAt sets the "created_at" field. -func (m *HPFollowMutation) SetCreatedAt(t time.Time) { - m.created_at = &t +// SetCreatedAt sets the "created_at" field. +func (m *HPFollowMutation) SetCreatedAt(t time.Time) { + m.created_at = &t +} + +// CreatedAt returns the value of the "created_at" field in the mutation. +func (m *HPFollowMutation) CreatedAt() (r time.Time, exists bool) { + v := m.created_at + if v == nil { + return + } + return *v, true +} + +// OldCreatedAt returns the old "created_at" field's value of the HPFollow entity. +// If the HPFollow object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *HPFollowMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldCreatedAt is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldCreatedAt requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldCreatedAt: %w", err) + } + return oldValue.CreatedAt, nil +} + +// ClearCreatedAt clears the value of the "created_at" field. +func (m *HPFollowMutation) ClearCreatedAt() { + m.created_at = nil + m.clearedFields[hpfollow.FieldCreatedAt] = struct{}{} +} + +// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. +func (m *HPFollowMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[hpfollow.FieldCreatedAt] + return ok +} + +// ResetCreatedAt resets all changes to the "created_at" field. +func (m *HPFollowMutation) ResetCreatedAt() { + m.created_at = nil + delete(m.clearedFields, hpfollow.FieldCreatedAt) +} + +// SetUpdatedAt sets the "updated_at" field. +func (m *HPFollowMutation) SetUpdatedAt(t time.Time) { + m.updated_at = &t +} + +// UpdatedAt returns the value of the "updated_at" field in the mutation. +func (m *HPFollowMutation) UpdatedAt() (r time.Time, exists bool) { + v := m.updated_at + if v == nil { + return + } + return *v, true +} + +// OldUpdatedAt returns the old "updated_at" field's value of the HPFollow entity. +// If the HPFollow object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *HPFollowMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldUpdatedAt is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldUpdatedAt requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldUpdatedAt: %w", err) + } + return oldValue.UpdatedAt, nil +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (m *HPFollowMutation) ClearUpdatedAt() { + m.updated_at = nil + m.clearedFields[hpfollow.FieldUpdatedAt] = struct{}{} +} + +// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. +func (m *HPFollowMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[hpfollow.FieldUpdatedAt] + return ok +} + +// ResetUpdatedAt resets all changes to the "updated_at" field. +func (m *HPFollowMutation) ResetUpdatedAt() { + m.updated_at = nil + delete(m.clearedFields, hpfollow.FieldUpdatedAt) +} + +// SetType sets the "type" field. +func (m *HPFollowMutation) SetType(eft enums.HPFollowType) { + m._type = &eft +} + +// GetType returns the value of the "type" field in the mutation. +func (m *HPFollowMutation) GetType() (r enums.HPFollowType, exists bool) { + v := m._type + if v == nil { + return + } + return *v, true +} + +// OldType returns the old "type" field's value of the HPFollow entity. +// If the HPFollow object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *HPFollowMutation) OldType(ctx context.Context) (v enums.HPFollowType, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldType is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldType requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldType: %w", err) + } + return oldValue.Type, nil +} + +// ResetType resets all changes to the "type" field. +func (m *HPFollowMutation) ResetType() { + m._type = nil +} + +// SetElineupmallOther sets the "elineupmall_other" field. +func (m *HPFollowMutation) SetElineupmallOther(eft enums.HPFollowType) { + m.elineupmall_other = &eft +} + +// ElineupmallOther returns the value of the "elineupmall_other" field in the mutation. +func (m *HPFollowMutation) ElineupmallOther() (r enums.HPFollowType, exists bool) { + v := m.elineupmall_other + if v == nil { + return + } + return *v, true +} + +// OldElineupmallOther returns the old "elineupmall_other" field's value of the HPFollow entity. +// If the HPFollow object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *HPFollowMutation) OldElineupmallOther(ctx context.Context) (v enums.HPFollowType, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldElineupmallOther is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldElineupmallOther requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldElineupmallOther: %w", err) + } + return oldValue.ElineupmallOther, nil +} + +// ResetElineupmallOther resets all changes to the "elineupmall_other" field. +func (m *HPFollowMutation) ResetElineupmallOther() { + m.elineupmall_other = nil +} + +// SetElineupmallPhotoDaily sets the "elineupmall_photo_daily" field. +func (m *HPFollowMutation) SetElineupmallPhotoDaily(eft enums.HPFollowType) { + m.elineupmall_photo_daily = &eft +} + +// ElineupmallPhotoDaily returns the value of the "elineupmall_photo_daily" field in the mutation. +func (m *HPFollowMutation) ElineupmallPhotoDaily() (r enums.HPFollowType, exists bool) { + v := m.elineupmall_photo_daily + if v == nil { + return + } + return *v, true +} + +// OldElineupmallPhotoDaily returns the old "elineupmall_photo_daily" field's value of the HPFollow entity. +// If the HPFollow object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *HPFollowMutation) OldElineupmallPhotoDaily(ctx context.Context) (v enums.HPFollowType, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldElineupmallPhotoDaily is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldElineupmallPhotoDaily requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldElineupmallPhotoDaily: %w", err) + } + return oldValue.ElineupmallPhotoDaily, nil +} + +// ResetElineupmallPhotoDaily resets all changes to the "elineupmall_photo_daily" field. +func (m *HPFollowMutation) ResetElineupmallPhotoDaily() { + m.elineupmall_photo_daily = nil +} + +// SetElineupmallPhotoA4 sets the "elineupmall_photo_a4" field. +func (m *HPFollowMutation) SetElineupmallPhotoA4(eft enums.HPFollowType) { + m.elineupmall_photo_a4 = &eft +} + +// ElineupmallPhotoA4 returns the value of the "elineupmall_photo_a4" field in the mutation. +func (m *HPFollowMutation) ElineupmallPhotoA4() (r enums.HPFollowType, exists bool) { + v := m.elineupmall_photo_a4 + if v == nil { + return + } + return *v, true +} + +// OldElineupmallPhotoA4 returns the old "elineupmall_photo_a4" field's value of the HPFollow entity. +// If the HPFollow object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *HPFollowMutation) OldElineupmallPhotoA4(ctx context.Context) (v enums.HPFollowType, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldElineupmallPhotoA4 is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldElineupmallPhotoA4 requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldElineupmallPhotoA4: %w", err) + } + return oldValue.ElineupmallPhotoA4, nil +} + +// ResetElineupmallPhotoA4 resets all changes to the "elineupmall_photo_a4" field. +func (m *HPFollowMutation) ResetElineupmallPhotoA4() { + m.elineupmall_photo_a4 = nil +} + +// SetElineupmallPhotoA5 sets the "elineupmall_photo_a5" field. +func (m *HPFollowMutation) SetElineupmallPhotoA5(eft enums.HPFollowType) { + m.elineupmall_photo_a5 = &eft +} + +// ElineupmallPhotoA5 returns the value of the "elineupmall_photo_a5" field in the mutation. +func (m *HPFollowMutation) ElineupmallPhotoA5() (r enums.HPFollowType, exists bool) { + v := m.elineupmall_photo_a5 + if v == nil { + return + } + return *v, true +} + +// OldElineupmallPhotoA5 returns the old "elineupmall_photo_a5" field's value of the HPFollow entity. +// If the HPFollow object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *HPFollowMutation) OldElineupmallPhotoA5(ctx context.Context) (v enums.HPFollowType, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldElineupmallPhotoA5 is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldElineupmallPhotoA5 requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldElineupmallPhotoA5: %w", err) + } + return oldValue.ElineupmallPhotoA5, nil +} + +// ResetElineupmallPhotoA5 resets all changes to the "elineupmall_photo_a5" field. +func (m *HPFollowMutation) ResetElineupmallPhotoA5() { + m.elineupmall_photo_a5 = nil +} + +// SetElineupmallPhoto2l sets the "elineupmall_photo_2l" field. +func (m *HPFollowMutation) SetElineupmallPhoto2l(eft enums.HPFollowType) { + m.elineupmall_photo_2l = &eft +} + +// ElineupmallPhoto2l returns the value of the "elineupmall_photo_2l" field in the mutation. +func (m *HPFollowMutation) ElineupmallPhoto2l() (r enums.HPFollowType, exists bool) { + v := m.elineupmall_photo_2l + if v == nil { + return + } + return *v, true +} + +// OldElineupmallPhoto2l returns the old "elineupmall_photo_2l" field's value of the HPFollow entity. +// If the HPFollow object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *HPFollowMutation) OldElineupmallPhoto2l(ctx context.Context) (v enums.HPFollowType, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldElineupmallPhoto2l is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldElineupmallPhoto2l requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldElineupmallPhoto2l: %w", err) + } + return oldValue.ElineupmallPhoto2l, nil +} + +// ResetElineupmallPhoto2l resets all changes to the "elineupmall_photo_2l" field. +func (m *HPFollowMutation) ResetElineupmallPhoto2l() { + m.elineupmall_photo_2l = nil +} + +// SetElineupmallPhotoOther sets the "elineupmall_photo_other" field. +func (m *HPFollowMutation) SetElineupmallPhotoOther(eft enums.HPFollowType) { + m.elineupmall_photo_other = &eft +} + +// ElineupmallPhotoOther returns the value of the "elineupmall_photo_other" field in the mutation. +func (m *HPFollowMutation) ElineupmallPhotoOther() (r enums.HPFollowType, exists bool) { + v := m.elineupmall_photo_other + if v == nil { + return + } + return *v, true +} + +// OldElineupmallPhotoOther returns the old "elineupmall_photo_other" field's value of the HPFollow entity. +// If the HPFollow object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *HPFollowMutation) OldElineupmallPhotoOther(ctx context.Context) (v enums.HPFollowType, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldElineupmallPhotoOther is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldElineupmallPhotoOther requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldElineupmallPhotoOther: %w", err) + } + return oldValue.ElineupmallPhotoOther, nil +} + +// ResetElineupmallPhotoOther resets all changes to the "elineupmall_photo_other" field. +func (m *HPFollowMutation) ResetElineupmallPhotoOther() { + m.elineupmall_photo_other = nil +} + +// SetElineupmallPhotoAlbum sets the "elineupmall_photo_album" field. +func (m *HPFollowMutation) SetElineupmallPhotoAlbum(eft enums.HPFollowType) { + m.elineupmall_photo_album = &eft +} + +// ElineupmallPhotoAlbum returns the value of the "elineupmall_photo_album" field in the mutation. +func (m *HPFollowMutation) ElineupmallPhotoAlbum() (r enums.HPFollowType, exists bool) { + v := m.elineupmall_photo_album + if v == nil { + return + } + return *v, true +} + +// OldElineupmallPhotoAlbum returns the old "elineupmall_photo_album" field's value of the HPFollow entity. +// If the HPFollow object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *HPFollowMutation) OldElineupmallPhotoAlbum(ctx context.Context) (v enums.HPFollowType, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldElineupmallPhotoAlbum is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldElineupmallPhotoAlbum requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldElineupmallPhotoAlbum: %w", err) + } + return oldValue.ElineupmallPhotoAlbum, nil +} + +// ResetElineupmallPhotoAlbum resets all changes to the "elineupmall_photo_album" field. +func (m *HPFollowMutation) ResetElineupmallPhotoAlbum() { + m.elineupmall_photo_album = nil +} + +// SetElineupmallPhotoAlbumOther sets the "elineupmall_photo_album_other" field. +func (m *HPFollowMutation) SetElineupmallPhotoAlbumOther(eft enums.HPFollowType) { + m.elineupmall_photo_album_other = &eft +} + +// ElineupmallPhotoAlbumOther returns the value of the "elineupmall_photo_album_other" field in the mutation. +func (m *HPFollowMutation) ElineupmallPhotoAlbumOther() (r enums.HPFollowType, exists bool) { + v := m.elineupmall_photo_album_other + if v == nil { + return + } + return *v, true +} + +// OldElineupmallPhotoAlbumOther returns the old "elineupmall_photo_album_other" field's value of the HPFollow entity. +// If the HPFollow object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *HPFollowMutation) OldElineupmallPhotoAlbumOther(ctx context.Context) (v enums.HPFollowType, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldElineupmallPhotoAlbumOther is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldElineupmallPhotoAlbumOther requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldElineupmallPhotoAlbumOther: %w", err) + } + return oldValue.ElineupmallPhotoAlbumOther, nil +} + +// ResetElineupmallPhotoAlbumOther resets all changes to the "elineupmall_photo_album_other" field. +func (m *HPFollowMutation) ResetElineupmallPhotoAlbumOther() { + m.elineupmall_photo_album_other = nil +} + +// SetElineupmallPhotoBook sets the "elineupmall_photo_book" field. +func (m *HPFollowMutation) SetElineupmallPhotoBook(eft enums.HPFollowType) { + m.elineupmall_photo_book = &eft +} + +// ElineupmallPhotoBook returns the value of the "elineupmall_photo_book" field in the mutation. +func (m *HPFollowMutation) ElineupmallPhotoBook() (r enums.HPFollowType, exists bool) { + v := m.elineupmall_photo_book + if v == nil { + return + } + return *v, true +} + +// OldElineupmallPhotoBook returns the old "elineupmall_photo_book" field's value of the HPFollow entity. +// If the HPFollow object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *HPFollowMutation) OldElineupmallPhotoBook(ctx context.Context) (v enums.HPFollowType, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldElineupmallPhotoBook is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldElineupmallPhotoBook requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldElineupmallPhotoBook: %w", err) + } + return oldValue.ElineupmallPhotoBook, nil +} + +// ResetElineupmallPhotoBook resets all changes to the "elineupmall_photo_book" field. +func (m *HPFollowMutation) ResetElineupmallPhotoBook() { + m.elineupmall_photo_book = nil +} + +// SetElineupmallPhotoBookOther sets the "elineupmall_photo_book_other" field. +func (m *HPFollowMutation) SetElineupmallPhotoBookOther(eft enums.HPFollowType) { + m.elineupmall_photo_book_other = &eft +} + +// ElineupmallPhotoBookOther returns the value of the "elineupmall_photo_book_other" field in the mutation. +func (m *HPFollowMutation) ElineupmallPhotoBookOther() (r enums.HPFollowType, exists bool) { + v := m.elineupmall_photo_book_other + if v == nil { + return + } + return *v, true +} + +// OldElineupmallPhotoBookOther returns the old "elineupmall_photo_book_other" field's value of the HPFollow entity. +// If the HPFollow object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *HPFollowMutation) OldElineupmallPhotoBookOther(ctx context.Context) (v enums.HPFollowType, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldElineupmallPhotoBookOther is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldElineupmallPhotoBookOther requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldElineupmallPhotoBookOther: %w", err) + } + return oldValue.ElineupmallPhotoBookOther, nil +} + +// ResetElineupmallPhotoBookOther resets all changes to the "elineupmall_photo_book_other" field. +func (m *HPFollowMutation) ResetElineupmallPhotoBookOther() { + m.elineupmall_photo_book_other = nil +} + +// SetElineupmallDvd sets the "elineupmall_dvd" field. +func (m *HPFollowMutation) SetElineupmallDvd(eft enums.HPFollowType) { + m.elineupmall_dvd = &eft +} + +// ElineupmallDvd returns the value of the "elineupmall_dvd" field in the mutation. +func (m *HPFollowMutation) ElineupmallDvd() (r enums.HPFollowType, exists bool) { + v := m.elineupmall_dvd + if v == nil { + return + } + return *v, true +} + +// OldElineupmallDvd returns the old "elineupmall_dvd" field's value of the HPFollow entity. +// If the HPFollow object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *HPFollowMutation) OldElineupmallDvd(ctx context.Context) (v enums.HPFollowType, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldElineupmallDvd is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldElineupmallDvd requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldElineupmallDvd: %w", err) + } + return oldValue.ElineupmallDvd, nil +} + +// ResetElineupmallDvd resets all changes to the "elineupmall_dvd" field. +func (m *HPFollowMutation) ResetElineupmallDvd() { + m.elineupmall_dvd = nil +} + +// SetElineupmallDvdMagazine sets the "elineupmall_dvd_magazine" field. +func (m *HPFollowMutation) SetElineupmallDvdMagazine(eft enums.HPFollowType) { + m.elineupmall_dvd_magazine = &eft +} + +// ElineupmallDvdMagazine returns the value of the "elineupmall_dvd_magazine" field in the mutation. +func (m *HPFollowMutation) ElineupmallDvdMagazine() (r enums.HPFollowType, exists bool) { + v := m.elineupmall_dvd_magazine + if v == nil { + return + } + return *v, true +} + +// OldElineupmallDvdMagazine returns the old "elineupmall_dvd_magazine" field's value of the HPFollow entity. +// If the HPFollow object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *HPFollowMutation) OldElineupmallDvdMagazine(ctx context.Context) (v enums.HPFollowType, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldElineupmallDvdMagazine is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldElineupmallDvdMagazine requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldElineupmallDvdMagazine: %w", err) + } + return oldValue.ElineupmallDvdMagazine, nil +} + +// ResetElineupmallDvdMagazine resets all changes to the "elineupmall_dvd_magazine" field. +func (m *HPFollowMutation) ResetElineupmallDvdMagazine() { + m.elineupmall_dvd_magazine = nil +} + +// SetElineupmallDvdMagazineOther sets the "elineupmall_dvd_magazine_other" field. +func (m *HPFollowMutation) SetElineupmallDvdMagazineOther(eft enums.HPFollowType) { + m.elineupmall_dvd_magazine_other = &eft +} + +// ElineupmallDvdMagazineOther returns the value of the "elineupmall_dvd_magazine_other" field in the mutation. +func (m *HPFollowMutation) ElineupmallDvdMagazineOther() (r enums.HPFollowType, exists bool) { + v := m.elineupmall_dvd_magazine_other + if v == nil { + return + } + return *v, true +} + +// OldElineupmallDvdMagazineOther returns the old "elineupmall_dvd_magazine_other" field's value of the HPFollow entity. +// If the HPFollow object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *HPFollowMutation) OldElineupmallDvdMagazineOther(ctx context.Context) (v enums.HPFollowType, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldElineupmallDvdMagazineOther is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldElineupmallDvdMagazineOther requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldElineupmallDvdMagazineOther: %w", err) + } + return oldValue.ElineupmallDvdMagazineOther, nil +} + +// ResetElineupmallDvdMagazineOther resets all changes to the "elineupmall_dvd_magazine_other" field. +func (m *HPFollowMutation) ResetElineupmallDvdMagazineOther() { + m.elineupmall_dvd_magazine_other = nil +} + +// SetElineupmallBlueray sets the "elineupmall_blueray" field. +func (m *HPFollowMutation) SetElineupmallBlueray(eft enums.HPFollowType) { + m.elineupmall_blueray = &eft +} + +// ElineupmallBlueray returns the value of the "elineupmall_blueray" field in the mutation. +func (m *HPFollowMutation) ElineupmallBlueray() (r enums.HPFollowType, exists bool) { + v := m.elineupmall_blueray + if v == nil { + return + } + return *v, true +} + +// OldElineupmallBlueray returns the old "elineupmall_blueray" field's value of the HPFollow entity. +// If the HPFollow object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *HPFollowMutation) OldElineupmallBlueray(ctx context.Context) (v enums.HPFollowType, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldElineupmallBlueray is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldElineupmallBlueray requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldElineupmallBlueray: %w", err) + } + return oldValue.ElineupmallBlueray, nil +} + +// ResetElineupmallBlueray resets all changes to the "elineupmall_blueray" field. +func (m *HPFollowMutation) ResetElineupmallBlueray() { + m.elineupmall_blueray = nil +} + +// SetElineupmallPenlight sets the "elineupmall_penlight" field. +func (m *HPFollowMutation) SetElineupmallPenlight(eft enums.HPFollowType) { + m.elineupmall_penlight = &eft +} + +// ElineupmallPenlight returns the value of the "elineupmall_penlight" field in the mutation. +func (m *HPFollowMutation) ElineupmallPenlight() (r enums.HPFollowType, exists bool) { + v := m.elineupmall_penlight + if v == nil { + return + } + return *v, true +} + +// OldElineupmallPenlight returns the old "elineupmall_penlight" field's value of the HPFollow entity. +// If the HPFollow object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *HPFollowMutation) OldElineupmallPenlight(ctx context.Context) (v enums.HPFollowType, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldElineupmallPenlight is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldElineupmallPenlight requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldElineupmallPenlight: %w", err) + } + return oldValue.ElineupmallPenlight, nil +} + +// ResetElineupmallPenlight resets all changes to the "elineupmall_penlight" field. +func (m *HPFollowMutation) ResetElineupmallPenlight() { + m.elineupmall_penlight = nil +} + +// SetElineupmallCollectionPinnapPoster sets the "elineupmall_collection_pinnap_poster" field. +func (m *HPFollowMutation) SetElineupmallCollectionPinnapPoster(eft enums.HPFollowType) { + m.elineupmall_collection_pinnap_poster = &eft +} + +// ElineupmallCollectionPinnapPoster returns the value of the "elineupmall_collection_pinnap_poster" field in the mutation. +func (m *HPFollowMutation) ElineupmallCollectionPinnapPoster() (r enums.HPFollowType, exists bool) { + v := m.elineupmall_collection_pinnap_poster + if v == nil { + return + } + return *v, true +} + +// OldElineupmallCollectionPinnapPoster returns the old "elineupmall_collection_pinnap_poster" field's value of the HPFollow entity. +// If the HPFollow object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *HPFollowMutation) OldElineupmallCollectionPinnapPoster(ctx context.Context) (v enums.HPFollowType, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldElineupmallCollectionPinnapPoster is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldElineupmallCollectionPinnapPoster requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldElineupmallCollectionPinnapPoster: %w", err) + } + return oldValue.ElineupmallCollectionPinnapPoster, nil +} + +// ResetElineupmallCollectionPinnapPoster resets all changes to the "elineupmall_collection_pinnap_poster" field. +func (m *HPFollowMutation) ResetElineupmallCollectionPinnapPoster() { + m.elineupmall_collection_pinnap_poster = nil +} + +// SetElineupmallCollectionPhoto sets the "elineupmall_collection_photo" field. +func (m *HPFollowMutation) SetElineupmallCollectionPhoto(eft enums.HPFollowType) { + m.elineupmall_collection_photo = &eft +} + +// ElineupmallCollectionPhoto returns the value of the "elineupmall_collection_photo" field in the mutation. +func (m *HPFollowMutation) ElineupmallCollectionPhoto() (r enums.HPFollowType, exists bool) { + v := m.elineupmall_collection_photo + if v == nil { + return + } + return *v, true +} + +// OldElineupmallCollectionPhoto returns the old "elineupmall_collection_photo" field's value of the HPFollow entity. +// If the HPFollow object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *HPFollowMutation) OldElineupmallCollectionPhoto(ctx context.Context) (v enums.HPFollowType, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldElineupmallCollectionPhoto is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldElineupmallCollectionPhoto requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldElineupmallCollectionPhoto: %w", err) + } + return oldValue.ElineupmallCollectionPhoto, nil +} + +// ResetElineupmallCollectionPhoto resets all changes to the "elineupmall_collection_photo" field. +func (m *HPFollowMutation) ResetElineupmallCollectionPhoto() { + m.elineupmall_collection_photo = nil +} + +// SetElineupmallCollectionOther sets the "elineupmall_collection_other" field. +func (m *HPFollowMutation) SetElineupmallCollectionOther(eft enums.HPFollowType) { + m.elineupmall_collection_other = &eft +} + +// ElineupmallCollectionOther returns the value of the "elineupmall_collection_other" field in the mutation. +func (m *HPFollowMutation) ElineupmallCollectionOther() (r enums.HPFollowType, exists bool) { + v := m.elineupmall_collection_other + if v == nil { + return + } + return *v, true +} + +// OldElineupmallCollectionOther returns the old "elineupmall_collection_other" field's value of the HPFollow entity. +// If the HPFollow object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *HPFollowMutation) OldElineupmallCollectionOther(ctx context.Context) (v enums.HPFollowType, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldElineupmallCollectionOther is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldElineupmallCollectionOther requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldElineupmallCollectionOther: %w", err) + } + return oldValue.ElineupmallCollectionOther, nil +} + +// ResetElineupmallCollectionOther resets all changes to the "elineupmall_collection_other" field. +func (m *HPFollowMutation) ResetElineupmallCollectionOther() { + m.elineupmall_collection_other = nil +} + +// SetElineupmallTshirt sets the "elineupmall_tshirt" field. +func (m *HPFollowMutation) SetElineupmallTshirt(eft enums.HPFollowType) { + m.elineupmall_tshirt = &eft +} + +// ElineupmallTshirt returns the value of the "elineupmall_tshirt" field in the mutation. +func (m *HPFollowMutation) ElineupmallTshirt() (r enums.HPFollowType, exists bool) { + v := m.elineupmall_tshirt + if v == nil { + return + } + return *v, true +} + +// OldElineupmallTshirt returns the old "elineupmall_tshirt" field's value of the HPFollow entity. +// If the HPFollow object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *HPFollowMutation) OldElineupmallTshirt(ctx context.Context) (v enums.HPFollowType, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldElineupmallTshirt is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldElineupmallTshirt requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldElineupmallTshirt: %w", err) + } + return oldValue.ElineupmallTshirt, nil +} + +// ResetElineupmallTshirt resets all changes to the "elineupmall_tshirt" field. +func (m *HPFollowMutation) ResetElineupmallTshirt() { + m.elineupmall_tshirt = nil +} + +// SetElineupmallMicrofiberTowel sets the "elineupmall_microfiber_towel" field. +func (m *HPFollowMutation) SetElineupmallMicrofiberTowel(eft enums.HPFollowType) { + m.elineupmall_microfiber_towel = &eft +} + +// ElineupmallMicrofiberTowel returns the value of the "elineupmall_microfiber_towel" field in the mutation. +func (m *HPFollowMutation) ElineupmallMicrofiberTowel() (r enums.HPFollowType, exists bool) { + v := m.elineupmall_microfiber_towel + if v == nil { + return + } + return *v, true +} + +// OldElineupmallMicrofiberTowel returns the old "elineupmall_microfiber_towel" field's value of the HPFollow entity. +// If the HPFollow object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *HPFollowMutation) OldElineupmallMicrofiberTowel(ctx context.Context) (v enums.HPFollowType, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldElineupmallMicrofiberTowel is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldElineupmallMicrofiberTowel requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldElineupmallMicrofiberTowel: %w", err) + } + return oldValue.ElineupmallMicrofiberTowel, nil +} + +// ResetElineupmallMicrofiberTowel resets all changes to the "elineupmall_microfiber_towel" field. +func (m *HPFollowMutation) ResetElineupmallMicrofiberTowel() { + m.elineupmall_microfiber_towel = nil } -// CreatedAt returns the value of the "created_at" field in the mutation. -func (m *HPFollowMutation) CreatedAt() (r time.Time, exists bool) { - v := m.created_at +// SetElineupmallMufflerTowel sets the "elineupmall_muffler_towel" field. +func (m *HPFollowMutation) SetElineupmallMufflerTowel(eft enums.HPFollowType) { + m.elineupmall_muffler_towel = &eft +} + +// ElineupmallMufflerTowel returns the value of the "elineupmall_muffler_towel" field in the mutation. +func (m *HPFollowMutation) ElineupmallMufflerTowel() (r enums.HPFollowType, exists bool) { + v := m.elineupmall_muffler_towel if v == nil { return } return *v, true } -// OldCreatedAt returns the old "created_at" field's value of the HPFollow entity. +// OldElineupmallMufflerTowel returns the old "elineupmall_muffler_towel" field's value of the HPFollow entity. // If the HPFollow object wasn't provided to the builder, the object is fetched from the database. // An error is returned if the mutation operation is not UpdateOne, or the database query fails. -func (m *HPFollowMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { +func (m *HPFollowMutation) OldElineupmallMufflerTowel(ctx context.Context) (v enums.HPFollowType, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldCreatedAt is only allowed on UpdateOne operations") + return v, errors.New("OldElineupmallMufflerTowel is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldCreatedAt requires an ID field in the mutation") + return v, errors.New("OldElineupmallMufflerTowel requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldCreatedAt: %w", err) + return v, fmt.Errorf("querying old value for OldElineupmallMufflerTowel: %w", err) } - return oldValue.CreatedAt, nil + return oldValue.ElineupmallMufflerTowel, nil } -// ClearCreatedAt clears the value of the "created_at" field. -func (m *HPFollowMutation) ClearCreatedAt() { - m.created_at = nil - m.clearedFields[hpfollow.FieldCreatedAt] = struct{}{} -} - -// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. -func (m *HPFollowMutation) CreatedAtCleared() bool { - _, ok := m.clearedFields[hpfollow.FieldCreatedAt] - return ok -} - -// ResetCreatedAt resets all changes to the "created_at" field. -func (m *HPFollowMutation) ResetCreatedAt() { - m.created_at = nil - delete(m.clearedFields, hpfollow.FieldCreatedAt) +// ResetElineupmallMufflerTowel resets all changes to the "elineupmall_muffler_towel" field. +func (m *HPFollowMutation) ResetElineupmallMufflerTowel() { + m.elineupmall_muffler_towel = nil } -// SetUpdatedAt sets the "updated_at" field. -func (m *HPFollowMutation) SetUpdatedAt(t time.Time) { - m.updated_at = &t +// SetElineupmallFsk sets the "elineupmall_fsk" field. +func (m *HPFollowMutation) SetElineupmallFsk(eft enums.HPFollowType) { + m.elineupmall_fsk = &eft } -// UpdatedAt returns the value of the "updated_at" field in the mutation. -func (m *HPFollowMutation) UpdatedAt() (r time.Time, exists bool) { - v := m.updated_at +// ElineupmallFsk returns the value of the "elineupmall_fsk" field in the mutation. +func (m *HPFollowMutation) ElineupmallFsk() (r enums.HPFollowType, exists bool) { + v := m.elineupmall_fsk if v == nil { return } return *v, true } -// OldUpdatedAt returns the old "updated_at" field's value of the HPFollow entity. +// OldElineupmallFsk returns the old "elineupmall_fsk" field's value of the HPFollow entity. // If the HPFollow object wasn't provided to the builder, the object is fetched from the database. // An error is returned if the mutation operation is not UpdateOne, or the database query fails. -func (m *HPFollowMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { +func (m *HPFollowMutation) OldElineupmallFsk(ctx context.Context) (v enums.HPFollowType, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldUpdatedAt is only allowed on UpdateOne operations") + return v, errors.New("OldElineupmallFsk is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldUpdatedAt requires an ID field in the mutation") + return v, errors.New("OldElineupmallFsk requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldUpdatedAt: %w", err) + return v, fmt.Errorf("querying old value for OldElineupmallFsk: %w", err) } - return oldValue.UpdatedAt, nil + return oldValue.ElineupmallFsk, nil } -// ClearUpdatedAt clears the value of the "updated_at" field. -func (m *HPFollowMutation) ClearUpdatedAt() { - m.updated_at = nil - m.clearedFields[hpfollow.FieldUpdatedAt] = struct{}{} +// ResetElineupmallFsk resets all changes to the "elineupmall_fsk" field. +func (m *HPFollowMutation) ResetElineupmallFsk() { + m.elineupmall_fsk = nil } -// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. -func (m *HPFollowMutation) UpdatedAtCleared() bool { - _, ok := m.clearedFields[hpfollow.FieldUpdatedAt] - return ok +// SetElineupmallKeyringOther sets the "elineupmall_keyring_other" field. +func (m *HPFollowMutation) SetElineupmallKeyringOther(eft enums.HPFollowType) { + m.elineupmall_keyring_other = &eft } -// ResetUpdatedAt resets all changes to the "updated_at" field. -func (m *HPFollowMutation) ResetUpdatedAt() { - m.updated_at = nil - delete(m.clearedFields, hpfollow.FieldUpdatedAt) +// ElineupmallKeyringOther returns the value of the "elineupmall_keyring_other" field in the mutation. +func (m *HPFollowMutation) ElineupmallKeyringOther() (r enums.HPFollowType, exists bool) { + v := m.elineupmall_keyring_other + if v == nil { + return + } + return *v, true } -// SetType sets the "type" field. -func (m *HPFollowMutation) SetType(eft enums.HPFollowType) { - m._type = &eft +// OldElineupmallKeyringOther returns the old "elineupmall_keyring_other" field's value of the HPFollow entity. +// If the HPFollow object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *HPFollowMutation) OldElineupmallKeyringOther(ctx context.Context) (v enums.HPFollowType, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldElineupmallKeyringOther is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldElineupmallKeyringOther requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldElineupmallKeyringOther: %w", err) + } + return oldValue.ElineupmallKeyringOther, nil } -// GetType returns the value of the "type" field in the mutation. -func (m *HPFollowMutation) GetType() (r enums.HPFollowType, exists bool) { - v := m._type +// ResetElineupmallKeyringOther resets all changes to the "elineupmall_keyring_other" field. +func (m *HPFollowMutation) ResetElineupmallKeyringOther() { + m.elineupmall_keyring_other = nil +} + +// SetElineupmallClearFile sets the "elineupmall_clear_file" field. +func (m *HPFollowMutation) SetElineupmallClearFile(eft enums.HPFollowType) { + m.elineupmall_clear_file = &eft +} + +// ElineupmallClearFile returns the value of the "elineupmall_clear_file" field in the mutation. +func (m *HPFollowMutation) ElineupmallClearFile() (r enums.HPFollowType, exists bool) { + v := m.elineupmall_clear_file if v == nil { return } return *v, true } -// OldType returns the old "type" field's value of the HPFollow entity. +// OldElineupmallClearFile returns the old "elineupmall_clear_file" field's value of the HPFollow entity. // If the HPFollow object wasn't provided to the builder, the object is fetched from the database. // An error is returned if the mutation operation is not UpdateOne, or the database query fails. -func (m *HPFollowMutation) OldType(ctx context.Context) (v enums.HPFollowType, err error) { +func (m *HPFollowMutation) OldElineupmallClearFile(ctx context.Context) (v enums.HPFollowType, err error) { if !m.op.Is(OpUpdateOne) { - return v, errors.New("OldType is only allowed on UpdateOne operations") + return v, errors.New("OldElineupmallClearFile is only allowed on UpdateOne operations") } if m.id == nil || m.oldValue == nil { - return v, errors.New("OldType requires an ID field in the mutation") + return v, errors.New("OldElineupmallClearFile requires an ID field in the mutation") } oldValue, err := m.oldValue(ctx) if err != nil { - return v, fmt.Errorf("querying old value for OldType: %w", err) + return v, fmt.Errorf("querying old value for OldElineupmallClearFile: %w", err) } - return oldValue.Type, nil + return oldValue.ElineupmallClearFile, nil } -// ResetType resets all changes to the "type" field. -func (m *HPFollowMutation) ResetType() { - m._type = nil +// ResetElineupmallClearFile resets all changes to the "elineupmall_clear_file" field. +func (m *HPFollowMutation) ResetElineupmallClearFile() { + m.elineupmall_clear_file = nil } // SetUserID sets the "user" edge to the User entity by id. @@ -13761,7 +14649,7 @@ func (m *HPFollowMutation) Type() string { // order to get all numeric fields that were incremented/decremented, call // AddedFields(). func (m *HPFollowMutation) Fields() []string { - fields := make([]string, 0, 3) + fields := make([]string, 0, 27) if m.created_at != nil { fields = append(fields, hpfollow.FieldCreatedAt) } @@ -13771,6 +14659,78 @@ func (m *HPFollowMutation) Fields() []string { if m._type != nil { fields = append(fields, hpfollow.FieldType) } + if m.elineupmall_other != nil { + fields = append(fields, hpfollow.FieldElineupmallOther) + } + if m.elineupmall_photo_daily != nil { + fields = append(fields, hpfollow.FieldElineupmallPhotoDaily) + } + if m.elineupmall_photo_a4 != nil { + fields = append(fields, hpfollow.FieldElineupmallPhotoA4) + } + if m.elineupmall_photo_a5 != nil { + fields = append(fields, hpfollow.FieldElineupmallPhotoA5) + } + if m.elineupmall_photo_2l != nil { + fields = append(fields, hpfollow.FieldElineupmallPhoto2l) + } + if m.elineupmall_photo_other != nil { + fields = append(fields, hpfollow.FieldElineupmallPhotoOther) + } + if m.elineupmall_photo_album != nil { + fields = append(fields, hpfollow.FieldElineupmallPhotoAlbum) + } + if m.elineupmall_photo_album_other != nil { + fields = append(fields, hpfollow.FieldElineupmallPhotoAlbumOther) + } + if m.elineupmall_photo_book != nil { + fields = append(fields, hpfollow.FieldElineupmallPhotoBook) + } + if m.elineupmall_photo_book_other != nil { + fields = append(fields, hpfollow.FieldElineupmallPhotoBookOther) + } + if m.elineupmall_dvd != nil { + fields = append(fields, hpfollow.FieldElineupmallDvd) + } + if m.elineupmall_dvd_magazine != nil { + fields = append(fields, hpfollow.FieldElineupmallDvdMagazine) + } + if m.elineupmall_dvd_magazine_other != nil { + fields = append(fields, hpfollow.FieldElineupmallDvdMagazineOther) + } + if m.elineupmall_blueray != nil { + fields = append(fields, hpfollow.FieldElineupmallBlueray) + } + if m.elineupmall_penlight != nil { + fields = append(fields, hpfollow.FieldElineupmallPenlight) + } + if m.elineupmall_collection_pinnap_poster != nil { + fields = append(fields, hpfollow.FieldElineupmallCollectionPinnapPoster) + } + if m.elineupmall_collection_photo != nil { + fields = append(fields, hpfollow.FieldElineupmallCollectionPhoto) + } + if m.elineupmall_collection_other != nil { + fields = append(fields, hpfollow.FieldElineupmallCollectionOther) + } + if m.elineupmall_tshirt != nil { + fields = append(fields, hpfollow.FieldElineupmallTshirt) + } + if m.elineupmall_microfiber_towel != nil { + fields = append(fields, hpfollow.FieldElineupmallMicrofiberTowel) + } + if m.elineupmall_muffler_towel != nil { + fields = append(fields, hpfollow.FieldElineupmallMufflerTowel) + } + if m.elineupmall_fsk != nil { + fields = append(fields, hpfollow.FieldElineupmallFsk) + } + if m.elineupmall_keyring_other != nil { + fields = append(fields, hpfollow.FieldElineupmallKeyringOther) + } + if m.elineupmall_clear_file != nil { + fields = append(fields, hpfollow.FieldElineupmallClearFile) + } return fields } @@ -13785,6 +14745,54 @@ func (m *HPFollowMutation) Field(name string) (ent.Value, bool) { return m.UpdatedAt() case hpfollow.FieldType: return m.GetType() + case hpfollow.FieldElineupmallOther: + return m.ElineupmallOther() + case hpfollow.FieldElineupmallPhotoDaily: + return m.ElineupmallPhotoDaily() + case hpfollow.FieldElineupmallPhotoA4: + return m.ElineupmallPhotoA4() + case hpfollow.FieldElineupmallPhotoA5: + return m.ElineupmallPhotoA5() + case hpfollow.FieldElineupmallPhoto2l: + return m.ElineupmallPhoto2l() + case hpfollow.FieldElineupmallPhotoOther: + return m.ElineupmallPhotoOther() + case hpfollow.FieldElineupmallPhotoAlbum: + return m.ElineupmallPhotoAlbum() + case hpfollow.FieldElineupmallPhotoAlbumOther: + return m.ElineupmallPhotoAlbumOther() + case hpfollow.FieldElineupmallPhotoBook: + return m.ElineupmallPhotoBook() + case hpfollow.FieldElineupmallPhotoBookOther: + return m.ElineupmallPhotoBookOther() + case hpfollow.FieldElineupmallDvd: + return m.ElineupmallDvd() + case hpfollow.FieldElineupmallDvdMagazine: + return m.ElineupmallDvdMagazine() + case hpfollow.FieldElineupmallDvdMagazineOther: + return m.ElineupmallDvdMagazineOther() + case hpfollow.FieldElineupmallBlueray: + return m.ElineupmallBlueray() + case hpfollow.FieldElineupmallPenlight: + return m.ElineupmallPenlight() + case hpfollow.FieldElineupmallCollectionPinnapPoster: + return m.ElineupmallCollectionPinnapPoster() + case hpfollow.FieldElineupmallCollectionPhoto: + return m.ElineupmallCollectionPhoto() + case hpfollow.FieldElineupmallCollectionOther: + return m.ElineupmallCollectionOther() + case hpfollow.FieldElineupmallTshirt: + return m.ElineupmallTshirt() + case hpfollow.FieldElineupmallMicrofiberTowel: + return m.ElineupmallMicrofiberTowel() + case hpfollow.FieldElineupmallMufflerTowel: + return m.ElineupmallMufflerTowel() + case hpfollow.FieldElineupmallFsk: + return m.ElineupmallFsk() + case hpfollow.FieldElineupmallKeyringOther: + return m.ElineupmallKeyringOther() + case hpfollow.FieldElineupmallClearFile: + return m.ElineupmallClearFile() } return nil, false } @@ -13800,6 +14808,54 @@ func (m *HPFollowMutation) OldField(ctx context.Context, name string) (ent.Value return m.OldUpdatedAt(ctx) case hpfollow.FieldType: return m.OldType(ctx) + case hpfollow.FieldElineupmallOther: + return m.OldElineupmallOther(ctx) + case hpfollow.FieldElineupmallPhotoDaily: + return m.OldElineupmallPhotoDaily(ctx) + case hpfollow.FieldElineupmallPhotoA4: + return m.OldElineupmallPhotoA4(ctx) + case hpfollow.FieldElineupmallPhotoA5: + return m.OldElineupmallPhotoA5(ctx) + case hpfollow.FieldElineupmallPhoto2l: + return m.OldElineupmallPhoto2l(ctx) + case hpfollow.FieldElineupmallPhotoOther: + return m.OldElineupmallPhotoOther(ctx) + case hpfollow.FieldElineupmallPhotoAlbum: + return m.OldElineupmallPhotoAlbum(ctx) + case hpfollow.FieldElineupmallPhotoAlbumOther: + return m.OldElineupmallPhotoAlbumOther(ctx) + case hpfollow.FieldElineupmallPhotoBook: + return m.OldElineupmallPhotoBook(ctx) + case hpfollow.FieldElineupmallPhotoBookOther: + return m.OldElineupmallPhotoBookOther(ctx) + case hpfollow.FieldElineupmallDvd: + return m.OldElineupmallDvd(ctx) + case hpfollow.FieldElineupmallDvdMagazine: + return m.OldElineupmallDvdMagazine(ctx) + case hpfollow.FieldElineupmallDvdMagazineOther: + return m.OldElineupmallDvdMagazineOther(ctx) + case hpfollow.FieldElineupmallBlueray: + return m.OldElineupmallBlueray(ctx) + case hpfollow.FieldElineupmallPenlight: + return m.OldElineupmallPenlight(ctx) + case hpfollow.FieldElineupmallCollectionPinnapPoster: + return m.OldElineupmallCollectionPinnapPoster(ctx) + case hpfollow.FieldElineupmallCollectionPhoto: + return m.OldElineupmallCollectionPhoto(ctx) + case hpfollow.FieldElineupmallCollectionOther: + return m.OldElineupmallCollectionOther(ctx) + case hpfollow.FieldElineupmallTshirt: + return m.OldElineupmallTshirt(ctx) + case hpfollow.FieldElineupmallMicrofiberTowel: + return m.OldElineupmallMicrofiberTowel(ctx) + case hpfollow.FieldElineupmallMufflerTowel: + return m.OldElineupmallMufflerTowel(ctx) + case hpfollow.FieldElineupmallFsk: + return m.OldElineupmallFsk(ctx) + case hpfollow.FieldElineupmallKeyringOther: + return m.OldElineupmallKeyringOther(ctx) + case hpfollow.FieldElineupmallClearFile: + return m.OldElineupmallClearFile(ctx) } return nil, fmt.Errorf("unknown HPFollow field %s", name) } @@ -13830,6 +14886,174 @@ func (m *HPFollowMutation) SetField(name string, value ent.Value) error { } m.SetType(v) return nil + case hpfollow.FieldElineupmallOther: + v, ok := value.(enums.HPFollowType) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetElineupmallOther(v) + return nil + case hpfollow.FieldElineupmallPhotoDaily: + v, ok := value.(enums.HPFollowType) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetElineupmallPhotoDaily(v) + return nil + case hpfollow.FieldElineupmallPhotoA4: + v, ok := value.(enums.HPFollowType) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetElineupmallPhotoA4(v) + return nil + case hpfollow.FieldElineupmallPhotoA5: + v, ok := value.(enums.HPFollowType) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetElineupmallPhotoA5(v) + return nil + case hpfollow.FieldElineupmallPhoto2l: + v, ok := value.(enums.HPFollowType) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetElineupmallPhoto2l(v) + return nil + case hpfollow.FieldElineupmallPhotoOther: + v, ok := value.(enums.HPFollowType) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetElineupmallPhotoOther(v) + return nil + case hpfollow.FieldElineupmallPhotoAlbum: + v, ok := value.(enums.HPFollowType) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetElineupmallPhotoAlbum(v) + return nil + case hpfollow.FieldElineupmallPhotoAlbumOther: + v, ok := value.(enums.HPFollowType) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetElineupmallPhotoAlbumOther(v) + return nil + case hpfollow.FieldElineupmallPhotoBook: + v, ok := value.(enums.HPFollowType) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetElineupmallPhotoBook(v) + return nil + case hpfollow.FieldElineupmallPhotoBookOther: + v, ok := value.(enums.HPFollowType) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetElineupmallPhotoBookOther(v) + return nil + case hpfollow.FieldElineupmallDvd: + v, ok := value.(enums.HPFollowType) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetElineupmallDvd(v) + return nil + case hpfollow.FieldElineupmallDvdMagazine: + v, ok := value.(enums.HPFollowType) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetElineupmallDvdMagazine(v) + return nil + case hpfollow.FieldElineupmallDvdMagazineOther: + v, ok := value.(enums.HPFollowType) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetElineupmallDvdMagazineOther(v) + return nil + case hpfollow.FieldElineupmallBlueray: + v, ok := value.(enums.HPFollowType) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetElineupmallBlueray(v) + return nil + case hpfollow.FieldElineupmallPenlight: + v, ok := value.(enums.HPFollowType) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetElineupmallPenlight(v) + return nil + case hpfollow.FieldElineupmallCollectionPinnapPoster: + v, ok := value.(enums.HPFollowType) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetElineupmallCollectionPinnapPoster(v) + return nil + case hpfollow.FieldElineupmallCollectionPhoto: + v, ok := value.(enums.HPFollowType) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetElineupmallCollectionPhoto(v) + return nil + case hpfollow.FieldElineupmallCollectionOther: + v, ok := value.(enums.HPFollowType) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetElineupmallCollectionOther(v) + return nil + case hpfollow.FieldElineupmallTshirt: + v, ok := value.(enums.HPFollowType) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetElineupmallTshirt(v) + return nil + case hpfollow.FieldElineupmallMicrofiberTowel: + v, ok := value.(enums.HPFollowType) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetElineupmallMicrofiberTowel(v) + return nil + case hpfollow.FieldElineupmallMufflerTowel: + v, ok := value.(enums.HPFollowType) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetElineupmallMufflerTowel(v) + return nil + case hpfollow.FieldElineupmallFsk: + v, ok := value.(enums.HPFollowType) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetElineupmallFsk(v) + return nil + case hpfollow.FieldElineupmallKeyringOther: + v, ok := value.(enums.HPFollowType) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetElineupmallKeyringOther(v) + return nil + case hpfollow.FieldElineupmallClearFile: + v, ok := value.(enums.HPFollowType) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetElineupmallClearFile(v) + return nil } return fmt.Errorf("unknown HPFollow field %s", name) } @@ -13903,6 +15127,78 @@ func (m *HPFollowMutation) ResetField(name string) error { case hpfollow.FieldType: m.ResetType() return nil + case hpfollow.FieldElineupmallOther: + m.ResetElineupmallOther() + return nil + case hpfollow.FieldElineupmallPhotoDaily: + m.ResetElineupmallPhotoDaily() + return nil + case hpfollow.FieldElineupmallPhotoA4: + m.ResetElineupmallPhotoA4() + return nil + case hpfollow.FieldElineupmallPhotoA5: + m.ResetElineupmallPhotoA5() + return nil + case hpfollow.FieldElineupmallPhoto2l: + m.ResetElineupmallPhoto2l() + return nil + case hpfollow.FieldElineupmallPhotoOther: + m.ResetElineupmallPhotoOther() + return nil + case hpfollow.FieldElineupmallPhotoAlbum: + m.ResetElineupmallPhotoAlbum() + return nil + case hpfollow.FieldElineupmallPhotoAlbumOther: + m.ResetElineupmallPhotoAlbumOther() + return nil + case hpfollow.FieldElineupmallPhotoBook: + m.ResetElineupmallPhotoBook() + return nil + case hpfollow.FieldElineupmallPhotoBookOther: + m.ResetElineupmallPhotoBookOther() + return nil + case hpfollow.FieldElineupmallDvd: + m.ResetElineupmallDvd() + return nil + case hpfollow.FieldElineupmallDvdMagazine: + m.ResetElineupmallDvdMagazine() + return nil + case hpfollow.FieldElineupmallDvdMagazineOther: + m.ResetElineupmallDvdMagazineOther() + return nil + case hpfollow.FieldElineupmallBlueray: + m.ResetElineupmallBlueray() + return nil + case hpfollow.FieldElineupmallPenlight: + m.ResetElineupmallPenlight() + return nil + case hpfollow.FieldElineupmallCollectionPinnapPoster: + m.ResetElineupmallCollectionPinnapPoster() + return nil + case hpfollow.FieldElineupmallCollectionPhoto: + m.ResetElineupmallCollectionPhoto() + return nil + case hpfollow.FieldElineupmallCollectionOther: + m.ResetElineupmallCollectionOther() + return nil + case hpfollow.FieldElineupmallTshirt: + m.ResetElineupmallTshirt() + return nil + case hpfollow.FieldElineupmallMicrofiberTowel: + m.ResetElineupmallMicrofiberTowel() + return nil + case hpfollow.FieldElineupmallMufflerTowel: + m.ResetElineupmallMufflerTowel() + return nil + case hpfollow.FieldElineupmallFsk: + m.ResetElineupmallFsk() + return nil + case hpfollow.FieldElineupmallKeyringOther: + m.ResetElineupmallKeyringOther() + return nil + case hpfollow.FieldElineupmallClearFile: + m.ResetElineupmallClearFile() + return nil } return fmt.Errorf("unknown HPFollow field %s", name) } diff --git a/go/service/schema/hpfollow.go b/go/service/schema/hpfollow.go index 1938d22..b37002e 100644 --- a/go/service/schema/hpfollow.go +++ b/go/service/schema/hpfollow.go @@ -35,90 +35,90 @@ func (HPFollow) Fields() []ent.Field { Default(string(enums.HPFollowTypeFollowWithNotification)), // follow types for elineupmall - // field.Enum("elineupmall_other"). - // GoType(enums.HPFollowTypeFollowWithNotification). - // Default(string(enums.HPFollowTypeUnknown)), - - // field.Enum("elineupmall_photo_daily"). - // GoType(enums.HPFollowTypeFollowWithNotification). - // Default(string(enums.HPFollowTypeUnknown)), - // field.Enum("elineupmall_photo_a4"). - // GoType(enums.HPFollowTypeFollowWithNotification). - // Default(string(enums.HPFollowTypeUnknown)), - // field.Enum("elineupmall_photo_a5"). - // GoType(enums.HPFollowTypeFollowWithNotification). - // Default(string(enums.HPFollowTypeUnknown)), - // field.Enum("elineupmall_photo_2l"). - // GoType(enums.HPFollowTypeFollowWithNotification). - // Default(string(enums.HPFollowTypeUnknown)), - // field.Enum("elineupmall_photo_other"). - // GoType(enums.HPFollowTypeFollowWithNotification). - // Default(string(enums.HPFollowTypeUnknown)), - - // field.Enum("elineupmall_photo_album"). - // GoType(enums.HPFollowTypeFollowWithNotification). - // Default(string(enums.HPFollowTypeUnknown)), - // field.Enum("elineupmall_photo_album_other"). - // GoType(enums.HPFollowTypeFollowWithNotification). - // Default(string(enums.HPFollowTypeUnknown)), - - // field.Enum("elineupmall_photo_book"). - // GoType(enums.HPFollowTypeFollowWithNotification). - // Default(string(enums.HPFollowTypeUnknown)), - - // field.Enum("elineupmall_photo_book_other"). - // GoType(enums.HPFollowTypeFollowWithNotification). - // Default(string(enums.HPFollowTypeUnknown)), - - // field.Enum("elineupmall_dvd"). - // GoType(enums.HPFollowTypeFollowWithNotification). - // Default(string(enums.HPFollowTypeUnknown)), - // field.Enum("elineupmall_dvd_magazine"). - // GoType(enums.HPFollowTypeFollowWithNotification). - // Default(string(enums.HPFollowTypeUnknown)), - // field.Enum("elineupmall_dvd_magazine_other"). - // GoType(enums.HPFollowTypeFollowWithNotification). - // Default(string(enums.HPFollowTypeUnknown)), - // field.Enum("elineupmall_blueray"). - // GoType(enums.HPFollowTypeFollowWithNotification). - // Default(string(enums.HPFollowTypeUnknown)), - - // field.Enum("elineupmall_penlight"). - // GoType(enums.HPFollowTypeFollowWithNotification). - // Default(string(enums.HPFollowTypeUnknown)), - - // field.Enum("elineupmall_collection_pinnap_poster"). - // GoType(enums.HPFollowTypeFollowWithNotification). - // Default(string(enums.HPFollowTypeUnknown)), - // field.Enum("elineupmall_collection_photo"). - // GoType(enums.HPFollowTypeFollowWithNotification). - // Default(string(enums.HPFollowTypeUnknown)), - // field.Enum("elineupmall_collection_other"). - // GoType(enums.HPFollowTypeFollowWithNotification). - // Default(string(enums.HPFollowTypeUnknown)), - - // field.Enum("elineupmall_tshirt"). - // GoType(enums.HPFollowTypeFollowWithNotification). - // Default(string(enums.HPFollowTypeUnknown)), - - // field.Enum("elineupmall_microfiber_towel"). - // GoType(enums.HPFollowTypeFollowWithNotification). - // Default(string(enums.HPFollowTypeUnknown)), - // field.Enum("elineupmall_muffler_towel"). - // GoType(enums.HPFollowTypeFollowWithNotification). - // Default(string(enums.HPFollowTypeUnknown)), - - // field.Enum("elineupmall_fsk"). - // GoType(enums.HPFollowTypeFollowWithNotification). - // Default(string(enums.HPFollowTypeUnknown)), - - // field.Enum("elineupmall_keyring_other"). - // GoType(enums.HPFollowTypeFollowWithNotification). - // Default(string(enums.HPFollowTypeUnknown)), - - // field.Enum("elineupmall_clear_file"). - // GoType(enums.HPFollowTypeFollowWithNotification). - // Default(string(enums.HPFollowTypeUnknown)), + field.Enum("elineupmall_other"). + GoType(enums.HPFollowTypeFollowWithNotification). + Default(string(enums.HPFollowTypeUnknown)), + + field.Enum("elineupmall_photo_daily"). + GoType(enums.HPFollowTypeFollowWithNotification). + Default(string(enums.HPFollowTypeUnknown)), + field.Enum("elineupmall_photo_a4"). + GoType(enums.HPFollowTypeFollowWithNotification). + Default(string(enums.HPFollowTypeUnknown)), + field.Enum("elineupmall_photo_a5"). + GoType(enums.HPFollowTypeFollowWithNotification). + Default(string(enums.HPFollowTypeUnknown)), + field.Enum("elineupmall_photo_2l"). + GoType(enums.HPFollowTypeFollowWithNotification). + Default(string(enums.HPFollowTypeUnknown)), + field.Enum("elineupmall_photo_other"). + GoType(enums.HPFollowTypeFollowWithNotification). + Default(string(enums.HPFollowTypeUnknown)), + + field.Enum("elineupmall_photo_album"). + GoType(enums.HPFollowTypeFollowWithNotification). + Default(string(enums.HPFollowTypeUnknown)), + field.Enum("elineupmall_photo_album_other"). + GoType(enums.HPFollowTypeFollowWithNotification). + Default(string(enums.HPFollowTypeUnknown)), + + field.Enum("elineupmall_photo_book"). + GoType(enums.HPFollowTypeFollowWithNotification). + Default(string(enums.HPFollowTypeUnknown)), + + field.Enum("elineupmall_photo_book_other"). + GoType(enums.HPFollowTypeFollowWithNotification). + Default(string(enums.HPFollowTypeUnknown)), + + field.Enum("elineupmall_dvd"). + GoType(enums.HPFollowTypeFollowWithNotification). + Default(string(enums.HPFollowTypeUnknown)), + field.Enum("elineupmall_dvd_magazine"). + GoType(enums.HPFollowTypeFollowWithNotification). + Default(string(enums.HPFollowTypeUnknown)), + field.Enum("elineupmall_dvd_magazine_other"). + GoType(enums.HPFollowTypeFollowWithNotification). + Default(string(enums.HPFollowTypeUnknown)), + field.Enum("elineupmall_blueray"). + GoType(enums.HPFollowTypeFollowWithNotification). + Default(string(enums.HPFollowTypeUnknown)), + + field.Enum("elineupmall_penlight"). + GoType(enums.HPFollowTypeFollowWithNotification). + Default(string(enums.HPFollowTypeUnknown)), + + field.Enum("elineupmall_collection_pinnap_poster"). + GoType(enums.HPFollowTypeFollowWithNotification). + Default(string(enums.HPFollowTypeUnknown)), + field.Enum("elineupmall_collection_photo"). + GoType(enums.HPFollowTypeFollowWithNotification). + Default(string(enums.HPFollowTypeUnknown)), + field.Enum("elineupmall_collection_other"). + GoType(enums.HPFollowTypeFollowWithNotification). + Default(string(enums.HPFollowTypeUnknown)), + + field.Enum("elineupmall_tshirt"). + GoType(enums.HPFollowTypeFollowWithNotification). + Default(string(enums.HPFollowTypeUnknown)), + + field.Enum("elineupmall_microfiber_towel"). + GoType(enums.HPFollowTypeFollowWithNotification). + Default(string(enums.HPFollowTypeUnknown)), + field.Enum("elineupmall_muffler_towel"). + GoType(enums.HPFollowTypeFollowWithNotification). + Default(string(enums.HPFollowTypeUnknown)), + + field.Enum("elineupmall_fsk"). + GoType(enums.HPFollowTypeFollowWithNotification). + Default(string(enums.HPFollowTypeUnknown)), + + field.Enum("elineupmall_keyring_other"). + GoType(enums.HPFollowTypeFollowWithNotification). + Default(string(enums.HPFollowTypeUnknown)), + + field.Enum("elineupmall_clear_file"). + GoType(enums.HPFollowTypeFollowWithNotification). + Default(string(enums.HPFollowTypeUnknown)), } }