banjar.py
936 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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