#!/usr/bin/python
# -*- coding: utf-8 -*-
from app_config import app
from flask_sqlalchemy import SQLAlchemy

db = SQLAlchemy(app)
# 创建数据库模型
class Info(db.Model):
    __tablename__ = 'house_info'
    h_no = db.Column(db.Integer, primary_key=True)
    title = db.Column(db.String(2000), nullable=True)
    type = db.Column(db.String(2000), nullable=True)
    area = db.Column(db.Float, nullable=True)
    face = db.Column(db.String(2000), nullable=True)
    floor = db.Column(db.String(2000), nullable=True)
    addr_dist = db.Column(db.String(2000), nullable=True)
    addr_name = db.Column(db.String(2000), nullable=True)
    price = db.Column(db.Float, nullable=True)

    def __repr__(self):
        return '<Info %r>' % self.job
87953321b9d3809f5a959103e8456383dbc6d247
<mask token>


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

    def __repr__(self):
        return '<Info %r>' % self.job

<mask token>


class Info(db.Model):
    __tablename__ = 'house_info'
    h_no = db.Column(db.Integer, primary_key=True)
    title = db.Column(db.String(2000), nullable=True)
    type = db.Column(db.String(2000), nullable=True)
    area = db.Column(db.Float, nullable=True)
    face = db.Column(db.String(2000), nullable=True)
    floor = db.Column(db.String(2000), nullable=True)
    addr_dist = db.Column(db.String(2000), nullable=True)
    addr_name = db.Column(db.String(2000), nullable=True)
    price = db.Column(db.Float, nullable=True)

    def __repr__(self):
        return '<Info %r>' % self.job

<mask token>
db = SQLAlchemy(app)


class Info(db.Model):
    __tablename__ = 'house_info'
    h_no = db.Column(db.Integer, primary_key=True)
    title = db.Column(db.String(2000), nullable=True)
    type = db.Column(db.String(2000), nullable=True)
    area = db.Column(db.Float, nullable=True)
    face = db.Column(db.String(2000), nullable=True)
    floor = db.Column(db.String(2000), nullable=True)
    addr_dist = db.Column(db.String(2000), nullable=True)
    addr_name = db.Column(db.String(2000), nullable=True)
    price = db.Column(db.Float, nullable=True)

    def __repr__(self):
        return '<Info %r>' % self.job

from app_config import app
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy(app)


class Info(db.Model):
    __tablename__ = 'house_info'
    h_no = db.Column(db.Integer, primary_key=True)
    title = db.Column(db.String(2000), nullable=True)
    type = db.Column(db.String(2000), nullable=True)
    area = db.Column(db.Float, nullable=True)
    face = db.Column(db.String(2000), nullable=True)
    floor = db.Column(db.String(2000), nullable=True)
    addr_dist = db.Column(db.String(2000), nullable=True)
    addr_name = db.Column(db.String(2000), nullable=True)
    price = db.Column(db.Float, nullable=True)

    def __repr__(self):
        return '<Info %r>' % self.job

#!/usr/bin/python
# -*- coding: utf-8 -*-
from app_config import app
from flask_sqlalchemy import SQLAlchemy

db = SQLAlchemy(app)
# 创建数据库模型
class Info(db.Model):
    __tablename__ = 'house_info'
    h_no = db.Column(db.Integer, primary_key=True)
    title = db.Column(db.String(2000), nullable=True)
    type = db.Column(db.String(2000), nullable=True)
    area = db.Column(db.Float, nullable=True)
    face = db.Column(db.String(2000), nullable=True)
    floor = db.Column(db.String(2000), nullable=True)
    addr_dist = db.Column(db.String(2000), nullable=True)
    addr_name = db.Column(db.String(2000), nullable=True)
    price = db.Column(db.Float, nullable=True)

    def __repr__(self):
        return '<Info %r>' % self.job