Initial commit – TimeMaster Zeiterfassung & HR-Tool

Stand: agent-06 (Audit-Log), agent-05 (Krankmeldung), agent-07 Phase 1 (Personalnummer),
Busylight-Pull-Integration, TOTP/2FA, Abwesenheiten, Zeiterfassung, Kiosk-Grundgerüst.
Migrations 0001–0023 deployed auf 192.168.1.137 + .164.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
sysops
2026-05-23 20:03:27 +02:00
commit 1fedd683e0
178 changed files with 29896 additions and 0 deletions
@@ -0,0 +1,36 @@
"""add busylight_pull_token_hash + created_at to companies
Revision ID: 0023
Revises: 0022
Create Date: 2026-05-06
"""
from alembic import op
import sqlalchemy as sa
revision = "0023"
down_revision = "0022"
branch_labels = None
depends_on = None
def upgrade() -> None:
op.add_column(
"companies",
sa.Column("busylight_pull_token_hash", sa.String(length=64), nullable=True),
)
op.add_column(
"companies",
sa.Column("busylight_token_created_at", sa.DateTime(timezone=True), nullable=True),
)
op.create_unique_constraint(
"uq_companies_busylight_pull_token_hash",
"companies",
["busylight_pull_token_hash"],
)
def downgrade() -> None:
op.drop_constraint("uq_companies_busylight_pull_token_hash", "companies", type_="unique")
op.drop_column("companies", "busylight_token_created_at")
op.drop_column("companies", "busylight_pull_token_hash")