frc_timecards/app/tables.py
QTech Servers 67bc482155 Fuck
2024-10-03 22:05:46 -04:00

21 lines
592 B
Python

from datetime import datetime
from app import db
class Swipe(db.Model):
__tablename__ = 'swipes'
id = db.Column('id', db.Integer, primary_key=True)
time = db.Column(db.DateTime, nullable=False, default=datetime.utcnow)
uuid = db.Column(db.String(100))
def __init__(self, uuid):
self.uuid = uuid
class User(db.Model):
__tablename__ = 'users'
id = db.Column('id', db.Integer, primary_key=True)
uuid = db.Column(db.String(100))
first_name = db.Column(db.String(100))
last_name = db.Column(db.String(100))
role = db.Column(db.String(100))