text: """------------------------------------------------------------*-
    Model module for Flask server
    Tested on: Raspberry Pi 3 B+
    (c) Minh-An Dao 2019-2020
    (c) Miguel Grinberg 2018
    version 1.10 - 21/03/2020
   --------------------------------------------------------------
   * Defines database columns and tables
   *
   --------------------------------------------------------------"""
  from hashlib import md5
  from app import db
  from datetime import datetime, timezone
  
  class User(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(64), index=True, unique=False) # must set unique to False since many people have the same name
    mssv = db.Column(db.String(8), index=True, unique=True)
    rfid = db.Column(db.String(10), index=True, unique=True)
    fing = db.Column(db.Integer, index=True, unique=True)
    # timestamp = db.Column(db.DateTime, index=True, default=datetime.now(timezone.utc))
  
    def __repr__(self):
      return '<User {} - {}>'.format(self.id, self.mssv)
  
  