Database – Loan Table (loan_entity)
This table holds core loan information, including IDs of associated entities and modification information. This is only the information required to create the loan, and does not contain the numbers used to calculate the loan, which can be found in the loan_setup_entity table.
This table is commonly used to find:
- IDs of entities associated to a loan
- Loan creation date
- Last date daily maintenance was run on a loan
When querying the database, it is common to join the loan_entity table with the loan_setup_entity table. A query like this will join them:
FROM loan_entity le
JOIN loan_setup_entity lse
ON le.setup_id = lse.id;
The ID of the loan. This is the system ID, which is a column option in the Loan Manager.
Loan display ID. This ID is assigned by the user and is displayed as the ID for the loan inside the LoanPro user interface.
The title of the loan. This field is not commonly used, and is set to the display ID by default. It can't be updated via the UI, but can be changed using the API.
This is the ID of the associated Insurance entity. The Insurance entity keeps track of information for policies that insure loan collateral.
This field shows the total number of modifications for a loan. If the loan has not been modified, it will show 0.
This is the date on which the most recent action that required human activity was performed on the loan.
Daily Maintenance is a process that runs to update loan information such as dates, accrued interest, automated fees, etc. This field holds the date and time when daily maintenance was last run on an account.
This field holds the date and time when the loan was created, in the form of a timestamp that looks like this "/Date(1561593600)/". The numeric portion of the value is a Unix timestamp.
This field holds the date and time when the loan was last updated, in the form of a timestamp that looks like this "/Date(1561593600)/". The numeric portion of the value is a Unix timestamp.
This field holds the ID of the Agent User that created the loan. The Agent Users table is not found in the database, but the IDs and associated names can be found in the user interface.
This shows whether the entity is active or not. This is not whether the loan is activated or whether the loan is live. This field/value will have no bearing on the loan.
1 - Active
0 - Inactive
This value shows if the loan is archived (1) or active (0).
1 - Archived
0 - Not archived
This is the loan alert for the loan. If no loan alert has been created for a loan, the value will be NULL.
This value shows whether the entity has been deleted (1) or whether it is available (0). If the entity has been deleted, it will not be available via the UI or API.
1 - Deleted
0 - Not deleted
This field holds the date and time when the loan was deleted, in the form of a timestamp that looks like this "/Date(1561593600)/". The numeric portion of the value is a Unix timestamp.
This value shows whether the account is temporary (1) or not(0). A temporary account is usually created via the LoanPro quick quote tool, and will be automatically deleted after 24 hours.
1 - Temporary
0 - Normal