fixing sqlalchemy issue
This commit is contained in:
+3
-2
@@ -6,13 +6,14 @@ from flask_sqlalchemy import SQLAlchemy
|
|||||||
from sqlalchemy import Boolean, DateTime, Integer, String
|
from sqlalchemy import Boolean, DateTime, Integer, String
|
||||||
from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column
|
from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column
|
||||||
|
|
||||||
db: SQLAlchemy = SQLAlchemy()
|
|
||||||
|
|
||||||
|
|
||||||
class Base(DeclarativeBase):
|
class Base(DeclarativeBase):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
db: SQLAlchemy = SQLAlchemy(model_class=Base)
|
||||||
|
|
||||||
|
|
||||||
class CameraStatus(Base):
|
class CameraStatus(Base):
|
||||||
__tablename__ = "camera_status"
|
__tablename__ = "camera_status"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user