all uuid-s postgres specific
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
61999cb511
commit
afb0f56a7d
@ -38,6 +38,6 @@ class Device(db.Model):
|
||||
|
||||
class Sensor(db.Model):
|
||||
__tablename__ = 'sensor'
|
||||
id = db.Column(db.UUID, primary_key=True)
|
||||
id = db.Column(UUID(as_uuid=True), primary_key=True)
|
||||
status = db.Column(db.Enum(SensorStatusEnum), nullable=False)
|
||||
device_id = db.Column(db.UUID, db.ForeignKey('device.id'))
|
||||
device_id = db.Column(UUID(as_uuid=True), db.ForeignKey('device.id'))
|
||||
|
Loading…
Reference in New Issue
Block a user