all uuid-s postgres specific
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2020-08-06 20:05:01 +02:00
parent 61999cb511
commit afb0f56a7d
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047

View File

@ -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'))