mirror of
https://github.com/fastapi-admin/fastapi-admin.git
synced 2025-08-14 18:58:13 +08:00
Rename fastapi_admin.models.User
to fastapi_admin.models.AbstractUser
.
This commit is contained in:
@ -3,7 +3,7 @@ from tortoise import Model, fields
|
||||
from fastapi_admin import enums
|
||||
|
||||
|
||||
class User(Model):
|
||||
class AbstractUser(Model):
|
||||
username = fields.CharField(max_length=20, unique=True)
|
||||
password = fields.CharField(max_length=200, description="Will auto hash with raw password")
|
||||
|
||||
|
Reference in New Issue
Block a user