Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments |
|---|---|---|---|---|---|---|---|---|
| id | bigserial | 19 | √ | nextval('tbl_assets_history_id_seq'::regclass) |
|
|
Primary key |
|
| asset_id | int8 | 19 | null |
|
|
FK: public.tbl_assets.id |
||
| asset_type_id | int8 | 19 | null |
|
|
FK: public.tbl_asset_type.id |
||
| serial_number | varchar | 30 | null |
|
|
The asset’s unique identifier/Serial Number at the time of the event. |
||
| asset_name | varchar | 100 | null |
|
|
The descriptive name of the asset. |
||
| brand_name | varchar | 100 | √ | null |
|
|
The brand or manufacturer of the asset. |
|
| status | varchar | 20 | √ | null |
|
|
The status of the asset at the time of the event. |
|
| non_recoverable | bool | 1 | √ | null |
|
|
Boolean flag: Indicates if the asset is non-recoverable (e.g., small consumable items). |
|
| allocation_type | varchar | 20 | null |
|
|
The type of allocation. |
||
| branch_location_id | int8 | 19 | √ | null |
|
|
FK: public.tbl_branch.id |
|
| purchase_date | date | 13 | √ | null |
|
|
The date the asset was purchased. |
|
| purchase_cost | numeric | 0 | √ | null |
|
|
The original purchase cost of the asset. |
|
| depreciation_percentage | numeric | 0 | √ | null |
|
|
The annual depreciation rate applicable to the asset. |
|
| depreciation_frequency | varchar | 20 | √ | null |
|
|
How often depreciation is calculated (e.g., MONTHLY, QUARTERLY, ANNUALLY). |
|
| vendor_id | int8 | 19 | √ | null |
|
|
FK: public.tbl_vendor.id |
|
| renewal_date | date | 13 | √ | null |
|
|
Next expected renewal date (e.g., for licenses or service agreements). |
|
| expiration_date | date | 13 | √ | null |
|
|
The date the asset is expected to expire or become obsolete. |
|
| warranty_end_date | date | 13 | √ | null |
|
|
The expiration date of the asset’s warranty. |
|
| insurance_expiration_date | date | 13 | √ | null |
|
|
The expiration date of the asset’s insurance policy. |
|
| description | varchar | 1000 | √ | null |
|
|
Detailed description or specifications of the asset. |
|
| attachments | text | 2147483647 | √ | null |
|
|
File paths or links to primary asset attachments (e.g., invoices, manuals). |
|
| allocation_date | date | 13 | √ | null |
|
|
The date the asset was last allocated to a user or department. |
|
| allocated_to | text | 2147483647 | √ | null |
|
|
The ID(s) of the employee currently holding the asset (Text format for multiple assignments, comma separated employee ids). |
|
| return_date | date | 13 | √ | null |
|
|
The date the asset was officially returned from the allocated party (if applicable). |
|
| allocation_remarks | varchar | 1000 | √ | null |
|
|
Remarks/notes related to the last allocation or return event. |
|
| allocation_attachments | text | 2147483647 | √ | null |
|
|
File paths or links to attachments related to the allocation (e.g., sign-off forms). |
|
| history_type | varchar | 50 | √ | null |
|
|
The nature of the event that triggered this history record creation. |
|
| createdby | varchar | 50 | √ | null |
|
|
||
| createddate | timestamp | 29,6 | √ | null |
|
|
||
| modifiedby | varchar | 50 | √ | null |
|
|
||
| modifieddate | timestamp | 29,6 | √ | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| pk_tbl_assets_history | Primary key | Asc | id |
