From 02817acb740d73d3ff51e00c03ae6098884e3be7 Mon Sep 17 00:00:00 2001 From: yssk22 Date: Tue, 12 Nov 2024 14:26:09 +0000 Subject: [PATCH] [go] update schema to support new upfc site. **Summary** two changes are introduced. - add 'BeforeLottery' to Hpfceventfcticketstatus enum, and we are going to deprecate 'Submitted'. - add 'HPEventFCTicketSite' enum to support new upfc site. **Test** - go test - go run ./cmd/ --prod ent productionize ```` ALTER TABLE `hpfc_event_tickets` MODIFY COLUMN `status` enum('BeforeLottery','Completed','PaymentOverdue','PendingPayment','Rejected','Submitted','Unknown') NOT NULL DEFAULT 'Submitted', ADD COLUMN `application_site` enum('helloproject','mline') NOT NULL DEFAULT 'helloproject'; ALTER TABLE `test_ents` AUTO_INCREMENT 111669149696; ------------------------------------------------- Target Database mysql Are you sure to run SQL above? (y/N)> ```` **Issue** - N/A --- go/graphql/v3/generated/ent.graphql | 7 ++ go/graphql/v3/generated/exec_generated.go | 93 ++++++++++++++++++- go/graphql/v3/generated/schema.graphql | 7 ++ go/service/ent/entql.go | 6 ++ go/service/ent/gql_collection.go | 5 + go/service/ent/hpfceventticket.go | 13 ++- .../ent/hpfceventticket/hpfceventticket.go | 29 +++++- go/service/ent/hpfceventticket/where.go | 30 ++++++ go/service/ent/hpfceventticket_create.go | 70 ++++++++++++++ go/service/ent/hpfceventticket_update.go | 44 +++++++++ go/service/ent/internal/schema.go | 2 +- go/service/ent/migrate/schema.go | 9 +- go/service/ent/mutation.go | 56 ++++++++++- go/service/helloproject/upfc/mutation.go | 4 + go/service/helloproject/upfc/mutation_test.go | 5 + go/service/helloproject/upfc/upfc_test.go | 8 ++ go/service/schema/enums/entgo_enum.go | 12 +++ go/service/schema/enums/gqlgen_enum.go | 23 +++++ .../schema/enums/hpeventfcticketsite.go | 8 ++ .../schema/enums/hpeventfcticketstatus.go | 1 + go/service/schema/hpfceventticket.go | 5 + 21 files changed, 428 insertions(+), 9 deletions(-) create mode 100644 go/service/schema/enums/hpeventfcticketsite.go diff --git a/go/graphql/v3/generated/ent.graphql b/go/graphql/v3/generated/ent.graphql index 5929c3c4..1fba9c1e 100644 --- a/go/graphql/v3/generated/ent.graphql +++ b/go/graphql/v3/generated/ent.graphql @@ -207,13 +207,20 @@ type HPFCEventTicket implements Node { fcMemberSha256: String! applicationTitle: String! applicationID: String + applicationSite: HPFCEventTicketHPEventFCTicketSite! applicationStartDate: Time applicationDueDate: Time paymentStartDate: Time paymentDueDate: Time } +"""HPFCEventTicketHPEventFCTicketSite is enum for the field application_site""" +enum HPFCEventTicketHPEventFCTicketSite @goModel(model: "github.com/yssk22/hpapp/go/service/schema/enums.HPEventFCTicketSite") { + helloproject + mline +} """HPFCEventTicketHPEventFCTicketStatus is enum for the field status""" enum HPFCEventTicketHPEventFCTicketStatus @goModel(model: "github.com/yssk22/hpapp/go/service/schema/enums.HPEventFCTicketStatus") { + BeforeLottery Completed PaymentOverdue PendingPayment diff --git a/go/graphql/v3/generated/exec_generated.go b/go/graphql/v3/generated/exec_generated.go index d75e81dd..6248c548 100644 --- a/go/graphql/v3/generated/exec_generated.go +++ b/go/graphql/v3/generated/exec_generated.go @@ -207,6 +207,7 @@ type ComplexityRoot struct { HPFCEventTicket struct { ApplicationDueDate func(childComplexity int) int ApplicationID func(childComplexity int) int + ApplicationSite func(childComplexity int) int ApplicationStartDate func(childComplexity int) int ApplicationTitle func(childComplexity int) int CreatedAt func(childComplexity int) int @@ -1364,6 +1365,13 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in return e.complexity.HPFCEventTicket.ApplicationID(childComplexity), true + case "HPFCEventTicket.applicationSite": + if e.complexity.HPFCEventTicket.ApplicationSite == nil { + break + } + + return e.complexity.HPFCEventTicket.ApplicationSite(childComplexity), true + case "HPFCEventTicket.applicationStartDate": if e.complexity.HPFCEventTicket.ApplicationStartDate == nil { break @@ -8531,6 +8539,8 @@ func (ec *executionContext) fieldContext_HPEvent_tickets(ctx context.Context, fi return ec.fieldContext_HPFCEventTicket_applicationTitle(ctx, field) case "applicationID": return ec.fieldContext_HPFCEventTicket_applicationID(ctx, field) + case "applicationSite": + return ec.fieldContext_HPFCEventTicket_applicationSite(ctx, field) case "applicationStartDate": return ec.fieldContext_HPFCEventTicket_applicationStartDate(ctx, field) case "applicationDueDate": @@ -9143,6 +9153,50 @@ func (ec *executionContext) fieldContext_HPFCEventTicket_applicationID(ctx conte return fc, nil } +func (ec *executionContext) _HPFCEventTicket_applicationSite(ctx context.Context, field graphql.CollectedField, obj *ent.HPFCEventTicket) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HPFCEventTicket_applicationSite(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.ApplicationSite, 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.HPEventFCTicketSite) + fc.Result = res + return ec.marshalNHPFCEventTicketHPEventFCTicketSite2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPEventFCTicketSite(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_HPFCEventTicket_applicationSite(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HPFCEventTicket", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type HPFCEventTicketHPEventFCTicketSite does not have child fields") + }, + } + return fc, nil +} + func (ec *executionContext) _HPFCEventTicket_applicationStartDate(ctx context.Context, field graphql.CollectedField, obj *ent.HPFCEventTicket) (ret graphql.Marshaler) { fc, err := ec.fieldContext_HPFCEventTicket_applicationStartDate(ctx, field) if err != nil { @@ -18697,6 +18751,8 @@ func (ec *executionContext) fieldContext_User_hpfcEventTickets(ctx context.Conte return ec.fieldContext_HPFCEventTicket_applicationTitle(ctx, field) case "applicationID": return ec.fieldContext_HPFCEventTicket_applicationID(ctx, field) + case "applicationSite": + return ec.fieldContext_HPFCEventTicket_applicationSite(ctx, field) case "applicationStartDate": return ec.fieldContext_HPFCEventTicket_applicationStartDate(ctx, field) case "applicationDueDate": @@ -21263,7 +21319,7 @@ func (ec *executionContext) unmarshalInputUpsertEventsParamsInput(ctx context.Co asMap[k] = v } - fieldsInOrder := [...]string{"fcMemberSha256", "userId", "applications"} + fieldsInOrder := [...]string{"fcMemberSha256", "userId", "site", "applications"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -21286,6 +21342,14 @@ func (ec *executionContext) unmarshalInputUpsertEventsParamsInput(ctx context.Co if err != nil { return it, err } + case "site": + var err error + + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("site")) + it.Site, err = ec.unmarshalNHPEventFCTicketSite2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPEventFCTicketSite(ctx, v) + if err != nil { + return it, err + } case "applications": var err error @@ -22463,6 +22527,13 @@ func (ec *executionContext) _HPFCEventTicket(ctx context.Context, sel ast.Select out.Values[i] = ec._HPFCEventTicket_applicationID(ctx, field, obj) + case "applicationSite": + + out.Values[i] = ec._HPFCEventTicket_applicationSite(ctx, field, obj) + + if out.Values[i] == graphql.Null { + invalids++ + } case "applicationStartDate": out.Values[i] = ec._HPFCEventTicket_applicationStartDate(ctx, field, obj) @@ -25357,6 +25428,16 @@ func (ec *executionContext) marshalNHPElineupMallItemHPElineupMallItemCategory2g return v } +func (ec *executionContext) unmarshalNHPEventFCTicketSite2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPEventFCTicketSite(ctx context.Context, v interface{}) (enums.HPEventFCTicketSite, error) { + var res enums.HPEventFCTicketSite + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNHPEventFCTicketSite2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPEventFCTicketSite(ctx context.Context, sel ast.SelectionSet, v enums.HPEventFCTicketSite) graphql.Marshaler { + return v +} + func (ec *executionContext) unmarshalNHPEventFCTicketStatus2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPEventFCTicketStatus(ctx context.Context, v interface{}) (enums.HPEventFCTicketStatus, error) { var res enums.HPEventFCTicketStatus err := res.UnmarshalGQL(v) @@ -25387,6 +25468,16 @@ func (ec *executionContext) marshalNHPFCEventTicket2ᚖgithubᚗcomᚋyssk22ᚋh return ec._HPFCEventTicket(ctx, sel, v) } +func (ec *executionContext) unmarshalNHPFCEventTicketHPEventFCTicketSite2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPEventFCTicketSite(ctx context.Context, v interface{}) (enums.HPEventFCTicketSite, error) { + var res enums.HPEventFCTicketSite + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNHPFCEventTicketHPEventFCTicketSite2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPEventFCTicketSite(ctx context.Context, sel ast.SelectionSet, v enums.HPEventFCTicketSite) graphql.Marshaler { + return v +} + func (ec *executionContext) unmarshalNHPFCEventTicketHPEventFCTicketStatus2githubᚗcomᚋyssk22ᚋhpappᚋgoᚋserviceᚋschemaᚋenumsᚐHPEventFCTicketStatus(ctx context.Context, v interface{}) (enums.HPEventFCTicketStatus, error) { var res enums.HPEventFCTicketStatus err := res.UnmarshalGQL(v) diff --git a/go/graphql/v3/generated/schema.graphql b/go/graphql/v3/generated/schema.graphql index d8b83a2a..7ff34619 100644 --- a/go/graphql/v3/generated/schema.graphql +++ b/go/graphql/v3/generated/schema.graphql @@ -64,6 +64,7 @@ input HPFollowUpsertParamsInput @goModel(model: "github.com/yssk22/hpapp/go/serv input UpsertEventsParamsInput @goModel(model: "github.com/yssk22/hpapp/go/service/helloproject/upfc.UpsertEventsParams") { fcMemberSha256: String! userId: Int! + site: HPEventFCTicketSite! applications: [EventTicketApplicationInput!] } @@ -79,6 +80,11 @@ enum HPFollowType @goModel(model: "github.com/yssk22/hpapp/go/service/schema/enu unfollow } +enum HPEventFCTicketSite @goModel(model: "github.com/yssk22/hpapp/go/service/schema/enums.HPEventFCTicketSite") { + hello_project + m_line +} + input EventTicketApplicationInput @goModel(model: "github.com/yssk22/hpapp/go/service/helloproject/upfc.EventTicketApplication") { title: String! openAt: Time @@ -94,6 +100,7 @@ input EventTicketApplicationInput @goModel(model: "github.com/yssk22/hpapp/go/se } enum HPEventFCTicketStatus @goModel(model: "github.com/yssk22/hpapp/go/service/schema/enums.HPEventFCTicketStatus") { + before_lottery completed payment_overdue pending_payment diff --git a/go/service/ent/entql.go b/go/service/ent/entql.go index de3acb88..86cb10d1 100644 --- a/go/service/ent/entql.go +++ b/go/service/ent/entql.go @@ -233,6 +233,7 @@ var schemaGraph = func() *sqlgraph.Schema { hpfceventticket.FieldFcMemberSha256: {Type: field.TypeString, Column: hpfceventticket.FieldFcMemberSha256}, hpfceventticket.FieldApplicationTitle: {Type: field.TypeString, Column: hpfceventticket.FieldApplicationTitle}, hpfceventticket.FieldApplicationID: {Type: field.TypeString, Column: hpfceventticket.FieldApplicationID}, + hpfceventticket.FieldApplicationSite: {Type: field.TypeEnum, Column: hpfceventticket.FieldApplicationSite}, hpfceventticket.FieldApplicationStartDate: {Type: field.TypeTime, Column: hpfceventticket.FieldApplicationStartDate}, hpfceventticket.FieldApplicationDueDate: {Type: field.TypeTime, Column: hpfceventticket.FieldApplicationDueDate}, hpfceventticket.FieldPaymentStartDate: {Type: field.TypeTime, Column: hpfceventticket.FieldPaymentStartDate}, @@ -2483,6 +2484,11 @@ func (f *HPFCEventTicketFilter) WhereApplicationID(p entql.StringP) { f.Where(p.Field(hpfceventticket.FieldApplicationID)) } +// WhereApplicationSite applies the entql string predicate on the application_site field. +func (f *HPFCEventTicketFilter) WhereApplicationSite(p entql.StringP) { + f.Where(p.Field(hpfceventticket.FieldApplicationSite)) +} + // WhereApplicationStartDate applies the entql time.Time predicate on the application_start_date field. func (f *HPFCEventTicketFilter) WhereApplicationStartDate(p entql.TimeP) { f.Where(p.Field(hpfceventticket.FieldApplicationStartDate)) diff --git a/go/service/ent/gql_collection.go b/go/service/ent/gql_collection.go index b89a6e88..0a97f314 100644 --- a/go/service/ent/gql_collection.go +++ b/go/service/ent/gql_collection.go @@ -975,6 +975,11 @@ func (het *HPFCEventTicketQuery) collectField(ctx context.Context, opCtx *graphq selectedFields = append(selectedFields, hpfceventticket.FieldApplicationID) fieldSeen[hpfceventticket.FieldApplicationID] = struct{}{} } + case "applicationSite": + if _, ok := fieldSeen[hpfceventticket.FieldApplicationSite]; !ok { + selectedFields = append(selectedFields, hpfceventticket.FieldApplicationSite) + fieldSeen[hpfceventticket.FieldApplicationSite] = struct{}{} + } case "applicationStartDate": if _, ok := fieldSeen[hpfceventticket.FieldApplicationStartDate]; !ok { selectedFields = append(selectedFields, hpfceventticket.FieldApplicationStartDate) diff --git a/go/service/ent/hpfceventticket.go b/go/service/ent/hpfceventticket.go index cca95350..e344740c 100644 --- a/go/service/ent/hpfceventticket.go +++ b/go/service/ent/hpfceventticket.go @@ -34,6 +34,8 @@ type HPFCEventTicket struct { ApplicationTitle string `json:"application_title,omitempty"` // ApplicationID holds the value of the "application_id" field. ApplicationID *string `json:"application_id,omitempty"` + // ApplicationSite holds the value of the "application_site" field. + ApplicationSite enums.HPEventFCTicketSite `json:"application_site,omitempty"` // ApplicationStartDate holds the value of the "application_start_date" field. ApplicationStartDate *time.Time `json:"application_start_date,omitempty"` // ApplicationDueDate holds the value of the "application_due_date" field. @@ -95,7 +97,7 @@ func (*HPFCEventTicket) scanValues(columns []string) ([]any, error) { switch columns[i] { case hpfceventticket.FieldID, hpfceventticket.FieldNum, hpfceventticket.FieldOwnerUserID: values[i] = new(sql.NullInt64) - case hpfceventticket.FieldStatus, hpfceventticket.FieldFcMemberSha256, hpfceventticket.FieldApplicationTitle, hpfceventticket.FieldApplicationID: + case hpfceventticket.FieldStatus, hpfceventticket.FieldFcMemberSha256, hpfceventticket.FieldApplicationTitle, hpfceventticket.FieldApplicationID, hpfceventticket.FieldApplicationSite: values[i] = new(sql.NullString) case hpfceventticket.FieldCreatedAt, hpfceventticket.FieldUpdatedAt, hpfceventticket.FieldApplicationStartDate, hpfceventticket.FieldApplicationDueDate, hpfceventticket.FieldPaymentStartDate, hpfceventticket.FieldPaymentDueDate: values[i] = new(sql.NullTime) @@ -165,6 +167,12 @@ func (het *HPFCEventTicket) assignValues(columns []string, values []any) error { het.ApplicationID = new(string) *het.ApplicationID = value.String } + case hpfceventticket.FieldApplicationSite: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field application_site", values[i]) + } else if value.Valid { + het.ApplicationSite = enums.HPEventFCTicketSite(value.String) + } case hpfceventticket.FieldApplicationStartDate: if value, ok := values[i].(*sql.NullTime); !ok { return fmt.Errorf("unexpected type %T for field application_start_date", values[i]) @@ -275,6 +283,9 @@ func (het *HPFCEventTicket) String() string { builder.WriteString(*v) } builder.WriteString(", ") + builder.WriteString("application_site=") + builder.WriteString(fmt.Sprintf("%v", het.ApplicationSite)) + builder.WriteString(", ") if v := het.ApplicationStartDate; v != nil { builder.WriteString("application_start_date=") builder.WriteString(v.Format(time.ANSIC)) diff --git a/go/service/ent/hpfceventticket/hpfceventticket.go b/go/service/ent/hpfceventticket/hpfceventticket.go index c8985f12..774bbd98 100644 --- a/go/service/ent/hpfceventticket/hpfceventticket.go +++ b/go/service/ent/hpfceventticket/hpfceventticket.go @@ -31,6 +31,8 @@ const ( FieldApplicationTitle = "application_title" // FieldApplicationID holds the string denoting the application_id field in the database. FieldApplicationID = "application_id" + // FieldApplicationSite holds the string denoting the application_site field in the database. + FieldApplicationSite = "application_site" // FieldApplicationStartDate holds the string denoting the application_start_date field in the database. FieldApplicationStartDate = "application_start_date" // FieldApplicationDueDate holds the string denoting the application_due_date field in the database. @@ -73,6 +75,7 @@ var Columns = []string{ FieldFcMemberSha256, FieldApplicationTitle, FieldApplicationID, + FieldApplicationSite, FieldApplicationStartDate, FieldApplicationDueDate, FieldPaymentStartDate, @@ -116,13 +119,25 @@ const DefaultStatus enums.HPEventFCTicketStatus = "Submitted" // StatusValidator is a validator for the "status" field enum values. It is called by the builders before save. func StatusValidator(s enums.HPEventFCTicketStatus) error { switch s { - case "Completed", "PaymentOverdue", "PendingPayment", "Rejected", "Submitted", "Unknown": + case "BeforeLottery", "Completed", "PaymentOverdue", "PendingPayment", "Rejected", "Submitted", "Unknown": return nil default: return fmt.Errorf("hpfceventticket: invalid enum value for status field: %q", s) } } +const DefaultApplicationSite enums.HPEventFCTicketSite = "helloproject" + +// ApplicationSiteValidator is a validator for the "application_site" field enum values. It is called by the builders before save. +func ApplicationSiteValidator(as enums.HPEventFCTicketSite) error { + switch as { + case "helloproject", "mline": + return nil + default: + return fmt.Errorf("hpfceventticket: invalid enum value for application_site field: %q", as) + } +} + // Order defines the ordering method for the HPFCEventTicket queries. type Order func(*sql.Selector) @@ -166,6 +181,11 @@ func ByApplicationID(opts ...sql.OrderTermOption) Order { return sql.OrderByField(FieldApplicationID, opts...).ToFunc() } +// ByApplicationSite orders the results by the application_site field. +func ByApplicationSite(opts ...sql.OrderTermOption) Order { + return sql.OrderByField(FieldApplicationSite, opts...).ToFunc() +} + // ByApplicationStartDate orders the results by the application_start_date field. func ByApplicationStartDate(opts ...sql.OrderTermOption) Order { return sql.OrderByField(FieldApplicationStartDate, opts...).ToFunc() @@ -225,3 +245,10 @@ var ( // enums.HPEventFCTicketStatus must implement graphql.Unmarshaler. _ graphql.Unmarshaler = (*enums.HPEventFCTicketStatus)(nil) ) + +var ( + // enums.HPEventFCTicketSite must implement graphql.Marshaler. + _ graphql.Marshaler = (*enums.HPEventFCTicketSite)(nil) + // enums.HPEventFCTicketSite must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*enums.HPEventFCTicketSite)(nil) +) diff --git a/go/service/ent/hpfceventticket/where.go b/go/service/ent/hpfceventticket/where.go index dcad55d3..1c4a1387 100644 --- a/go/service/ent/hpfceventticket/where.go +++ b/go/service/ent/hpfceventticket/where.go @@ -486,6 +486,36 @@ func ApplicationIDContainsFold(v string) predicate.HPFCEventTicket { return predicate.HPFCEventTicket(sql.FieldContainsFold(FieldApplicationID, v)) } +// ApplicationSiteEQ applies the EQ predicate on the "application_site" field. +func ApplicationSiteEQ(v enums.HPEventFCTicketSite) predicate.HPFCEventTicket { + vc := v + return predicate.HPFCEventTicket(sql.FieldEQ(FieldApplicationSite, vc)) +} + +// ApplicationSiteNEQ applies the NEQ predicate on the "application_site" field. +func ApplicationSiteNEQ(v enums.HPEventFCTicketSite) predicate.HPFCEventTicket { + vc := v + return predicate.HPFCEventTicket(sql.FieldNEQ(FieldApplicationSite, vc)) +} + +// ApplicationSiteIn applies the In predicate on the "application_site" field. +func ApplicationSiteIn(vs ...enums.HPEventFCTicketSite) predicate.HPFCEventTicket { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFCEventTicket(sql.FieldIn(FieldApplicationSite, v...)) +} + +// ApplicationSiteNotIn applies the NotIn predicate on the "application_site" field. +func ApplicationSiteNotIn(vs ...enums.HPEventFCTicketSite) predicate.HPFCEventTicket { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.HPFCEventTicket(sql.FieldNotIn(FieldApplicationSite, v...)) +} + // ApplicationStartDateEQ applies the EQ predicate on the "application_start_date" field. func ApplicationStartDateEQ(v time.Time) predicate.HPFCEventTicket { return predicate.HPFCEventTicket(sql.FieldEQ(FieldApplicationStartDate, v)) diff --git a/go/service/ent/hpfceventticket_create.go b/go/service/ent/hpfceventticket_create.go index 3c008d00..68e20df8 100644 --- a/go/service/ent/hpfceventticket_create.go +++ b/go/service/ent/hpfceventticket_create.go @@ -99,6 +99,20 @@ func (hetc *HPFCEventTicketCreate) SetNillableApplicationID(s *string) *HPFCEven return hetc } +// SetApplicationSite sets the "application_site" field. +func (hetc *HPFCEventTicketCreate) SetApplicationSite(eefts enums.HPEventFCTicketSite) *HPFCEventTicketCreate { + hetc.mutation.SetApplicationSite(eefts) + return hetc +} + +// SetNillableApplicationSite sets the "application_site" field if the given value is not nil. +func (hetc *HPFCEventTicketCreate) SetNillableApplicationSite(eefts *enums.HPEventFCTicketSite) *HPFCEventTicketCreate { + if eefts != nil { + hetc.SetApplicationSite(*eefts) + } + return hetc +} + // SetApplicationStartDate sets the "application_start_date" field. func (hetc *HPFCEventTicketCreate) SetApplicationStartDate(t time.Time) *HPFCEventTicketCreate { hetc.mutation.SetApplicationStartDate(t) @@ -232,6 +246,10 @@ func (hetc *HPFCEventTicketCreate) defaults() error { v := hpfceventticket.DefaultStatus hetc.mutation.SetStatus(v) } + if _, ok := hetc.mutation.ApplicationSite(); !ok { + v := hpfceventticket.DefaultApplicationSite + hetc.mutation.SetApplicationSite(v) + } return nil } @@ -254,6 +272,14 @@ func (hetc *HPFCEventTicketCreate) check() error { if _, ok := hetc.mutation.ApplicationTitle(); !ok { return &ValidationError{Name: "application_title", err: errors.New(`ent: missing required field "HPFCEventTicket.application_title"`)} } + if _, ok := hetc.mutation.ApplicationSite(); !ok { + return &ValidationError{Name: "application_site", err: errors.New(`ent: missing required field "HPFCEventTicket.application_site"`)} + } + if v, ok := hetc.mutation.ApplicationSite(); ok { + if err := hpfceventticket.ApplicationSiteValidator(v); err != nil { + return &ValidationError{Name: "application_site", err: fmt.Errorf(`ent: validator failed for field "HPFCEventTicket.application_site": %w`, err)} + } + } if _, ok := hetc.mutation.OwnerUserID(); !ok { return &ValidationError{Name: "owner_user_id", err: errors.New(`ent: missing required field "HPFCEventTicket.owner_user_id"`)} } @@ -315,6 +341,10 @@ func (hetc *HPFCEventTicketCreate) createSpec() (*HPFCEventTicket, *sqlgraph.Cre _spec.SetField(hpfceventticket.FieldApplicationID, field.TypeString, value) _node.ApplicationID = &value } + if value, ok := hetc.mutation.ApplicationSite(); ok { + _spec.SetField(hpfceventticket.FieldApplicationSite, field.TypeEnum, value) + _node.ApplicationSite = value + } if value, ok := hetc.mutation.ApplicationStartDate(); ok { _spec.SetField(hpfceventticket.FieldApplicationStartDate, field.TypeTime, value) _node.ApplicationStartDate = &value @@ -507,6 +537,18 @@ func (u *HPFCEventTicketUpsert) ClearApplicationID() *HPFCEventTicketUpsert { return u } +// SetApplicationSite sets the "application_site" field. +func (u *HPFCEventTicketUpsert) SetApplicationSite(v enums.HPEventFCTicketSite) *HPFCEventTicketUpsert { + u.Set(hpfceventticket.FieldApplicationSite, v) + return u +} + +// UpdateApplicationSite sets the "application_site" field to the value that was provided on create. +func (u *HPFCEventTicketUpsert) UpdateApplicationSite() *HPFCEventTicketUpsert { + u.SetExcluded(hpfceventticket.FieldApplicationSite) + return u +} + // SetApplicationStartDate sets the "application_start_date" field. func (u *HPFCEventTicketUpsert) SetApplicationStartDate(v time.Time) *HPFCEventTicketUpsert { u.Set(hpfceventticket.FieldApplicationStartDate, v) @@ -741,6 +783,20 @@ func (u *HPFCEventTicketUpsertOne) ClearApplicationID() *HPFCEventTicketUpsertOn }) } +// SetApplicationSite sets the "application_site" field. +func (u *HPFCEventTicketUpsertOne) SetApplicationSite(v enums.HPEventFCTicketSite) *HPFCEventTicketUpsertOne { + return u.Update(func(s *HPFCEventTicketUpsert) { + s.SetApplicationSite(v) + }) +} + +// UpdateApplicationSite sets the "application_site" field to the value that was provided on create. +func (u *HPFCEventTicketUpsertOne) UpdateApplicationSite() *HPFCEventTicketUpsertOne { + return u.Update(func(s *HPFCEventTicketUpsert) { + s.UpdateApplicationSite() + }) +} + // SetApplicationStartDate sets the "application_start_date" field. func (u *HPFCEventTicketUpsertOne) SetApplicationStartDate(v time.Time) *HPFCEventTicketUpsertOne { return u.Update(func(s *HPFCEventTicketUpsert) { @@ -1151,6 +1207,20 @@ func (u *HPFCEventTicketUpsertBulk) ClearApplicationID() *HPFCEventTicketUpsertB }) } +// SetApplicationSite sets the "application_site" field. +func (u *HPFCEventTicketUpsertBulk) SetApplicationSite(v enums.HPEventFCTicketSite) *HPFCEventTicketUpsertBulk { + return u.Update(func(s *HPFCEventTicketUpsert) { + s.SetApplicationSite(v) + }) +} + +// UpdateApplicationSite sets the "application_site" field to the value that was provided on create. +func (u *HPFCEventTicketUpsertBulk) UpdateApplicationSite() *HPFCEventTicketUpsertBulk { + return u.Update(func(s *HPFCEventTicketUpsert) { + s.UpdateApplicationSite() + }) +} + // SetApplicationStartDate sets the "application_start_date" field. func (u *HPFCEventTicketUpsertBulk) SetApplicationStartDate(v time.Time) *HPFCEventTicketUpsertBulk { return u.Update(func(s *HPFCEventTicketUpsert) { diff --git a/go/service/ent/hpfceventticket_update.go b/go/service/ent/hpfceventticket_update.go index c5ac9e01..31746259 100644 --- a/go/service/ent/hpfceventticket_update.go +++ b/go/service/ent/hpfceventticket_update.go @@ -110,6 +110,20 @@ func (hetu *HPFCEventTicketUpdate) ClearApplicationID() *HPFCEventTicketUpdate { return hetu } +// SetApplicationSite sets the "application_site" field. +func (hetu *HPFCEventTicketUpdate) SetApplicationSite(eefts enums.HPEventFCTicketSite) *HPFCEventTicketUpdate { + hetu.mutation.SetApplicationSite(eefts) + return hetu +} + +// SetNillableApplicationSite sets the "application_site" field if the given value is not nil. +func (hetu *HPFCEventTicketUpdate) SetNillableApplicationSite(eefts *enums.HPEventFCTicketSite) *HPFCEventTicketUpdate { + if eefts != nil { + hetu.SetApplicationSite(*eefts) + } + return hetu +} + // SetApplicationStartDate sets the "application_start_date" field. func (hetu *HPFCEventTicketUpdate) SetApplicationStartDate(t time.Time) *HPFCEventTicketUpdate { hetu.mutation.SetApplicationStartDate(t) @@ -277,6 +291,11 @@ func (hetu *HPFCEventTicketUpdate) check() error { return &ValidationError{Name: "status", err: fmt.Errorf(`ent: validator failed for field "HPFCEventTicket.status": %w`, err)} } } + if v, ok := hetu.mutation.ApplicationSite(); ok { + if err := hpfceventticket.ApplicationSiteValidator(v); err != nil { + return &ValidationError{Name: "application_site", err: fmt.Errorf(`ent: validator failed for field "HPFCEventTicket.application_site": %w`, err)} + } + } if _, ok := hetu.mutation.UserID(); hetu.mutation.UserCleared() && !ok { return errors.New(`ent: clearing a required unique edge "HPFCEventTicket.user"`) } @@ -325,6 +344,9 @@ func (hetu *HPFCEventTicketUpdate) sqlSave(ctx context.Context) (n int, err erro if hetu.mutation.ApplicationIDCleared() { _spec.ClearField(hpfceventticket.FieldApplicationID, field.TypeString) } + if value, ok := hetu.mutation.ApplicationSite(); ok { + _spec.SetField(hpfceventticket.FieldApplicationSite, field.TypeEnum, value) + } if value, ok := hetu.mutation.ApplicationStartDate(); ok { _spec.SetField(hpfceventticket.FieldApplicationStartDate, field.TypeTime, value) } @@ -506,6 +528,20 @@ func (hetuo *HPFCEventTicketUpdateOne) ClearApplicationID() *HPFCEventTicketUpda return hetuo } +// SetApplicationSite sets the "application_site" field. +func (hetuo *HPFCEventTicketUpdateOne) SetApplicationSite(eefts enums.HPEventFCTicketSite) *HPFCEventTicketUpdateOne { + hetuo.mutation.SetApplicationSite(eefts) + return hetuo +} + +// SetNillableApplicationSite sets the "application_site" field if the given value is not nil. +func (hetuo *HPFCEventTicketUpdateOne) SetNillableApplicationSite(eefts *enums.HPEventFCTicketSite) *HPFCEventTicketUpdateOne { + if eefts != nil { + hetuo.SetApplicationSite(*eefts) + } + return hetuo +} + // SetApplicationStartDate sets the "application_start_date" field. func (hetuo *HPFCEventTicketUpdateOne) SetApplicationStartDate(t time.Time) *HPFCEventTicketUpdateOne { hetuo.mutation.SetApplicationStartDate(t) @@ -686,6 +722,11 @@ func (hetuo *HPFCEventTicketUpdateOne) check() error { return &ValidationError{Name: "status", err: fmt.Errorf(`ent: validator failed for field "HPFCEventTicket.status": %w`, err)} } } + if v, ok := hetuo.mutation.ApplicationSite(); ok { + if err := hpfceventticket.ApplicationSiteValidator(v); err != nil { + return &ValidationError{Name: "application_site", err: fmt.Errorf(`ent: validator failed for field "HPFCEventTicket.application_site": %w`, err)} + } + } if _, ok := hetuo.mutation.UserID(); hetuo.mutation.UserCleared() && !ok { return errors.New(`ent: clearing a required unique edge "HPFCEventTicket.user"`) } @@ -751,6 +792,9 @@ func (hetuo *HPFCEventTicketUpdateOne) sqlSave(ctx context.Context) (_node *HPFC if hetuo.mutation.ApplicationIDCleared() { _spec.ClearField(hpfceventticket.FieldApplicationID, field.TypeString) } + if value, ok := hetuo.mutation.ApplicationSite(); ok { + _spec.SetField(hpfceventticket.FieldApplicationSite, field.TypeEnum, value) + } if value, ok := hetuo.mutation.ApplicationStartDate(); ok { _spec.SetField(hpfceventticket.FieldApplicationStartDate, field.TypeTime, value) } diff --git a/go/service/ent/internal/schema.go b/go/service/ent/internal/schema.go index 4faef55a..230d93f8 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}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"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":"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":"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":[{"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}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":1}},{"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}}],"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}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":1}},{"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}}],"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}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"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":["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}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":1}},{"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}},{"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}}],"indexes":[{"unique":true,"fields":["permalink"]},{"fields":["order_end_at"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":1}]},{"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}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"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}},{"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":[{"unique":true,"fields":["key"]}],"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}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"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.HPEventFCTicketStatus","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPEventFCTicketStatus","Ident":"enums.HPEventFCTicketStatus","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":"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_start_date","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"nillable":true,"optional":true,"position":{"Index":5,"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":6,"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":7,"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":8,"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":9,"MixedIn":false,"MixinIndex":0},"annotations":{"EntGQL":{"Skip":63}}}],"indexes":[{"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}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"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":["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}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"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"}],"default":true,"default_value":"follow_with_notification","default_kind":24,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}}],"indexes":[{"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}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":1}},{"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}}],"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}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":1}},{"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}}],"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}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"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}}}],"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}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"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":[{"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}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"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"}],"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}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"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":[{"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}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"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":[{"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}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"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":"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":"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":[{"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}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":1}},{"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}}],"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}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":1}},{"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}}],"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}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"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":["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}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":1}},{"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}},{"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}}],"indexes":[{"unique":true,"fields":["permalink"]},{"fields":["order_end_at"]}],"hooks":[{"Index":0,"MixedIn":true,"MixinIndex":1}]},{"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}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"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}},{"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":[{"unique":true,"fields":["key"]}],"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}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"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.HPEventFCTicketStatus","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPEventFCTicketStatus","Ident":"enums.HPEventFCTicketStatus","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.HPEventFCTicketSite","PkgPath":"github.com/yssk22/hpapp/go/service/schema/enums","PkgName":"enums","Nillable":false,"RType":{"Name":"HPEventFCTicketSite","Ident":"enums.HPEventFCTicketSite","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":[{"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}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"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":["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}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"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"}],"default":true,"default_value":"follow_with_notification","default_kind":24,"position":{"Index":0,"MixedIn":false,"MixinIndex":0}}],"indexes":[{"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}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":1}},{"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}}],"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}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":1}},{"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}}],"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}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"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}}}],"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}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"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":[{"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}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"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"}],"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}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"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":[{"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}},{"name":"updated_at","type":{"Type":2,"Ident":"","PkgPath":"time","PkgName":"","Nillable":false,"RType":null},"optional":true,"position":{"Index":1,"MixedIn":true,"MixinIndex":0}},{"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":[{"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 71d52bea..16b91b9b 100644 --- a/go/service/ent/migrate/schema.go +++ b/go/service/ent/migrate/schema.go @@ -277,10 +277,11 @@ var ( {Name: "created_at", Type: field.TypeTime, Nullable: true}, {Name: "updated_at", Type: field.TypeTime, Nullable: true}, {Name: "num", Type: field.TypeInt}, - {Name: "status", Type: field.TypeEnum, Enums: []string{"Completed", "PaymentOverdue", "PendingPayment", "Rejected", "Submitted", "Unknown"}, Default: "Submitted"}, + {Name: "status", Type: field.TypeEnum, Enums: []string{"BeforeLottery", "Completed", "PaymentOverdue", "PendingPayment", "Rejected", "Submitted", "Unknown"}, Default: "Submitted"}, {Name: "fc_member_sha256", Type: field.TypeString}, {Name: "application_title", Type: field.TypeString}, {Name: "application_id", Type: field.TypeString, Nullable: true}, + {Name: "application_site", Type: field.TypeEnum, Enums: []string{"helloproject", "mline"}, Default: "helloproject"}, {Name: "application_start_date", Type: field.TypeTime, Nullable: true}, {Name: "application_due_date", Type: field.TypeTime, Nullable: true}, {Name: "payment_start_date", Type: field.TypeTime, Nullable: true}, @@ -296,13 +297,13 @@ var ( ForeignKeys: []*schema.ForeignKey{ { Symbol: "hpfc_event_tickets_hp_events_hpfc_event_tickets", - Columns: []*schema.Column{HpfcEventTicketsColumns[12]}, + Columns: []*schema.Column{HpfcEventTicketsColumns[13]}, RefColumns: []*schema.Column{HpEventsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "hpfc_event_tickets_users_hpfc_event_tickets", - Columns: []*schema.Column{HpfcEventTicketsColumns[13]}, + Columns: []*schema.Column{HpfcEventTicketsColumns[14]}, RefColumns: []*schema.Column{UsersColumns[0]}, OnDelete: schema.Cascade, }, @@ -311,7 +312,7 @@ var ( { Name: "hpfceventticket_user_hpfc_event_tickets_hp_event_hpfc_event_tickets", Unique: false, - Columns: []*schema.Column{HpfcEventTicketsColumns[13], HpfcEventTicketsColumns[12]}, + Columns: []*schema.Column{HpfcEventTicketsColumns[14], HpfcEventTicketsColumns[13]}, }, }, } diff --git a/go/service/ent/mutation.go b/go/service/ent/mutation.go index b5540589..204a93c7 100644 --- a/go/service/ent/mutation.go +++ b/go/service/ent/mutation.go @@ -10776,6 +10776,7 @@ type HPFCEventTicketMutation struct { fc_member_sha256 *string application_title *string application_id *string + application_site *enums.HPEventFCTicketSite application_start_date *time.Time application_due_date *time.Time payment_start_date *time.Time @@ -11199,6 +11200,42 @@ func (m *HPFCEventTicketMutation) ResetApplicationID() { delete(m.clearedFields, hpfceventticket.FieldApplicationID) } +// SetApplicationSite sets the "application_site" field. +func (m *HPFCEventTicketMutation) SetApplicationSite(eefts enums.HPEventFCTicketSite) { + m.application_site = &eefts +} + +// ApplicationSite returns the value of the "application_site" field in the mutation. +func (m *HPFCEventTicketMutation) ApplicationSite() (r enums.HPEventFCTicketSite, exists bool) { + v := m.application_site + if v == nil { + return + } + return *v, true +} + +// OldApplicationSite returns the old "application_site" field's value of the HPFCEventTicket entity. +// If the HPFCEventTicket 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 *HPFCEventTicketMutation) OldApplicationSite(ctx context.Context) (v enums.HPEventFCTicketSite, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldApplicationSite is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldApplicationSite requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldApplicationSite: %w", err) + } + return oldValue.ApplicationSite, nil +} + +// ResetApplicationSite resets all changes to the "application_site" field. +func (m *HPFCEventTicketMutation) ResetApplicationSite() { + m.application_site = nil +} + // SetApplicationStartDate sets the "application_start_date" field. func (m *HPFCEventTicketMutation) SetApplicationStartDate(t time.Time) { m.application_start_date = &t @@ -11543,7 +11580,7 @@ func (m *HPFCEventTicketMutation) Type() string { // order to get all numeric fields that were incremented/decremented, call // AddedFields(). func (m *HPFCEventTicketMutation) Fields() []string { - fields := make([]string, 0, 12) + fields := make([]string, 0, 13) if m.created_at != nil { fields = append(fields, hpfceventticket.FieldCreatedAt) } @@ -11565,6 +11602,9 @@ func (m *HPFCEventTicketMutation) Fields() []string { if m.application_id != nil { fields = append(fields, hpfceventticket.FieldApplicationID) } + if m.application_site != nil { + fields = append(fields, hpfceventticket.FieldApplicationSite) + } if m.application_start_date != nil { fields = append(fields, hpfceventticket.FieldApplicationStartDate) } @@ -11602,6 +11642,8 @@ func (m *HPFCEventTicketMutation) Field(name string) (ent.Value, bool) { return m.ApplicationTitle() case hpfceventticket.FieldApplicationID: return m.ApplicationID() + case hpfceventticket.FieldApplicationSite: + return m.ApplicationSite() case hpfceventticket.FieldApplicationStartDate: return m.ApplicationStartDate() case hpfceventticket.FieldApplicationDueDate: @@ -11635,6 +11677,8 @@ func (m *HPFCEventTicketMutation) OldField(ctx context.Context, name string) (en return m.OldApplicationTitle(ctx) case hpfceventticket.FieldApplicationID: return m.OldApplicationID(ctx) + case hpfceventticket.FieldApplicationSite: + return m.OldApplicationSite(ctx) case hpfceventticket.FieldApplicationStartDate: return m.OldApplicationStartDate(ctx) case hpfceventticket.FieldApplicationDueDate: @@ -11703,6 +11747,13 @@ func (m *HPFCEventTicketMutation) SetField(name string, value ent.Value) error { } m.SetApplicationID(v) return nil + case hpfceventticket.FieldApplicationSite: + v, ok := value.(enums.HPEventFCTicketSite) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetApplicationSite(v) + return nil case hpfceventticket.FieldApplicationStartDate: v, ok := value.(time.Time) if !ok { @@ -11868,6 +11919,9 @@ func (m *HPFCEventTicketMutation) ResetField(name string) error { case hpfceventticket.FieldApplicationID: m.ResetApplicationID() return nil + case hpfceventticket.FieldApplicationSite: + m.ResetApplicationSite() + return nil case hpfceventticket.FieldApplicationStartDate: m.ResetApplicationStartDate() return nil diff --git a/go/service/helloproject/upfc/mutation.go b/go/service/helloproject/upfc/mutation.go index e9d400eb..ff2c6d3d 100644 --- a/go/service/helloproject/upfc/mutation.go +++ b/go/service/helloproject/upfc/mutation.go @@ -20,6 +20,7 @@ import ( type UpsertEventsParams struct { FCMemberSha256 string UserId int + Site enums.HPEventFCTicketSite Applications []EventTicketApplication } type EventTicketApplication struct { @@ -62,6 +63,7 @@ func UpsertEventsAndApplications(ctx context.Context, params UpsertEventsParams) ApplicationTitle: app.Title, Num: app.Num, Status: app.Status, + ApplicationSite: params.Site, ApplicationID: app.ApplicationID, ApplicationStartDate: app.ApplicationStartDate, ApplicationDueDate: app.ApplicationDueDate, @@ -128,6 +130,7 @@ type upsertFCEventTicketParams struct { Num int Status enums.HPEventFCTicketStatus ApplicationID *string + ApplicationSite enums.HPEventFCTicketSite ApplicationStartDate *time.Time ApplicationDueDate *time.Time PaymentStartDate *time.Time @@ -199,6 +202,7 @@ func upsertFCEventTicket(ctx context.Context, params upsertFCEventTicketParams) SetEventID(params.EventId). SetFcMemberSha256(params.MemberSha256). SetApplicationTitle(params.ApplicationTitle). + SetApplicationSite(params.ApplicationSite). SetNillableApplicationID(params.ApplicationID). SetNum(params.Num). SetStatus(params.Status). diff --git a/go/service/helloproject/upfc/mutation_test.go b/go/service/helloproject/upfc/mutation_test.go index 0afac9cb..7270e4de 100644 --- a/go/service/helloproject/upfc/mutation_test.go +++ b/go/service/helloproject/upfc/mutation_test.go @@ -31,6 +31,7 @@ func TestUPFCMutation(t *testing.T) { _, err := UpsertEventsAndApplications(ctx, UpsertEventsParams{ FCMemberSha256: "dummysha256", UserId: uid, + Site: enums.HPEventFCTicketSiteHelloProject, Applications: []EventTicketApplication{ { Title: "Juice=Juice 入江里咲バースデーイベント2022", @@ -50,11 +51,13 @@ func TestUPFCMutation(t *testing.T) { a.Equals("LANDMARK HALL", event.Venue) a.Equals(1, len(event.Edges.HpfcEventTickets)) a.Equals(enums.HPEventFCTicketStatusSubmitted, event.Edges.HpfcEventTickets[0].Status) + a.Equals(enums.HPEventFCTicketSiteHelloProject, event.Edges.HpfcEventTickets[0].ApplicationSite) // now the application is rejected so trying to submit 2次受付 _, err = UpsertEventsAndApplications(ctx, UpsertEventsParams{ FCMemberSha256: "dummysha256", UserId: uid, + Site: enums.HPEventFCTicketSiteHelloProject, Applications: []EventTicketApplication{ { Title: "Juice=Juice 入江里咲バースデーイベント2022", @@ -88,6 +91,7 @@ func TestUPFCMutation(t *testing.T) { _, err = UpsertEventsAndApplications(ctx, UpsertEventsParams{ FCMemberSha256: "dummysha256", UserId: uid, + Site: enums.HPEventFCTicketSiteHelloProject, Applications: []EventTicketApplication{ { Title: "Juice=Juice 入江里咲バースデーイベント2022", @@ -121,6 +125,7 @@ func TestUPFCMutation(t *testing.T) { _, err = UpsertEventsAndApplications(ctx, UpsertEventsParams{ FCMemberSha256: "dummysha256", UserId: uid, + Site: enums.HPEventFCTicketSiteHelloProject, Applications: []EventTicketApplication{ { Title: "Juice=Juice 入江里咲バースデーイベント2022", diff --git a/go/service/helloproject/upfc/upfc_test.go b/go/service/helloproject/upfc/upfc_test.go index adb7af8d..c062cedb 100644 --- a/go/service/helloproject/upfc/upfc_test.go +++ b/go/service/helloproject/upfc/upfc_test.go @@ -58,6 +58,7 @@ func TestUPFC(t *testing.T) { EventId: event1.ID, UserId: appuser.EntID(user1), MemberSha256: "fcmemberid", + ApplicationSite: enums.HPEventFCTicketSiteHelloProject, ApplicationTitle: "モーニング娘。'21 コンサートツアー秋", ApplicationID: object.Nullable("mm21-1"), Num: 2, @@ -69,6 +70,7 @@ func TestUPFC(t *testing.T) { EventId: event2.ID, UserId: appuser.EntID(user1), MemberSha256: "fcmemberid", + ApplicationSite: enums.HPEventFCTicketSiteHelloProject, ApplicationTitle: "モーニング娘。'21 コンサートツアー秋", ApplicationID: object.Nullable("mm21-2"), Num: 2, @@ -81,6 +83,7 @@ func TestUPFC(t *testing.T) { EventId: event1.ID, UserId: appuser.EntID(user2), MemberSha256: "fcmemberid2", + ApplicationSite: enums.HPEventFCTicketSiteHelloProject, ApplicationTitle: "モーニング娘。'21 コンサートツアー秋", ApplicationID: object.Nullable("mm21-1"), Num: 2, @@ -92,6 +95,7 @@ func TestUPFC(t *testing.T) { EventId: event2.ID, UserId: appuser.EntID(user2), MemberSha256: "fcmemberid2", + ApplicationSite: enums.HPEventFCTicketSiteHelloProject, ApplicationTitle: "モーニング娘。'21 コンサートツアー秋 先々行", ApplicationID: object.Nullable("mm21-2"), Num: 2, @@ -104,6 +108,7 @@ func TestUPFC(t *testing.T) { EventId: event1.ID, UserId: appuser.EntID(user3), MemberSha256: "fcmemberid3", + ApplicationSite: enums.HPEventFCTicketSiteHelloProject, ApplicationTitle: "モーニング娘。'21 コンサートツアー秋", ApplicationID: object.Nullable("mm21-1"), Num: 2, @@ -210,6 +215,7 @@ func TestUPFC(t *testing.T) { assert.X(upsertFCEventTicket(appuser.WithUser(ctx, user1), upsertFCEventTicketParams{ EventId: event1.ID, UserId: appuser.EntID(user1), + ApplicationSite: enums.HPEventFCTicketSiteHelloProject, MemberSha256: "fcmemberid", ApplicationTitle: "モーニング娘。'21 コンサートツアー秋", ApplicationID: object.Nullable("mm21-1"), @@ -221,6 +227,7 @@ func TestUPFC(t *testing.T) { assert.X(upsertFCEventTicket(appuser.WithUser(ctx, user2), upsertFCEventTicketParams{ EventId: event1.ID, UserId: appuser.EntID(user2), + ApplicationSite: enums.HPEventFCTicketSiteHelloProject, MemberSha256: "fcmemberid2", ApplicationTitle: "モーニング娘。'21 コンサートツアー秋", ApplicationID: object.Nullable("mm21-1"), @@ -232,6 +239,7 @@ func TestUPFC(t *testing.T) { assert.X(upsertFCEventTicket(appuser.WithUser(ctx, user3), upsertFCEventTicketParams{ EventId: event1.ID, UserId: appuser.EntID(user3), + ApplicationSite: enums.HPEventFCTicketSiteHelloProject, MemberSha256: "fcmemberid3", ApplicationTitle: "モーニング娘。'21 コンサートツアー秋", ApplicationID: object.Nullable("mm21-1"), diff --git a/go/service/schema/enums/entgo_enum.go b/go/service/schema/enums/entgo_enum.go index 5b7f0c33..0361a56c 100644 --- a/go/service/schema/enums/entgo_enum.go +++ b/go/service/schema/enums/entgo_enum.go @@ -103,9 +103,21 @@ func (HPElineupMallItemCategory) Values() (types []string) { return } +func (HPEventFCTicketSite) Values() (types []string) { + + for _, r := range []HPEventFCTicketSite{ + HPEventFCTicketSiteHelloProject, + HPEventFCTicketSiteMLine, + } { + types = append(types, string(r)) + } + return +} + func (HPEventFCTicketStatus) Values() (types []string) { for _, r := range []HPEventFCTicketStatus{ + HPEventFCTicketStatusBeforeLottery, HPEventFCTicketStatusCompleted, HPEventFCTicketStatusPaymentOverdue, HPEventFCTicketStatusPendingPayment, diff --git a/go/service/schema/enums/gqlgen_enum.go b/go/service/schema/enums/gqlgen_enum.go index e711e497..cfcd2463 100644 --- a/go/service/schema/enums/gqlgen_enum.go +++ b/go/service/schema/enums/gqlgen_enum.go @@ -260,8 +260,29 @@ func (e *HPElineupMallItemCategory) UnmarshalGQL(v interface{}) error { return nil } +func (e HPEventFCTicketSite) MarshalGQL(w io.Writer) { + switch e { + case HPEventFCTicketSiteHelloProject: + fmt.Fprint(w, strconv.Quote("hello_project")) + case HPEventFCTicketSiteMLine: + fmt.Fprint(w, strconv.Quote("m_line")) + } +} + +func (e *HPEventFCTicketSite) UnmarshalGQL(v interface{}) error { + switch v.(string) { + case "hello_project": + *e = HPEventFCTicketSiteHelloProject + case "m_line": + *e = HPEventFCTicketSiteMLine + } + return nil +} + func (e HPEventFCTicketStatus) MarshalGQL(w io.Writer) { switch e { + case HPEventFCTicketStatusBeforeLottery: + fmt.Fprint(w, strconv.Quote("before_lottery")) case HPEventFCTicketStatusCompleted: fmt.Fprint(w, strconv.Quote("completed")) case HPEventFCTicketStatusPaymentOverdue: @@ -279,6 +300,8 @@ func (e HPEventFCTicketStatus) MarshalGQL(w io.Writer) { func (e *HPEventFCTicketStatus) UnmarshalGQL(v interface{}) error { switch v.(string) { + case "before_lottery": + *e = HPEventFCTicketStatusBeforeLottery case "completed": *e = HPEventFCTicketStatusCompleted case "payment_overdue": diff --git a/go/service/schema/enums/hpeventfcticketsite.go b/go/service/schema/enums/hpeventfcticketsite.go new file mode 100644 index 00000000..8843c305 --- /dev/null +++ b/go/service/schema/enums/hpeventfcticketsite.go @@ -0,0 +1,8 @@ +package enums + +type HPEventFCTicketSite string + +const ( + HPEventFCTicketSiteHelloProject HPEventFCTicketSite = "helloproject" + HPEventFCTicketSiteMLine HPEventFCTicketSite = "mline" +) diff --git a/go/service/schema/enums/hpeventfcticketstatus.go b/go/service/schema/enums/hpeventfcticketstatus.go index 0bc3da0e..aa676f01 100644 --- a/go/service/schema/enums/hpeventfcticketstatus.go +++ b/go/service/schema/enums/hpeventfcticketstatus.go @@ -5,6 +5,7 @@ type HPEventFCTicketStatus string const ( HPEventFCTicketStatusUnknown HPEventFCTicketStatus = "Unknown" HPEventFCTicketStatusSubmitted HPEventFCTicketStatus = "Submitted" + HPEventFCTicketStatusBeforeLottery HPEventFCTicketStatus = "BeforeLottery" HPEventFCTicketStatusPendingPayment HPEventFCTicketStatus = "PendingPayment" HPEventFCTicketStatusCompleted HPEventFCTicketStatus = "Completed" HPEventFCTicketStatusRejected HPEventFCTicketStatus = "Rejected" diff --git a/go/service/schema/hpfceventticket.go b/go/service/schema/hpfceventticket.go index ec23d206..ee0504a0 100644 --- a/go/service/schema/hpfceventticket.go +++ b/go/service/schema/hpfceventticket.go @@ -46,6 +46,11 @@ func (HPFCEventTicket) Fields() []ent.Field { // and normalization didn't work well. field.String("application_title"), field.String("application_id").Nillable().Optional(), + field.Enum("application_site"). + GoType(enums.HPEventFCTicketSiteHelloProject). + Default(string(enums.HPEventFCTicketSiteHelloProject)), + + // field.String("application_id").Nillable().Optional(), field.Time("application_start_date").Nillable().Optional(), field.Time("application_due_date").Nillable().Optional(), field.Time("payment_start_date").Nillable().Optional(),