|
@@ -14780,6 +14780,7 @@ type SopNodeMutation struct {
|
|
appendaction_message []custom_types.Action
|
|
appendaction_message []custom_types.Action
|
|
action_label *[]uint64
|
|
action_label *[]uint64
|
|
appendaction_label []uint64
|
|
appendaction_label []uint64
|
|
|
|
+ action_forward **custom_types.ActionForward
|
|
clearedFields map[string]struct{}
|
|
clearedFields map[string]struct{}
|
|
sop_stage *uint64
|
|
sop_stage *uint64
|
|
clearedsop_stage bool
|
|
clearedsop_stage bool
|
|
@@ -15521,6 +15522,55 @@ func (m *SopNodeMutation) ResetActionLabel() {
|
|
delete(m.clearedFields, sopnode.FieldActionLabel)
|
|
delete(m.clearedFields, sopnode.FieldActionLabel)
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+// SetActionForward sets the "action_forward" field.
|
|
|
|
+func (m *SopNodeMutation) SetActionForward(ctf *custom_types.ActionForward) {
|
|
|
|
+ m.action_forward = &ctf
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// ActionForward returns the value of the "action_forward" field in the mutation.
|
|
|
|
+func (m *SopNodeMutation) ActionForward() (r *custom_types.ActionForward, exists bool) {
|
|
|
|
+ v := m.action_forward
|
|
|
|
+ if v == nil {
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ return *v, true
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// OldActionForward returns the old "action_forward" field's value of the SopNode entity.
|
|
|
|
+// If the SopNode 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 *SopNodeMutation) OldActionForward(ctx context.Context) (v *custom_types.ActionForward, err error) {
|
|
|
|
+ if !m.op.Is(OpUpdateOne) {
|
|
|
|
+ return v, errors.New("OldActionForward is only allowed on UpdateOne operations")
|
|
|
|
+ }
|
|
|
|
+ if m.id == nil || m.oldValue == nil {
|
|
|
|
+ return v, errors.New("OldActionForward requires an ID field in the mutation")
|
|
|
|
+ }
|
|
|
|
+ oldValue, err := m.oldValue(ctx)
|
|
|
|
+ if err != nil {
|
|
|
|
+ return v, fmt.Errorf("querying old value for OldActionForward: %w", err)
|
|
|
|
+ }
|
|
|
|
+ return oldValue.ActionForward, nil
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// ClearActionForward clears the value of the "action_forward" field.
|
|
|
|
+func (m *SopNodeMutation) ClearActionForward() {
|
|
|
|
+ m.action_forward = nil
|
|
|
|
+ m.clearedFields[sopnode.FieldActionForward] = struct{}{}
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// ActionForwardCleared returns if the "action_forward" field was cleared in this mutation.
|
|
|
|
+func (m *SopNodeMutation) ActionForwardCleared() bool {
|
|
|
|
+ _, ok := m.clearedFields[sopnode.FieldActionForward]
|
|
|
|
+ return ok
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// ResetActionForward resets all changes to the "action_forward" field.
|
|
|
|
+func (m *SopNodeMutation) ResetActionForward() {
|
|
|
|
+ m.action_forward = nil
|
|
|
|
+ delete(m.clearedFields, sopnode.FieldActionForward)
|
|
|
|
+}
|
|
|
|
+
|
|
// SetSopStageID sets the "sop_stage" edge to the SopStage entity by id.
|
|
// SetSopStageID sets the "sop_stage" edge to the SopStage entity by id.
|
|
func (m *SopNodeMutation) SetSopStageID(id uint64) {
|
|
func (m *SopNodeMutation) SetSopStageID(id uint64) {
|
|
m.sop_stage = &id
|
|
m.sop_stage = &id
|
|
@@ -15649,7 +15699,7 @@ func (m *SopNodeMutation) Type() string {
|
|
// order to get all numeric fields that were incremented/decremented, call
|
|
// order to get all numeric fields that were incremented/decremented, call
|
|
// AddedFields().
|
|
// AddedFields().
|
|
func (m *SopNodeMutation) Fields() []string {
|
|
func (m *SopNodeMutation) Fields() []string {
|
|
- fields := make([]string, 0, 12)
|
|
|
|
|
|
+ fields := make([]string, 0, 13)
|
|
if m.created_at != nil {
|
|
if m.created_at != nil {
|
|
fields = append(fields, sopnode.FieldCreatedAt)
|
|
fields = append(fields, sopnode.FieldCreatedAt)
|
|
}
|
|
}
|
|
@@ -15686,6 +15736,9 @@ func (m *SopNodeMutation) Fields() []string {
|
|
if m.action_label != nil {
|
|
if m.action_label != nil {
|
|
fields = append(fields, sopnode.FieldActionLabel)
|
|
fields = append(fields, sopnode.FieldActionLabel)
|
|
}
|
|
}
|
|
|
|
+ if m.action_forward != nil {
|
|
|
|
+ fields = append(fields, sopnode.FieldActionForward)
|
|
|
|
+ }
|
|
return fields
|
|
return fields
|
|
}
|
|
}
|
|
|
|
|
|
@@ -15718,6 +15771,8 @@ func (m *SopNodeMutation) Field(name string) (ent.Value, bool) {
|
|
return m.ActionMessage()
|
|
return m.ActionMessage()
|
|
case sopnode.FieldActionLabel:
|
|
case sopnode.FieldActionLabel:
|
|
return m.ActionLabel()
|
|
return m.ActionLabel()
|
|
|
|
+ case sopnode.FieldActionForward:
|
|
|
|
+ return m.ActionForward()
|
|
}
|
|
}
|
|
return nil, false
|
|
return nil, false
|
|
}
|
|
}
|
|
@@ -15751,6 +15806,8 @@ func (m *SopNodeMutation) OldField(ctx context.Context, name string) (ent.Value,
|
|
return m.OldActionMessage(ctx)
|
|
return m.OldActionMessage(ctx)
|
|
case sopnode.FieldActionLabel:
|
|
case sopnode.FieldActionLabel:
|
|
return m.OldActionLabel(ctx)
|
|
return m.OldActionLabel(ctx)
|
|
|
|
+ case sopnode.FieldActionForward:
|
|
|
|
+ return m.OldActionForward(ctx)
|
|
}
|
|
}
|
|
return nil, fmt.Errorf("unknown SopNode field %s", name)
|
|
return nil, fmt.Errorf("unknown SopNode field %s", name)
|
|
}
|
|
}
|
|
@@ -15844,6 +15901,13 @@ func (m *SopNodeMutation) SetField(name string, value ent.Value) error {
|
|
}
|
|
}
|
|
m.SetActionLabel(v)
|
|
m.SetActionLabel(v)
|
|
return nil
|
|
return nil
|
|
|
|
+ case sopnode.FieldActionForward:
|
|
|
|
+ v, ok := value.(*custom_types.ActionForward)
|
|
|
|
+ if !ok {
|
|
|
|
+ return fmt.Errorf("unexpected type %T for field %s", value, name)
|
|
|
|
+ }
|
|
|
|
+ m.SetActionForward(v)
|
|
|
|
+ return nil
|
|
}
|
|
}
|
|
return fmt.Errorf("unknown SopNode field %s", name)
|
|
return fmt.Errorf("unknown SopNode field %s", name)
|
|
}
|
|
}
|
|
@@ -15940,6 +16004,9 @@ func (m *SopNodeMutation) ClearedFields() []string {
|
|
if m.FieldCleared(sopnode.FieldActionLabel) {
|
|
if m.FieldCleared(sopnode.FieldActionLabel) {
|
|
fields = append(fields, sopnode.FieldActionLabel)
|
|
fields = append(fields, sopnode.FieldActionLabel)
|
|
}
|
|
}
|
|
|
|
+ if m.FieldCleared(sopnode.FieldActionForward) {
|
|
|
|
+ fields = append(fields, sopnode.FieldActionForward)
|
|
|
|
+ }
|
|
return fields
|
|
return fields
|
|
}
|
|
}
|
|
|
|
|
|
@@ -15969,6 +16036,9 @@ func (m *SopNodeMutation) ClearField(name string) error {
|
|
case sopnode.FieldActionLabel:
|
|
case sopnode.FieldActionLabel:
|
|
m.ClearActionLabel()
|
|
m.ClearActionLabel()
|
|
return nil
|
|
return nil
|
|
|
|
+ case sopnode.FieldActionForward:
|
|
|
|
+ m.ClearActionForward()
|
|
|
|
+ return nil
|
|
}
|
|
}
|
|
return fmt.Errorf("unknown SopNode nullable field %s", name)
|
|
return fmt.Errorf("unknown SopNode nullable field %s", name)
|
|
}
|
|
}
|
|
@@ -16013,6 +16083,9 @@ func (m *SopNodeMutation) ResetField(name string) error {
|
|
case sopnode.FieldActionLabel:
|
|
case sopnode.FieldActionLabel:
|
|
m.ResetActionLabel()
|
|
m.ResetActionLabel()
|
|
return nil
|
|
return nil
|
|
|
|
+ case sopnode.FieldActionForward:
|
|
|
|
+ m.ResetActionForward()
|
|
|
|
+ return nil
|
|
}
|
|
}
|
|
return fmt.Errorf("unknown SopNode field %s", name)
|
|
return fmt.Errorf("unknown SopNode field %s", name)
|
|
}
|
|
}
|
|
@@ -16141,6 +16214,7 @@ type SopStageMutation struct {
|
|
appendaction_message []custom_types.Action
|
|
appendaction_message []custom_types.Action
|
|
action_label *[]uint64
|
|
action_label *[]uint64
|
|
appendaction_label []uint64
|
|
appendaction_label []uint64
|
|
|
|
+ action_forward **custom_types.ActionForward
|
|
index_sort *int
|
|
index_sort *int
|
|
addindex_sort *int
|
|
addindex_sort *int
|
|
clearedFields map[string]struct{}
|
|
clearedFields map[string]struct{}
|
|
@@ -16817,6 +16891,55 @@ func (m *SopStageMutation) ResetActionLabel() {
|
|
delete(m.clearedFields, sopstage.FieldActionLabel)
|
|
delete(m.clearedFields, sopstage.FieldActionLabel)
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+// SetActionForward sets the "action_forward" field.
|
|
|
|
+func (m *SopStageMutation) SetActionForward(ctf *custom_types.ActionForward) {
|
|
|
|
+ m.action_forward = &ctf
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// ActionForward returns the value of the "action_forward" field in the mutation.
|
|
|
|
+func (m *SopStageMutation) ActionForward() (r *custom_types.ActionForward, exists bool) {
|
|
|
|
+ v := m.action_forward
|
|
|
|
+ if v == nil {
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ return *v, true
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// OldActionForward returns the old "action_forward" field's value of the SopStage entity.
|
|
|
|
+// If the SopStage 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 *SopStageMutation) OldActionForward(ctx context.Context) (v *custom_types.ActionForward, err error) {
|
|
|
|
+ if !m.op.Is(OpUpdateOne) {
|
|
|
|
+ return v, errors.New("OldActionForward is only allowed on UpdateOne operations")
|
|
|
|
+ }
|
|
|
|
+ if m.id == nil || m.oldValue == nil {
|
|
|
|
+ return v, errors.New("OldActionForward requires an ID field in the mutation")
|
|
|
|
+ }
|
|
|
|
+ oldValue, err := m.oldValue(ctx)
|
|
|
|
+ if err != nil {
|
|
|
|
+ return v, fmt.Errorf("querying old value for OldActionForward: %w", err)
|
|
|
|
+ }
|
|
|
|
+ return oldValue.ActionForward, nil
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// ClearActionForward clears the value of the "action_forward" field.
|
|
|
|
+func (m *SopStageMutation) ClearActionForward() {
|
|
|
|
+ m.action_forward = nil
|
|
|
|
+ m.clearedFields[sopstage.FieldActionForward] = struct{}{}
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// ActionForwardCleared returns if the "action_forward" field was cleared in this mutation.
|
|
|
|
+func (m *SopStageMutation) ActionForwardCleared() bool {
|
|
|
|
+ _, ok := m.clearedFields[sopstage.FieldActionForward]
|
|
|
|
+ return ok
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// ResetActionForward resets all changes to the "action_forward" field.
|
|
|
|
+func (m *SopStageMutation) ResetActionForward() {
|
|
|
|
+ m.action_forward = nil
|
|
|
|
+ delete(m.clearedFields, sopstage.FieldActionForward)
|
|
|
|
+}
|
|
|
|
+
|
|
// SetIndexSort sets the "index_sort" field.
|
|
// SetIndexSort sets the "index_sort" field.
|
|
func (m *SopStageMutation) SetIndexSort(i int) {
|
|
func (m *SopStageMutation) SetIndexSort(i int) {
|
|
m.index_sort = &i
|
|
m.index_sort = &i
|
|
@@ -17069,7 +17192,7 @@ func (m *SopStageMutation) Type() string {
|
|
// order to get all numeric fields that were incremented/decremented, call
|
|
// order to get all numeric fields that were incremented/decremented, call
|
|
// AddedFields().
|
|
// AddedFields().
|
|
func (m *SopStageMutation) Fields() []string {
|
|
func (m *SopStageMutation) Fields() []string {
|
|
- fields := make([]string, 0, 12)
|
|
|
|
|
|
+ fields := make([]string, 0, 13)
|
|
if m.created_at != nil {
|
|
if m.created_at != nil {
|
|
fields = append(fields, sopstage.FieldCreatedAt)
|
|
fields = append(fields, sopstage.FieldCreatedAt)
|
|
}
|
|
}
|
|
@@ -17103,6 +17226,9 @@ func (m *SopStageMutation) Fields() []string {
|
|
if m.action_label != nil {
|
|
if m.action_label != nil {
|
|
fields = append(fields, sopstage.FieldActionLabel)
|
|
fields = append(fields, sopstage.FieldActionLabel)
|
|
}
|
|
}
|
|
|
|
+ if m.action_forward != nil {
|
|
|
|
+ fields = append(fields, sopstage.FieldActionForward)
|
|
|
|
+ }
|
|
if m.index_sort != nil {
|
|
if m.index_sort != nil {
|
|
fields = append(fields, sopstage.FieldIndexSort)
|
|
fields = append(fields, sopstage.FieldIndexSort)
|
|
}
|
|
}
|
|
@@ -17136,6 +17262,8 @@ func (m *SopStageMutation) Field(name string) (ent.Value, bool) {
|
|
return m.ActionMessage()
|
|
return m.ActionMessage()
|
|
case sopstage.FieldActionLabel:
|
|
case sopstage.FieldActionLabel:
|
|
return m.ActionLabel()
|
|
return m.ActionLabel()
|
|
|
|
+ case sopstage.FieldActionForward:
|
|
|
|
+ return m.ActionForward()
|
|
case sopstage.FieldIndexSort:
|
|
case sopstage.FieldIndexSort:
|
|
return m.IndexSort()
|
|
return m.IndexSort()
|
|
}
|
|
}
|
|
@@ -17169,6 +17297,8 @@ func (m *SopStageMutation) OldField(ctx context.Context, name string) (ent.Value
|
|
return m.OldActionMessage(ctx)
|
|
return m.OldActionMessage(ctx)
|
|
case sopstage.FieldActionLabel:
|
|
case sopstage.FieldActionLabel:
|
|
return m.OldActionLabel(ctx)
|
|
return m.OldActionLabel(ctx)
|
|
|
|
+ case sopstage.FieldActionForward:
|
|
|
|
+ return m.OldActionForward(ctx)
|
|
case sopstage.FieldIndexSort:
|
|
case sopstage.FieldIndexSort:
|
|
return m.OldIndexSort(ctx)
|
|
return m.OldIndexSort(ctx)
|
|
}
|
|
}
|
|
@@ -17257,6 +17387,13 @@ func (m *SopStageMutation) SetField(name string, value ent.Value) error {
|
|
}
|
|
}
|
|
m.SetActionLabel(v)
|
|
m.SetActionLabel(v)
|
|
return nil
|
|
return nil
|
|
|
|
+ case sopstage.FieldActionForward:
|
|
|
|
+ v, ok := value.(*custom_types.ActionForward)
|
|
|
|
+ if !ok {
|
|
|
|
+ return fmt.Errorf("unexpected type %T for field %s", value, name)
|
|
|
|
+ }
|
|
|
|
+ m.SetActionForward(v)
|
|
|
|
+ return nil
|
|
case sopstage.FieldIndexSort:
|
|
case sopstage.FieldIndexSort:
|
|
v, ok := value.(int)
|
|
v, ok := value.(int)
|
|
if !ok {
|
|
if !ok {
|
|
@@ -17357,6 +17494,9 @@ func (m *SopStageMutation) ClearedFields() []string {
|
|
if m.FieldCleared(sopstage.FieldActionLabel) {
|
|
if m.FieldCleared(sopstage.FieldActionLabel) {
|
|
fields = append(fields, sopstage.FieldActionLabel)
|
|
fields = append(fields, sopstage.FieldActionLabel)
|
|
}
|
|
}
|
|
|
|
+ if m.FieldCleared(sopstage.FieldActionForward) {
|
|
|
|
+ fields = append(fields, sopstage.FieldActionForward)
|
|
|
|
+ }
|
|
if m.FieldCleared(sopstage.FieldIndexSort) {
|
|
if m.FieldCleared(sopstage.FieldIndexSort) {
|
|
fields = append(fields, sopstage.FieldIndexSort)
|
|
fields = append(fields, sopstage.FieldIndexSort)
|
|
}
|
|
}
|
|
@@ -17386,6 +17526,9 @@ func (m *SopStageMutation) ClearField(name string) error {
|
|
case sopstage.FieldActionLabel:
|
|
case sopstage.FieldActionLabel:
|
|
m.ClearActionLabel()
|
|
m.ClearActionLabel()
|
|
return nil
|
|
return nil
|
|
|
|
+ case sopstage.FieldActionForward:
|
|
|
|
+ m.ClearActionForward()
|
|
|
|
+ return nil
|
|
case sopstage.FieldIndexSort:
|
|
case sopstage.FieldIndexSort:
|
|
m.ClearIndexSort()
|
|
m.ClearIndexSort()
|
|
return nil
|
|
return nil
|
|
@@ -17430,6 +17573,9 @@ func (m *SopStageMutation) ResetField(name string) error {
|
|
case sopstage.FieldActionLabel:
|
|
case sopstage.FieldActionLabel:
|
|
m.ResetActionLabel()
|
|
m.ResetActionLabel()
|
|
return nil
|
|
return nil
|
|
|
|
+ case sopstage.FieldActionForward:
|
|
|
|
+ m.ResetActionForward()
|
|
|
|
+ return nil
|
|
case sopstage.FieldIndexSort:
|
|
case sopstage.FieldIndexSort:
|
|
m.ResetIndexSort()
|
|
m.ResetIndexSort()
|
|
return nil
|
|
return nil
|