update migrate
This commit is contained in:
.gitignore.gitmodulesDockerfileProcfile
app/data
build.zshcompose.ymldocs
ent
card.go
go.modgo.sumcard
card_create.gocard_delete.gocard_query.gocard_update.goclient.goent.goenttest
group.gogroup
group_create.gogroup_delete.gogroup_query.gogroup_update.gohook
ma.goma
ma_create.goma_delete.goma_query.goma_update.gomigrate
mutation.googent
oas_client_gen.gooas_handlers_gen.gooas_interfaces_gen.gooas_json_gen.gooas_parameters_gen.gooas_request_decoders_gen.gooas_request_encoders_gen.gooas_response_decoders_gen.gooas_response_encoders_gen.gooas_router_gen.gooas_schemas_gen.gooas_server_gen.gooas_unimplemented_gen.gooas_validators_gen.googent.goresponses.go
openapi.jsonpredicate
runtime.goruntime
schema
tx.goue.goue
ue_create.goue_delete.goue_query.goue_update.gouser.gouser
user_create.gouser_delete.gouser_query.gouser_update.goicon
main.goreadme.mdscpttmp/ogent
@@ -3,7 +3,7 @@
|
||||
package card
|
||||
|
||||
import (
|
||||
"t/ent/predicate"
|
||||
"api/ent/predicate"
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
@@ -55,16 +55,31 @@ func IDLTE(id int) predicate.Card {
|
||||
return predicate.Card(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.
|
||||
func Password(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldEQ(FieldPassword, v))
|
||||
}
|
||||
|
||||
// Card applies equality check predicate on the "card" field. It's identical to CardEQ.
|
||||
func Card(v int) predicate.Card {
|
||||
return predicate.Card(sql.FieldEQ(FieldCard, v))
|
||||
}
|
||||
|
||||
// Skill applies equality check predicate on the "skill" field. It's identical to SkillEQ.
|
||||
func Skill(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldEQ(FieldSkill, v))
|
||||
}
|
||||
|
||||
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
|
||||
func Status(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// Token applies equality check predicate on the "token" field. It's identical to TokenEQ.
|
||||
func Token(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldEQ(FieldToken, v))
|
||||
}
|
||||
|
||||
// Cp applies equality check predicate on the "cp" field. It's identical to CpEQ.
|
||||
func Cp(v int) predicate.Card {
|
||||
return predicate.Card(sql.FieldEQ(FieldCp, v))
|
||||
@@ -75,11 +90,86 @@ func URL(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldEQ(FieldURL, v))
|
||||
}
|
||||
|
||||
// Count applies equality check predicate on the "count" field. It's identical to CountEQ.
|
||||
func Count(v int) predicate.Card {
|
||||
return predicate.Card(sql.FieldEQ(FieldCount, v))
|
||||
}
|
||||
|
||||
// Author applies equality check predicate on the "author" field. It's identical to AuthorEQ.
|
||||
func Author(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldEQ(FieldAuthor, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v time.Time) predicate.Card {
|
||||
return predicate.Card(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// PasswordEQ applies the EQ predicate on the "password" field.
|
||||
func PasswordEQ(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldEQ(FieldPassword, v))
|
||||
}
|
||||
|
||||
// PasswordNEQ applies the NEQ predicate on the "password" field.
|
||||
func PasswordNEQ(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldNEQ(FieldPassword, v))
|
||||
}
|
||||
|
||||
// PasswordIn applies the In predicate on the "password" field.
|
||||
func PasswordIn(vs ...string) predicate.Card {
|
||||
return predicate.Card(sql.FieldIn(FieldPassword, vs...))
|
||||
}
|
||||
|
||||
// PasswordNotIn applies the NotIn predicate on the "password" field.
|
||||
func PasswordNotIn(vs ...string) predicate.Card {
|
||||
return predicate.Card(sql.FieldNotIn(FieldPassword, vs...))
|
||||
}
|
||||
|
||||
// PasswordGT applies the GT predicate on the "password" field.
|
||||
func PasswordGT(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldGT(FieldPassword, v))
|
||||
}
|
||||
|
||||
// PasswordGTE applies the GTE predicate on the "password" field.
|
||||
func PasswordGTE(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldGTE(FieldPassword, v))
|
||||
}
|
||||
|
||||
// PasswordLT applies the LT predicate on the "password" field.
|
||||
func PasswordLT(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldLT(FieldPassword, v))
|
||||
}
|
||||
|
||||
// PasswordLTE applies the LTE predicate on the "password" field.
|
||||
func PasswordLTE(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldLTE(FieldPassword, v))
|
||||
}
|
||||
|
||||
// PasswordContains applies the Contains predicate on the "password" field.
|
||||
func PasswordContains(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldContains(FieldPassword, v))
|
||||
}
|
||||
|
||||
// PasswordHasPrefix applies the HasPrefix predicate on the "password" field.
|
||||
func PasswordHasPrefix(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldHasPrefix(FieldPassword, v))
|
||||
}
|
||||
|
||||
// PasswordHasSuffix applies the HasSuffix predicate on the "password" field.
|
||||
func PasswordHasSuffix(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldHasSuffix(FieldPassword, v))
|
||||
}
|
||||
|
||||
// PasswordEqualFold applies the EqualFold predicate on the "password" field.
|
||||
func PasswordEqualFold(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldEqualFold(FieldPassword, v))
|
||||
}
|
||||
|
||||
// PasswordContainsFold applies the ContainsFold predicate on the "password" field.
|
||||
func PasswordContainsFold(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldContainsFold(FieldPassword, v))
|
||||
}
|
||||
|
||||
// CardEQ applies the EQ predicate on the "card" field.
|
||||
func CardEQ(v int) predicate.Card {
|
||||
return predicate.Card(sql.FieldEQ(FieldCard, v))
|
||||
@@ -130,6 +220,81 @@ func CardNotNil() predicate.Card {
|
||||
return predicate.Card(sql.FieldNotNull(FieldCard))
|
||||
}
|
||||
|
||||
// SkillEQ applies the EQ predicate on the "skill" field.
|
||||
func SkillEQ(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldEQ(FieldSkill, v))
|
||||
}
|
||||
|
||||
// SkillNEQ applies the NEQ predicate on the "skill" field.
|
||||
func SkillNEQ(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldNEQ(FieldSkill, v))
|
||||
}
|
||||
|
||||
// SkillIn applies the In predicate on the "skill" field.
|
||||
func SkillIn(vs ...string) predicate.Card {
|
||||
return predicate.Card(sql.FieldIn(FieldSkill, vs...))
|
||||
}
|
||||
|
||||
// SkillNotIn applies the NotIn predicate on the "skill" field.
|
||||
func SkillNotIn(vs ...string) predicate.Card {
|
||||
return predicate.Card(sql.FieldNotIn(FieldSkill, vs...))
|
||||
}
|
||||
|
||||
// SkillGT applies the GT predicate on the "skill" field.
|
||||
func SkillGT(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldGT(FieldSkill, v))
|
||||
}
|
||||
|
||||
// SkillGTE applies the GTE predicate on the "skill" field.
|
||||
func SkillGTE(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldGTE(FieldSkill, v))
|
||||
}
|
||||
|
||||
// SkillLT applies the LT predicate on the "skill" field.
|
||||
func SkillLT(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldLT(FieldSkill, v))
|
||||
}
|
||||
|
||||
// SkillLTE applies the LTE predicate on the "skill" field.
|
||||
func SkillLTE(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldLTE(FieldSkill, v))
|
||||
}
|
||||
|
||||
// SkillContains applies the Contains predicate on the "skill" field.
|
||||
func SkillContains(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldContains(FieldSkill, v))
|
||||
}
|
||||
|
||||
// SkillHasPrefix applies the HasPrefix predicate on the "skill" field.
|
||||
func SkillHasPrefix(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldHasPrefix(FieldSkill, v))
|
||||
}
|
||||
|
||||
// SkillHasSuffix applies the HasSuffix predicate on the "skill" field.
|
||||
func SkillHasSuffix(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldHasSuffix(FieldSkill, v))
|
||||
}
|
||||
|
||||
// SkillIsNil applies the IsNil predicate on the "skill" field.
|
||||
func SkillIsNil() predicate.Card {
|
||||
return predicate.Card(sql.FieldIsNull(FieldSkill))
|
||||
}
|
||||
|
||||
// SkillNotNil applies the NotNil predicate on the "skill" field.
|
||||
func SkillNotNil() predicate.Card {
|
||||
return predicate.Card(sql.FieldNotNull(FieldSkill))
|
||||
}
|
||||
|
||||
// SkillEqualFold applies the EqualFold predicate on the "skill" field.
|
||||
func SkillEqualFold(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldEqualFold(FieldSkill, v))
|
||||
}
|
||||
|
||||
// SkillContainsFold applies the ContainsFold predicate on the "skill" field.
|
||||
func SkillContainsFold(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldContainsFold(FieldSkill, v))
|
||||
}
|
||||
|
||||
// StatusEQ applies the EQ predicate on the "status" field.
|
||||
func StatusEQ(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldEQ(FieldStatus, v))
|
||||
@@ -205,6 +370,81 @@ func StatusContainsFold(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldContainsFold(FieldStatus, v))
|
||||
}
|
||||
|
||||
// TokenEQ applies the EQ predicate on the "token" field.
|
||||
func TokenEQ(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldEQ(FieldToken, v))
|
||||
}
|
||||
|
||||
// TokenNEQ applies the NEQ predicate on the "token" field.
|
||||
func TokenNEQ(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldNEQ(FieldToken, v))
|
||||
}
|
||||
|
||||
// TokenIn applies the In predicate on the "token" field.
|
||||
func TokenIn(vs ...string) predicate.Card {
|
||||
return predicate.Card(sql.FieldIn(FieldToken, vs...))
|
||||
}
|
||||
|
||||
// TokenNotIn applies the NotIn predicate on the "token" field.
|
||||
func TokenNotIn(vs ...string) predicate.Card {
|
||||
return predicate.Card(sql.FieldNotIn(FieldToken, vs...))
|
||||
}
|
||||
|
||||
// TokenGT applies the GT predicate on the "token" field.
|
||||
func TokenGT(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldGT(FieldToken, v))
|
||||
}
|
||||
|
||||
// TokenGTE applies the GTE predicate on the "token" field.
|
||||
func TokenGTE(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldGTE(FieldToken, v))
|
||||
}
|
||||
|
||||
// TokenLT applies the LT predicate on the "token" field.
|
||||
func TokenLT(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldLT(FieldToken, v))
|
||||
}
|
||||
|
||||
// TokenLTE applies the LTE predicate on the "token" field.
|
||||
func TokenLTE(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldLTE(FieldToken, v))
|
||||
}
|
||||
|
||||
// TokenContains applies the Contains predicate on the "token" field.
|
||||
func TokenContains(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldContains(FieldToken, v))
|
||||
}
|
||||
|
||||
// TokenHasPrefix applies the HasPrefix predicate on the "token" field.
|
||||
func TokenHasPrefix(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldHasPrefix(FieldToken, v))
|
||||
}
|
||||
|
||||
// TokenHasSuffix applies the HasSuffix predicate on the "token" field.
|
||||
func TokenHasSuffix(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldHasSuffix(FieldToken, v))
|
||||
}
|
||||
|
||||
// TokenIsNil applies the IsNil predicate on the "token" field.
|
||||
func TokenIsNil() predicate.Card {
|
||||
return predicate.Card(sql.FieldIsNull(FieldToken))
|
||||
}
|
||||
|
||||
// TokenNotNil applies the NotNil predicate on the "token" field.
|
||||
func TokenNotNil() predicate.Card {
|
||||
return predicate.Card(sql.FieldNotNull(FieldToken))
|
||||
}
|
||||
|
||||
// TokenEqualFold applies the EqualFold predicate on the "token" field.
|
||||
func TokenEqualFold(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldEqualFold(FieldToken, v))
|
||||
}
|
||||
|
||||
// TokenContainsFold applies the ContainsFold predicate on the "token" field.
|
||||
func TokenContainsFold(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldContainsFold(FieldToken, v))
|
||||
}
|
||||
|
||||
// CpEQ applies the EQ predicate on the "cp" field.
|
||||
func CpEQ(v int) predicate.Card {
|
||||
return predicate.Card(sql.FieldEQ(FieldCp, v))
|
||||
@@ -330,6 +570,131 @@ func URLContainsFold(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldContainsFold(FieldURL, v))
|
||||
}
|
||||
|
||||
// CountEQ applies the EQ predicate on the "count" field.
|
||||
func CountEQ(v int) predicate.Card {
|
||||
return predicate.Card(sql.FieldEQ(FieldCount, v))
|
||||
}
|
||||
|
||||
// CountNEQ applies the NEQ predicate on the "count" field.
|
||||
func CountNEQ(v int) predicate.Card {
|
||||
return predicate.Card(sql.FieldNEQ(FieldCount, v))
|
||||
}
|
||||
|
||||
// CountIn applies the In predicate on the "count" field.
|
||||
func CountIn(vs ...int) predicate.Card {
|
||||
return predicate.Card(sql.FieldIn(FieldCount, vs...))
|
||||
}
|
||||
|
||||
// CountNotIn applies the NotIn predicate on the "count" field.
|
||||
func CountNotIn(vs ...int) predicate.Card {
|
||||
return predicate.Card(sql.FieldNotIn(FieldCount, vs...))
|
||||
}
|
||||
|
||||
// CountGT applies the GT predicate on the "count" field.
|
||||
func CountGT(v int) predicate.Card {
|
||||
return predicate.Card(sql.FieldGT(FieldCount, v))
|
||||
}
|
||||
|
||||
// CountGTE applies the GTE predicate on the "count" field.
|
||||
func CountGTE(v int) predicate.Card {
|
||||
return predicate.Card(sql.FieldGTE(FieldCount, v))
|
||||
}
|
||||
|
||||
// CountLT applies the LT predicate on the "count" field.
|
||||
func CountLT(v int) predicate.Card {
|
||||
return predicate.Card(sql.FieldLT(FieldCount, v))
|
||||
}
|
||||
|
||||
// CountLTE applies the LTE predicate on the "count" field.
|
||||
func CountLTE(v int) predicate.Card {
|
||||
return predicate.Card(sql.FieldLTE(FieldCount, v))
|
||||
}
|
||||
|
||||
// CountIsNil applies the IsNil predicate on the "count" field.
|
||||
func CountIsNil() predicate.Card {
|
||||
return predicate.Card(sql.FieldIsNull(FieldCount))
|
||||
}
|
||||
|
||||
// CountNotNil applies the NotNil predicate on the "count" field.
|
||||
func CountNotNil() predicate.Card {
|
||||
return predicate.Card(sql.FieldNotNull(FieldCount))
|
||||
}
|
||||
|
||||
// AuthorEQ applies the EQ predicate on the "author" field.
|
||||
func AuthorEQ(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldEQ(FieldAuthor, v))
|
||||
}
|
||||
|
||||
// AuthorNEQ applies the NEQ predicate on the "author" field.
|
||||
func AuthorNEQ(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldNEQ(FieldAuthor, v))
|
||||
}
|
||||
|
||||
// AuthorIn applies the In predicate on the "author" field.
|
||||
func AuthorIn(vs ...string) predicate.Card {
|
||||
return predicate.Card(sql.FieldIn(FieldAuthor, vs...))
|
||||
}
|
||||
|
||||
// AuthorNotIn applies the NotIn predicate on the "author" field.
|
||||
func AuthorNotIn(vs ...string) predicate.Card {
|
||||
return predicate.Card(sql.FieldNotIn(FieldAuthor, vs...))
|
||||
}
|
||||
|
||||
// AuthorGT applies the GT predicate on the "author" field.
|
||||
func AuthorGT(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldGT(FieldAuthor, v))
|
||||
}
|
||||
|
||||
// AuthorGTE applies the GTE predicate on the "author" field.
|
||||
func AuthorGTE(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldGTE(FieldAuthor, v))
|
||||
}
|
||||
|
||||
// AuthorLT applies the LT predicate on the "author" field.
|
||||
func AuthorLT(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldLT(FieldAuthor, v))
|
||||
}
|
||||
|
||||
// AuthorLTE applies the LTE predicate on the "author" field.
|
||||
func AuthorLTE(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldLTE(FieldAuthor, v))
|
||||
}
|
||||
|
||||
// AuthorContains applies the Contains predicate on the "author" field.
|
||||
func AuthorContains(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldContains(FieldAuthor, v))
|
||||
}
|
||||
|
||||
// AuthorHasPrefix applies the HasPrefix predicate on the "author" field.
|
||||
func AuthorHasPrefix(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldHasPrefix(FieldAuthor, v))
|
||||
}
|
||||
|
||||
// AuthorHasSuffix applies the HasSuffix predicate on the "author" field.
|
||||
func AuthorHasSuffix(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldHasSuffix(FieldAuthor, v))
|
||||
}
|
||||
|
||||
// AuthorIsNil applies the IsNil predicate on the "author" field.
|
||||
func AuthorIsNil() predicate.Card {
|
||||
return predicate.Card(sql.FieldIsNull(FieldAuthor))
|
||||
}
|
||||
|
||||
// AuthorNotNil applies the NotNil predicate on the "author" field.
|
||||
func AuthorNotNil() predicate.Card {
|
||||
return predicate.Card(sql.FieldNotNull(FieldAuthor))
|
||||
}
|
||||
|
||||
// AuthorEqualFold applies the EqualFold predicate on the "author" field.
|
||||
func AuthorEqualFold(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldEqualFold(FieldAuthor, v))
|
||||
}
|
||||
|
||||
// AuthorContainsFold applies the ContainsFold predicate on the "author" field.
|
||||
func AuthorContainsFold(v string) predicate.Card {
|
||||
return predicate.Card(sql.FieldContainsFold(FieldAuthor, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
||||
func CreatedAtEQ(v time.Time) predicate.Card {
|
||||
return predicate.Card(sql.FieldEQ(FieldCreatedAt, v))
|
||||
@@ -394,11 +759,7 @@ func HasOwner() predicate.Card {
|
||||
// HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
|
||||
func HasOwnerWith(preds ...predicate.User) predicate.Card {
|
||||
return predicate.Card(func(s *sql.Selector) {
|
||||
step := sqlgraph.NewStep(
|
||||
sqlgraph.From(Table, FieldID),
|
||||
sqlgraph.To(OwnerInverseTable, FieldID),
|
||||
sqlgraph.Edge(sqlgraph.M2O, true, OwnerTable, OwnerColumn),
|
||||
)
|
||||
step := newOwnerStep()
|
||||
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
|
||||
for _, p := range preds {
|
||||
p(s)
|
||||
|
Reference in New Issue
Block a user