Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
dilroseR committed Aug 5, 2021
1 parent a96f72a commit fde7dfb
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion Backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,33 @@
from flask_cors import CORS, cross_origin



app = Flask(__name__)

db = SQLAlchemy(app)

class LoginModel(db.Model):

class StudentLoginModel(db.Model):
rno = db.Column(db.Integer, primary_key=True)
password = db.Column(db.String(10))


def __init__(self,rno,password):
self.rno = rno
self.password = password


class FacultyLoginModel(db.Model):
id = db.Column(db.Integer, primary_key=True)
password1 = db.Column(db.String(10))


def __init__(self,id,password1):
self.id = id
self.password1 = password1



class StoreModel(db.Model):
rno = db.Column(db.Integer, primary_key=True)
phy = db.Column(db.Integer, positive=True)
Expand Down

0 comments on commit fde7dfb

Please sign in to comment.