diff options
Diffstat (limited to 'ebus/web/model.py')
-rw-r--r-- | ebus/web/model.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ebus/web/model.py b/ebus/web/model.py index b8405dc..e7744df 100644 --- a/ebus/web/model.py +++ b/ebus/web/model.py @@ -3,9 +3,9 @@ from sqlalchemy import Column, Integer, Float, DateTime, String, ForeignKey from sqlalchemy.orm import relationship, backref from sqlalchemy.ext.declarative import declarative_base -Base = declarative_base() +ModelBase = declarative_base() -class Sensor(Base): +class Sensor(ModelBase): __tablename__ = 'sensor' id = Column(Integer, primary_key=True) @@ -22,7 +22,7 @@ class Sensor(Base): -class Value(Base): +class Value(ModelBase): __tablename__ = 'value' id = Column(Integer, primary_key=True) |