This commit is contained in:
Gilles Soulier
2026-01-05 16:08:01 +01:00
parent dcba044cd6
commit c67befc549
2215 changed files with 26743 additions and 329 deletions

8
backend/app/db/base.py Normal file → Executable file
View File

@@ -4,12 +4,20 @@ Linux BenchTools - Database Base
from sqlalchemy.ext.declarative import declarative_base
# Base for main database (benchmarks, devices)
Base = declarative_base()
# Base for peripherals database (separate)
BasePeripherals = declarative_base()
# Import all models here for Alembic/migrations
# Main DB models
from app.models.device import Device # noqa
from app.models.hardware_snapshot import HardwareSnapshot # noqa
from app.models.benchmark import Benchmark # noqa
from app.models.disk_smart import DiskSMART # noqa
from app.models.manufacturer_link import ManufacturerLink # noqa
from app.models.document import Document # noqa
# Peripherals DB models (imported when module enabled)
# Will be imported in init_db.py