Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | serial | 10 | √ | nextval('stok_awal_barang_id_seq'::regclass) |
|
|
|||||
| id_barang | int4 | 10 | null |
|
|
||||||
| id_gudang | int4 | 10 | null |
|
|
||||||
| id_rak_barang | int4 | 10 | null |
|
|
||||||
| batch | varchar | 2147483647 | null |
|
|
||||||
| expired_date | date | 13 | null |
|
|
||||||
| qty | numeric | 0 | null |
|
|
||||||
| id_satuan | int4 | 10 | null |
|
|
||||||
| hpp | numeric | 0 | null |
|
|
||||||
| jenis | varchar | 2147483647 | 'REGULER'::character varying |
|
|
||||||
| id_supplier | int4 | 10 | √ | null |
|
|
|||||
| id_tipe_diskon | int4 | 10 | √ | null |
|
|
|||||
| id_ketentuan_retur | int4 | 10 | √ | null |
|
|
|||||
| diskon_persen_1 | numeric | 0 | '0'::numeric |
|
|
||||||
| diskon_rp_1 | numeric | 0 | '0'::numeric |
|
|
||||||
| diskon_persen_2 | numeric | 0 | '0'::numeric |
|
|
||||||
| diskon_rp_2 | numeric | 0 | '0'::numeric |
|
|
||||||
| diskon_persen_3 | numeric | 0 | '0'::numeric |
|
|
||||||
| diskon_rp_3 | numeric | 0 | '0'::numeric |
|
|
||||||
| total | numeric | 0 | '0'::numeric |
|
|
||||||
| harga_jual | numeric | 0 | '0'::numeric |
|
|
||||||
| profit_margin | numeric | 0 | '0'::numeric |
|
|
||||||
| profit_margin_rp | numeric | 0 | '0'::numeric |
|
|
||||||
| harga_jual_grosir | numeric | 0 | '0'::numeric |
|
|
||||||
| persen_jual_grosir | numeric | 0 | '0'::numeric |
|
|
||||||
| profit_margin_grosir | numeric | 0 | '0'::numeric |
|
|
||||||
| harga_jual_luar_kota | numeric | 0 | '0'::numeric |
|
|
||||||
| persen_jual_luar_kota | numeric | 0 | '0'::numeric |
|
|
||||||
| profit_margin_luar_kota | numeric | 0 | '0'::numeric |
|
|
||||||
| harga_jual_tender | numeric | 0 | '0'::numeric |
|
|
||||||
| persen_jual_tender | numeric | 0 | '0'::numeric |
|
|
||||||
| profit_margin_tender | numeric | 0 | '0'::numeric |
|
|
||||||
| harga_beli | numeric | 0 | '0'::numeric |
|
|
||||||
| harga_beli_jatuh | numeric | 0 | '0'::numeric |
|
|
||||||
| profit_discount | numeric | 0 | '0'::numeric |
|
|
||||||
| created_by | int4 | 10 | null |
|
|
||||||
| created_at | timestamp | 29,6 | √ | now() |
|
|
|||||
| updated_by | int4 | 10 | null |
|
|
||||||
| updated_at | timestamp | 29,6 | √ | now() |
|
|
|||||
| deleted_by | int4 | 10 | √ | null |
|
|
|||||
| deleted_at | timestamp | 29,6 | √ | null |
|
|
|||||
| deleted_reason | text | 2147483647 | ''::text |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| stok_awal_barang_pkey | Primary key | Asc | id |

