Spaces:
Runtime error
Runtime error
File size: 492 Bytes
deec4d6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | from app.database import SessionLocal
from app.models import User
from app.auth import get_password_hash
import uuid
from datetime import datetime
db = SessionLocal()
user = User(
id=uuid.uuid4(),
email="shakauthossain0@gmail.com",
password_hash=get_password_hash("bangladesh"),
full_name="Admin User",
is_active=True,
created_at=datetime.utcnow(),
updated_at=datetime.utcnow()
)
db.add(user)
db.commit()
db.refresh(user)
print("✅ User created:", user.email) |