ERP/3.0/Developers Guide/Database Model/org.openbravo.model.common.geography/C City
Contents |
C_City
- Name:C_City
- Classname:City
This table contains the following columns:
Name | Nullable | Data Type | Description
|
Locode | Yes | VARCHAR (10) | UN/Locode is a combination of a 2-character country code and a 3-character location code, e.g. BEANR is known as the city of Antwerp (ANR) which is located in Belgium (BE). |
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. |
AreaCode | Yes | VARCHAR (10) | Phone Area Code |
C_City_ID | No | VARCHAR (32) | City in a country |
AD_Client_ID | No | VARCHAR (32) | A Client is a company or a legal entity. You cannot share data between Clients. |
Coordinates | Yes | VARCHAR (15) | This column contains the geographical coordinates (latitude/longitude) of the location.<p>In order to avoid unnecessary use of non-standard characters and space, the following standard presentation is used: 0000N 00000W 0000S 00000E where the tw |
C_Country_ID | Yes | VARCHAR (32) | The Country defines a Country. Each Country must be defined before it can be used in any document. |
CreatedBy | No | VARCHAR (32) | The Created By field indicates the user who created this record. |
Created | No | TIMESTAMP (7) | The Created field indicates the date that this record was created. |
Name | No | NVARCHAR (60) | A more descriptive identifier (that does need to be unique) of a record/document that is used as a default search option along with the search key (that is unique and mostly shorter). It is up to 60 characters in length. |
AD_Org_ID | No | VARCHAR (32) | An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations. |
Postal | Yes | VARCHAR (10) | The Postal Code field identifies the postal code for this entity's address. |
C_Region_ID | Yes | VARCHAR (32) | The Region identifies a unique Region for this Country. |
Updated | No | TIMESTAMP (7) | The Updated field indicates the date that this record was updated. |
UpdatedBy | No | VARCHAR (32) | The Updated By field indicates the user who updated this record. |
Columns
Abbreviation
- Physical column name: Locode
- Property Name: abbreviation
- Reference: String
Active
- Physical column name: IsActive
- Property Name: active
- Reference: YesNo
- Default value: Y
Area Code
- Physical column name: AreaCode
- Property Name: areaCode
- Reference: String
City
- Physical column name: C_City_ID
- Property Name: id
- Reference: ID
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@)
Coordinates
- Physical column name: Coordinates
- Property Name: coordinates
- Reference: String
Country
- Physical column name: C_Country_ID
- Property Name: country
- Reference: TableDir
Foreign key column to C_Country table, (column: C_Country_ID)
Created By
- Physical column name: CreatedBy
- Property Name: createdBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Creation Date
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
- Default value: SYSDATE
Name
- Physical column name: Name
- Property Name: name
- Reference: String
- This column is part of the table's identifier
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
Postal Code
- Physical column name: Postal
- Property Name: postalCode
- Reference: String
Region
- Physical column name: C_Region_ID
- Property Name: region
- Reference: Table
- This column is a child for a business object (is Parent)
Foreign key column to C_Region table, (column: C_Region_ID)
It has a validation "C_Region of Country", with the following code
C_Region.C_Country_ID=@C_Country_ID@
Updated
- Physical column name: Updated
- Property Name: updated
- Reference: DateTime
- Default value: SYSDATE
Updated By
- Physical column name: UpdatedBy
- Property Name: updatedBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Other Info
Indices
These are the indices for this table (for each index there is a list of all the columns included within it):
- C_CITY_REGION_IDX Not Unique. Columns:
- C_REGION_ID
Check Constraints
These are the check constraints for this table:
- C_CITY_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')