Spaces:
Running
on
Zero
Running
on
Zero
from app import db | |
class User(db.Model): | |
id = db.Column(db.Integer, primary_key=True) | |
name = db.Column(db.String(100), nullable=False) | |
email = db.Column(db.String(100), unique=True, nullable=False) | |
password = db.Column(db.String(100), nullable=False) | |
class LanguageSchool(db.Model): | |
id = db.Column(db.Integer, primary_key=True) | |
name = db.Column(db.String(100), nullable=False) | |
location = db.Column(db.String(100), nullable=False) | |
pricing = db.Column(db.String(100), nullable=False) | |
class CustomizedPlan(db.Model): | |
id = db.Column(db.Integer, primary_key=True) | |
user_id = db.Column(db.Integer, db.ForeignKey("user.id")) | |
language_school_id = db.Column(db.Integer, db.ForeignKey("language_school.id")) | |
duration = db.Column(db.String(100), nullable=False) | |
options = db.Column(db.String(100), nullable=False) | |
class Area(db.Model): | |
id = db.Column(db.Integer, primary_key=True) | |
name = db.Column(db.String(100), nullable=False) | |
location = db.Column(db.String(100), nullable=False) | |
class Option(db.Model): | |
id = db.Column(db.Integer, primary_key=True) | |
name = db.Column(db.String(100), nullable=False) | |
price = db.Column(db.String(100), nullable=False) |