from sqlalchemy import Column
from sqlalchemy import Date
from sqlalchemy import ForeignKey
from sqlalchemy import Integer
from sqlalchemy import String
from sqlalchemy.orm import relationship

from wewallet.application.models import Model


class Billing(Model):
    __tablename__ = 'billings'
    id = Column(Integer, primary_key=True)
    bills = relationship("Bill", backref="billing")


class Bill(Model):
    __tablename__ = 'bills'
    id = Column(Integer, primary_key=True)
    billing_id = Column(Integer, ForeignKey('billings.id'))
    date = Column(Date(), nullable=False)
    place = Column(String)

68e227171d80be555b737f95fc15ee21367ed784
<mask token>


class Bill(Model):
    __tablename__ = 'bills'
    id = Column(Integer, primary_key=True)
    billing_id = Column(Integer, ForeignKey('billings.id'))
    date = Column(Date(), nullable=False)
    place = Column(String)

<mask token>


class Billing(Model):
    <mask token>
    <mask token>
    <mask token>


class Bill(Model):
    __tablename__ = 'bills'
    id = Column(Integer, primary_key=True)
    billing_id = Column(Integer, ForeignKey('billings.id'))
    date = Column(Date(), nullable=False)
    place = Column(String)

<mask token>


class Billing(Model):
    __tablename__ = 'billings'
    id = Column(Integer, primary_key=True)
    bills = relationship('Bill', backref='billing')


class Bill(Model):
    __tablename__ = 'bills'
    id = Column(Integer, primary_key=True)
    billing_id = Column(Integer, ForeignKey('billings.id'))
    date = Column(Date(), nullable=False)
    place = Column(String)

from sqlalchemy import Column
from sqlalchemy import Date
from sqlalchemy import ForeignKey
from sqlalchemy import Integer
from sqlalchemy import String
from sqlalchemy.orm import relationship
from wewallet.application.models import Model


class Billing(Model):
    __tablename__ = 'billings'
    id = Column(Integer, primary_key=True)
    bills = relationship('Bill', backref='billing')


class Bill(Model):
    __tablename__ = 'bills'
    id = Column(Integer, primary_key=True)
    billing_id = Column(Integer, ForeignKey('billings.id'))
    date = Column(Date(), nullable=False)
    place = Column(String)

from sqlalchemy import Column
from sqlalchemy import Date
from sqlalchemy import ForeignKey
from sqlalchemy import Integer
from sqlalchemy import String
from sqlalchemy.orm import relationship

from wewallet.application.models import Model


class Billing(Model):
    __tablename__ = 'billings'
    id = Column(Integer, primary_key=True)
    bills = relationship("Bill", backref="billing")


class Bill(Model):
    __tablename__ = 'bills'
    id = Column(Integer, primary_key=True)
    billing_id = Column(Integer, ForeignKey('billings.id'))
    date = Column(Date(), nullable=False)
    place = Column(String)
