add: user accomplished

This commit is contained in:
wwweww
2026-02-27 05:42:13 +08:00
parent 659168fe32
commit a0c720eb2f
90 changed files with 9592 additions and 1180 deletions
+29
View File
@@ -0,0 +1,29 @@
// Code generated by ent, DO NOT EDIT.
package models
import (
"juwan-backend/app/users/rpc/internal/models/schema"
"juwan-backend/app/users/rpc/internal/models/users"
"time"
)
// The init function reads all schema descriptors with runtime code
// (default values, validators, hooks and policies) and stitches it
// to their package variables.
func init() {
usersFields := schema.Users{}.Fields()
_ = usersFields
// usersDescIsAdmin is the schema descriptor for is_admin field.
usersDescIsAdmin := usersFields[11].Descriptor()
// users.DefaultIsAdmin holds the default value on creation for the is_admin field.
users.DefaultIsAdmin = usersDescIsAdmin.Default.(bool)
// usersDescCreatedAt is the schema descriptor for created_at field.
usersDescCreatedAt := usersFields[12].Descriptor()
// users.DefaultCreatedAt holds the default value on creation for the created_at field.
users.DefaultCreatedAt = usersDescCreatedAt.Default.(func() time.Time)
// usersDescUpdatedAt is the schema descriptor for updated_at field.
usersDescUpdatedAt := usersFields[13].Descriptor()
// users.DefaultUpdatedAt holds the default value on creation for the updated_at field.
users.DefaultUpdatedAt = usersDescUpdatedAt.Default.(func() time.Time)
}