Files
juwan-backend/app/users/rpc/internal/models/schema/userfollows.go
T
2026-03-31 22:12:06 +08:00

27 lines
509 B
Go

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
}