refactor: rebrand project to HartOMat
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
"""Seed database with 7 Schaeffler product category templates."""
|
||||
"""Seed database with 7 HartOMat product category templates."""
|
||||
import asyncio
|
||||
import uuid
|
||||
from sqlalchemy.ext.asyncio import AsyncSession, create_async_engine, async_sessionmaker
|
||||
@@ -133,7 +133,7 @@ TEMPLATES = [
|
||||
]
|
||||
|
||||
|
||||
async def seed(db_url: str, admin_email: str = "admin@schaeffler.com", admin_password: str = "Admin1234!"):
|
||||
async def seed(db_url: str, admin_email: str = "admin@hartomat.com", admin_password: str = "Admin1234!"):
|
||||
from app.models.template import Template
|
||||
from app.models.user import User, UserRole
|
||||
from app.utils.auth import hash_password
|
||||
@@ -162,7 +162,7 @@ async def seed(db_url: str, admin_email: str = "admin@schaeffler.com", admin_pas
|
||||
email=admin_email,
|
||||
password_hash=hash_password(admin_password),
|
||||
role=UserRole.global_admin,
|
||||
full_name="Schaeffler Admin",
|
||||
full_name="HartOMat Admin",
|
||||
)
|
||||
session.add(admin)
|
||||
print(f" + Admin user: {admin_email}")
|
||||
|
||||
Reference in New Issue
Block a user