from flas import Flask
from flask_sqlalchemy import SQLAlchemy
from application import app

db = SQLAlchemy(app)


class User(db.Model):
    id = db.Column(db.interger, primary_key=True)
    username = db.column(db.String(80), unique=True)
    email = db.column(db.String(120), unique=True)

    def __init__(self, username, email):
        self.username = username
        self.email = email

    def __repr__(self):
        return '<User %r>' % self.username

from flas import Flask
from flask_sqlalchemy import SQLAlchemy
from application import app

db = SQLAlchemy(app)


class User(db.Model):
    id = db.Column(db.interger, primary_key=True)
    username = db.column(db.String(80), unique=True)
    email = db.column(db.String(120), unique=True)

    def __init__(self, username, email):
        self.username = username
        self.email = email

    def __repr__(self):
        return '<User %r>' % self.username


class bucketlist(db.Model):
    id = db.Column(db.interger, primary_key=True)
    Title = db.column(db.String(80))

    def __init__(self, title):
        self.title = title

    def __repr__(self):
        return '<bucketlist %r>' % self.title


class item(db.Model):
    id = db.Column(db.interger, primary_key=True)
    title = db.column(db.STring(80))
    decsription = db.Column(db.String(120))

    def __init__(self, title, description):
        self.title = title
        self.description = description

    def __repr__(self):
        return '<item %r>' % self.title

add models bucketlist and item