From 6f0f97a590d6c6392423a7f1f9f01f600ad10b96 Mon Sep 17 00:00:00 2001 From: bibin thomas <82058754+bibinthomas123@users.noreply.github.com> Date: Fri, 15 Jul 2022 21:13:33 +0530 Subject: [PATCH] Update: Added Comments --- website/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/models.py b/website/models.py index 79c17e6f3..fd6b937d8 100644 --- a/website/models.py +++ b/website/models.py @@ -2,14 +2,14 @@ from flask_login import UserMixin from sqlalchemy.sql import func - +# Schema for note table class Note(db.Model): id = db.Column(db.Integer, primary_key=True) data = db.Column(db.String(10000)) date = db.Column(db.DateTime(timezone=True), default=func.now()) user_id = db.Column(db.Integer, db.ForeignKey('user.id')) - +#Schema for User table class User(db.Model, UserMixin): id = db.Column(db.Integer, primary_key=True) email = db.Column(db.String(150), unique=True)