Commit f666e3a4 authored by Kristian Tan's avatar Kristian Tan

Added table name daily_usage

parent 2089ff82
......@@ -21,6 +21,7 @@ db.create_all()
# TODO: Move this into daily_usage class file
class DailyUsage(db.Model):
__tablename__ = 'daily_usage'
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
date = db.Column(db.String(80), unique=True, nullable=False)
hours = db.Column(db.Integer, unique=False)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment