
    i                         d Z ddlmZ ddlmZ ddlmZ ddlmZ  G d de      Z	 G d d	e      Z
 G d
 de      Z G d de      Z G d de      Zy)z+Schemas for the Dashboard summary endpoint.    )date)Decimal)Optional)	BaseModelc                   h    e Zd ZU eed<   eed<   dZee   ed<   eed<   dZ	ee   ed<   dZ
ee   ed<   y)DashboardTangkiStatus	tangki_idtangki_namaNproduk_namakapasitas_litervolume_terakhir
persen_isi)__name__
__module____qualname__int__annotations__strr   r   r   r   r        7/var/www/html/spbu.com/backend/app/schemas/dashboard.pyr   r   
   s?    N!%K#%)-OXg&-$(J!(r   r   c                   @    e Zd ZU eed<   eed<   eed<   eed<   eed<   y)DashboardProdukSales	produk_idr   produk_kodetotal_volumetotal_nilaiN)r   r   r   r   r   r   r   r   r   r   r   r      s    Nr   r   c                   J    e Zd ZU eed<   eed<   dZee   ed<   dZee   ed<   y)DashboardShiftStatusshift_id
shift_namaNlaporan_statusstock_status)	r   r   r   r   r   r   r"   r   r#   r   r   r   r   r      s(    MO$(NHSM("&L(3-&r   r   c                   J    e Zd ZU eed<   dZee   ed<   eed<   eed<   e	ed<   y)DashboardPenebusanPendingidNno_dostatustanggalr   )
r   r   r   r   r   r'   r   r   r   r   r   r   r   r%   r%   "   s%    GE8C=KMr   r%   c                      e Zd ZU dZeed<   eed<    ed      Zeed<    ed      Zeed<    ed      Z	eed<    ed      Z
eed<    ed      Zeed	<   g Zee   ed
<   g Zee   ed<   g Zee   ed<   g Zee   ed<   dZeed<   dZeed<   y)DashboardSummaryz+Aggregated dashboard data for a date range.tanggal_mulaitanggal_akhir0total_penjualan_volumetotal_penjualan_nilaitotal_expensestotal_penyetorantotal_penerimaan_volumeproduk_salestangki_statusshift_statuspenebusan_pendingr   anomali_countlaporan_pending_countN)r   r   r   __doc__r   r   r   r/   r0   r1   r2   r3   r4   listr   r5   r   r6   r   r7   r%   r8   r   r9   r   r   r   r+   r+   *   s    5 '.clG2%,S\71%clNG* 'g,'.s|W3 02L$+,1 24M4-.3 02L$+,1 :<t56; M3!"3"r   r+   N)r:   datetimer   decimalr   typingr   pydanticr   r   r   r   r%   r+   r   r   r   <module>r@      sP    1    )I )9 '9 '	 #y #r   