05/19 Update QR code photo verification togglable

This commit is contained in:
2026-05-19 13:20:52 -04:00
parent 5e0c014ca7
commit 74e0b71a11
5 changed files with 1665 additions and 1542 deletions
+3 -1
View File
@@ -43,6 +43,8 @@ class QRCode(base.db.Model):
# 'standard' = fixed single location (existing behavior, default)
# 'dynamic' = employee selects location from a list at scan time
qr_type = base.db.Column(base.db.String(20), nullable=False, default='standard')
# Per-QR photo verification toggle (default: enabled)
photo_verification_enabled = base.db.Column(base.db.Boolean, nullable=False, default=True)
# Relationship to style
style = base.db.relationship('QRCodeStyle', backref='qr_codes')
@@ -113,4 +115,4 @@ class QRCodeLocation(base.db.Model):
qr_code = base.db.relationship('QRCode', backref='locations')
def __repr__(self):
return f'<QRCodeLocation "{self.location_name}" (QR #{self.qr_code_id})>'
return f'<QRCodeLocation "{self.location_name}" (QR #{self.qr_code_id})>'