Skip to content

Commit e9a41bb

Browse files
committed
remove used id from seed.json
1 parent 5da5926 commit e9a41bb

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

backend/app/seed_data/seed_data.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,13 @@
2121
],
2222
"users": [
2323
{
24-
"id": "4629f304-10c5-45f8-80f5-26ea1066a1cb",
2524
"email": "[email protected]",
2625
"password": "changethis",
2726
"full_name": "SUPERUSER",
2827
"is_active": true,
2928
"is_superuser": true
3029
},
3130
{
32-
"id": "375503ac-f9d1-465e-8a87-be6974799ce1",
3331
"email": "[email protected]",
3432
"password": "admin123",
3533
"full_name": "ADMIN",

backend/app/seed_data/seed_data.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ class ProjectData(BaseModel):
2525

2626

2727
class UserData(BaseModel):
28-
id: str
2928
email: EmailStr
3029
full_name: str
3130
is_superuser: bool
@@ -106,7 +105,6 @@ def create_user(session: Session, user_data_raw: dict) -> User:
106105
logging.info(f"Creating user: {user_data.email}")
107106
hashed_password = get_password_hash(user_data.password)
108107
user = User(
109-
id=uuid.UUID(user_data.id),
110108
email=user_data.email,
111109
full_name=user_data.full_name,
112110
is_superuser=user_data.is_superuser,

0 commit comments

Comments
 (0)