import os, flask, flask_socketio, flask_sqlalchemy, psycopg2, app, chat

#app = flask.Flask(__name__)
#socketio = flask_socketio.SocketIO(app)

#app.app.config['SQLALCHEMY_DATABASE_URI'] = 'postgresql://leaky:admin@localhost/postgres' 
app.app.config['SQLALCHEMY_DATABASE_URI'] = os.getenv("DATABASE_URL")
db = flask_sqlalchemy.SQLAlchemy(app.app)
# creates a database objectç


class Message(db.Model): 
    #__tablename__ = 'message'
    id = db.Column(db.Integer, primary_key=True)
    text = db.Column(db.String(200))
    
    def __init__(self, text):
        self.text = text
        
    def __repr__(self):
        return '<Message text: %s>' % self.text 
4472ba8e127565c87e659436cd17060f22e49393
<mask token>


class Message(db.Model):
    <mask token>
    <mask token>

    def __init__(self, text):
        self.text = text
    <mask token>

<mask token>


class Message(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    text = db.Column(db.String(200))

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

    def __repr__(self):
        return '<Message text: %s>' % self.text

<mask token>
app.app.config['SQLALCHEMY_DATABASE_URI'] = os.getenv('DATABASE_URL')
db = flask_sqlalchemy.SQLAlchemy(app.app)


class Message(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    text = db.Column(db.String(200))

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

    def __repr__(self):
        return '<Message text: %s>' % self.text

import os, flask, flask_socketio, flask_sqlalchemy, psycopg2, app, chat
app.app.config['SQLALCHEMY_DATABASE_URI'] = os.getenv('DATABASE_URL')
db = flask_sqlalchemy.SQLAlchemy(app.app)


class Message(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    text = db.Column(db.String(200))

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

    def __repr__(self):
        return '<Message text: %s>' % self.text

import os, flask, flask_socketio, flask_sqlalchemy, psycopg2, app, chat

#app = flask.Flask(__name__)
#socketio = flask_socketio.SocketIO(app)

#app.app.config['SQLALCHEMY_DATABASE_URI'] = 'postgresql://leaky:admin@localhost/postgres' 
app.app.config['SQLALCHEMY_DATABASE_URI'] = os.getenv("DATABASE_URL")
db = flask_sqlalchemy.SQLAlchemy(app.app)
# creates a database objectç


class Message(db.Model): 
    #__tablename__ = 'message'
    id = db.Column(db.Integer, primary_key=True)
    text = db.Column(db.String(200))
    
    def __init__(self, text):
        self.text = text
        
    def __repr__(self):
        return '<Message text: %s>' % self.text 