fix: some api bug

This commit is contained in:
wwweww
2026-03-31 22:12:06 +08:00
parent c5ff4f0216
commit e7970ac25f
219 changed files with 16195 additions and 2126 deletions
@@ -0,0 +1,26 @@
package schema
import (
"entgo.io/ent"
"entgo.io/ent/schema/field"
)
// UserFollows holds the schema definition for the UserFollows entity.
type UserFollows struct {
ent.Schema
}
// Fields of the UserFollows.
func (UserFollows) Fields() []ent.Field {
return []ent.Field{
field.Int64("id").Immutable().Unique(),
field.Int64("follower_id"),
field.Int64("followee_id"),
field.Time("created_at").Immutable(),
}
}
// Edges of the UserFollows.
func (UserFollows) Edges() []ent.Edge {
return nil
}