ERP/3.0/Developers Guide/Database Model/org.openbravo.model.ad.access/AD Audit Trail
AD_Audit_Trail
- Name:AD_Audit_Trail
- Classname:AD_Audit_Trail_Raw
This table contains the following columns:
Name | Nullable | Data Type | Description
|
AD_Audit_Trail_ID | No | VARCHAR (32) | |
Action | Yes | VARCHAR (60) | The Action field indicates the Action to be performed for this element. |
Isactive | No | CHAR (1) | There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reporting. There are two reasons for de-activating and not deleting records:
(1) The system requires the record for auditing purposes. (2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are existing invoices for it. By de-activating the Business Partner you prevent it from being used in future transactions. |
AD_Client_ID | Yes | VARCHAR (32) | A Client is a company or a legal entity. You cannot share data between Clients. |
AD_Column_ID | No | VARCHAR (32) | Link to the database column of the table |
Createdby | Yes | VARCHAR (32) | The Created By field indicates the user who created this record. |
Created | Yes | TIMESTAMP (7) | The Created field indicates the date that this record was created. |
Event_Time | Yes | TIMESTAMP (7) | Date and time when the event was performed. |
NEW_Char | Yes | VARCHAR (4000) | |
NEW_Date | Yes | TIMESTAMP (7) | |
NEW_Nchar | Yes | NVARCHAR (2000) | |
NEW_Number | Yes | DECIMAL | |
NEW_Text | Yes | CLOB | |
OLD_Char | Yes | VARCHAR (4000) | |
OLD_Date | Yes | TIMESTAMP (7) | |
OLD_Nchar | Yes | NVARCHAR (2000) | |
OLD_Number | Yes | DECIMAL | |
OLD_Text | Yes | CLOB | |
AD_Org_ID | Yes | VARCHAR (32) | An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations. |
Process_ID | Yes | VARCHAR (32) | Identifies the process that triggered the change. |
Processtype | Yes | VARCHAR (60) | Type of process that triggered the change. |
Record_ID | Yes | VARCHAR (32) | The Record ID is the internal unique identifier of a record |
Record_Revision | Yes | DECIMAL | It is a consecutive number that identifies a revision of a record. Each edition on a record in an audited table increases this revision by 1. |
AD_Table_ID | No | VARCHAR (32) | The Table indicates the table in which a field or fields reside. |
Updated | Yes | TIMESTAMP (7) | The Updated field indicates the date that this record was updated. |
Updatedby | Yes | VARCHAR (32) | The Updated By field indicates the user who updated this record. |
AD_User_ID | Yes | VARCHAR (32) | The User identifies a unique user in the system. This could be an internal user or a business partner contact |
Columns
AD_Audit_Trail_ID
- Physical column name: AD_Audit_Trail_ID
- Property Name: id
- Reference: ID
Action
- Physical column name: Action
- Property Name: action
- Reference: String
- This column is part of the table's identifier
Active
- Physical column name: Isactive
- Property Name: active
- Reference: YesNo
- Default value: Y
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
Foreign key column to AD_Client table, (column: AD_Client_ID)
It has a validation "AD_Client Security validation", with the following code
AD_Client.AD_Client_ID in (@#User_Client@)
Column
- Physical column name: AD_Column_ID
- Property Name: column
- Reference: String
- This column is part of the table's identifier
Created By
- Physical column name: Createdby
- Property Name: createdBy
- Reference: String
- Default value: 0
Creation Date
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
- Default value: SYSDATE
EventTime
- Physical column name: Event_Time
- Property Name: eventTime
- Reference: Date
- This column is part of the table's identifier
New Char
- Physical column name: NEW_Char
- Property Name: newChar
- Reference: Text
New Date
- Physical column name: NEW_Date
- Property Name: newDate
- Reference: Date
New NChar
- Physical column name: NEW_Nchar
- Property Name: newNChar
- Reference: String
New Number
- Physical column name: NEW_Number
- Property Name: newNumber
- Reference: Number
New Text
- Physical column name: NEW_Text
- Property Name: newText
- Reference: Text
Old Char
- Physical column name: OLD_Char
- Property Name: oldChar
- Reference: Text
Old Date
- Physical column name: OLD_Date
- Property Name: oldDate
- Reference: Date
Old NChar
- Physical column name: OLD_Nchar
- Property Name: oldNChar
- Reference: String
Old Number
- Physical column name: OLD_Number
- Property Name: oldNumber
- Reference: Number
Old Text
- Physical column name: OLD_Text
- Property Name: oldText
- Reference: Text
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
It has a validation "AD_Org Security validation", with the following code
(@AD_Client_ID@='0' AND AD_Org.AD_Org_ID='0') OR (@AD_Client_ID@!='0' AND ((AD_Org.AD_Client_ID IN (@#User_Client@) AND AD_Org.AD_Org_ID IN (@#User_Org@)) OR AD_Org.AD_Org_ID='0' AND AD_Org.IsSummary='N'))
Process
- Physical column name: Process_ID
- Property Name: process
- Reference: String
Process Type
- Physical column name: Processtype
- Property Name: processType
- Reference: String
Record ID
- Physical column name: Record_ID
- Property Name: recordID
- Reference: String
- This column is part of the table's identifier
Record Revision
- Physical column name: Record_Revision
- Property Name: recordRevision
- Reference: Integer
Table
- Physical column name: AD_Table_ID
- Property Name: table
- Reference: String
- This column is part of the table's identifier
Updated
- Physical column name: Updated
- Property Name: updated
- Reference: DateTime
- Default value: SYSDATE
Updated By
- Physical column name: Updatedby
- Property Name: updatedBy
- Reference: String
- Default value: 0
User/Contact
- Physical column name: AD_User_ID
- Property Name: userContact
- Reference: String
- This column is part of the table's identifier
Other Info
Indices
These are the indices for this table (for each index there is a list of all the columns included within it):
- AD_AUDIT_TRAIL_INSERT_IDX Not Unique. Columns:
- AD_TABLE_ID
- RECORD_ID
- RECORD_REVISION
![]() | Back to org.openbravo.model.ad.access |