Skip to content

Commit

Permalink
craeted 2 tables
Browse files Browse the repository at this point in the history
  • Loading branch information
dilroseR committed Aug 4, 2021
1 parent 16532e1 commit 0d6a2dd
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,32 @@

app = Flask(__name__)

db = SQLAlchemy(app)

class LoginModel(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 StoreModel(db.Model):
rno = db.Column(db.Integer, primary_key=True)
phy = db.Column(db.Integer, positive=True)
chem = db.Column(db.Integer,positive=True)
maths = db.Column(db.Integer,positive=True)
bio = db.Column(db.Integer,positive=True)

def __init__(self,phy,chem,maths,bio):
self.phy = phy
self.chem = chem
self.maths = maths
self.bio = bio




@app.route('/')
def index():
return "Hello From Flask Here"
Expand Down

0 comments on commit 0d6a2dd

Please sign in to comment.