From b1f45e10a5c1340b4425ab446999b153db4e3bc9 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 22 Dec 2020 13:04:16 +0100 Subject: [PATCH] fixedbug created field in model --- ereuse_devicehub/resources/hash_reports.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ereuse_devicehub/resources/hash_reports.py b/ereuse_devicehub/resources/hash_reports.py index 8822afca..f84e4b18 100644 --- a/ereuse_devicehub/resources/hash_reports.py +++ b/ereuse_devicehub/resources/hash_reports.py @@ -17,6 +17,11 @@ class ReportHash(db.Model): id.comment = """The identifier of the device for this database. Used only internally for software; users should not use this. """ + created = db.Column(db.TIMESTAMP(timezone=True), + nullable=False, + index=True, + server_default=db.text('CURRENT_TIMESTAMP')) + created.comment = """When Devicehub created this.""" hash3 = db.Column(CIText(), nullable=False) hash3.comment = """The normalized name of the hash."""