banjar.py 936 Bytes
from sqlalchemy import (
    Column,
    Integer,
    ForeignKey,
    )
from sqlalchemy.ext.declarative import (
    declarative_base,
    declared_attr,
    )
from .provinsi import ProvinsiMixin
from .kabupaten import KabupatenMixin
from .kecamatan import KecamatanMixin
from .kelurahan import KelurahanMixin
from .customer import CustomerMixin
from .perolehan import PerolehanMixin
from .invoice import InvoiceMixin
from .payment import BasePaymentMixin


Base = declarative_base()


class Provinsi(ProvinsiMixin, Base):
    pass


class Kabupaten(KabupatenMixin, Base):
    pass


class Kecamatan(KecamatanMixin, Base):
    __table_args__ = dict(schema=None)


class Kelurahan(KelurahanMixin, Base):
    __table_args__ = dict(schema=None)


class Customer(CustomerMixin, Base):
    pass


class Perolehan(PerolehanMixin, Base):
    pass


class Invoice(InvoiceMixin, Base):
    pass


class Payment(BasePaymentMixin, Base):
    pass