改用mysql
This commit is contained in:
@@ -46,12 +46,14 @@ class UserRepository:
|
||||
email: str,
|
||||
password_hash: str,
|
||||
plan_id: str,
|
||||
role: str = "customer",
|
||||
) -> User:
|
||||
user = User(
|
||||
username=username,
|
||||
email=email.lower(),
|
||||
password_hash=password_hash,
|
||||
status="active",
|
||||
role=role,
|
||||
plan_id=plan_id,
|
||||
storage_used=0,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user