Commit e6687c42 by Owo Sugiana

Tambah tabel pbb_invoice

1 parent 1555f0a1
3.0.1 2023-04-14
----------------
- Tambah tabel pbb_invoice yang merupakan salinan tabel sppt. Tabel ini diisi
oleh synchronizer sppt.
3.0 2023-03-27
--------------
- Class yang tidak bergantung pada command line argument
......
......@@ -194,9 +194,37 @@ class Pbb(Base, Common):
# Bit 32
bank_id = Column(String(4))
tgl_batal = Column(DateTime(timezone=True))
__table_args__ = dict(
__table_args__ = (
UniqueConstraint(
kd_propinsi, kd_dati2, kd_kecamatan, kd_kelurahan,
kd_blok, no_urut, kd_jns_op, thn_pajak_sppt,
pembayaran_sppt_ke),
)
class PbbInvoice(Base):
__tablename__ = 'pbb_invoice'
id = Column(Integer, primary_key=True)
# Field sppt.kd_propinsi
kd_propinsi = Column(String(2), nullable=False)
# Field sppt.kd_dati2
kd_dati2 = Column(String(2), nullable=False)
# Field sppt.kd_kecamatan
kd_kecamatan = Column(String(3), nullable=False)
# Field sppt.kd_kelurahan
kd_kelurahan = Column(String(3), nullable=False)
# Field sppt.kd_blok
kd_blok = Column(String(3), nullable=False)
# Field sppt.no_urut
no_urut = Column(String(4), nullable=False)
# Field sppt.kd_jns_op
kd_jns_op = Column(String(1), nullable=False)
# Field sppt.thn_pajak_sppt
thn_pajak_sppt = Column(String(4), nullable=False)
# Field sppt.pbb_yg_harus_dibayar_sppt
pbb_yg_harus_dibayar_sppt = Column(Float, nullable=False)
__table_args__ = (
UniqueConstraint(
kd_propinsi, kd_dati2, kd_kecamatan, kd_kelurahan,
kd_blok, no_urut, kd_jns_op, thn_pajak_sppt),
)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!