Field Name | Data Type | Size | Original Type | Default | Nullable | Description | Check |
---|---|---|---|---|---|---|---|
CustomerID | int | Not null | Primary key. Foreign key to Customer.CustomerID. | ||||
AddressID | int | Not null | Primary key. Foreign key to Address.AddressID. | ||||
AddressTypeID | int | Not null | Address type. Foreign key to AddressType.AddressTypeID. | ||||
rowguid | uniqueidentifier | newid() | Not null | ROWGUIDCOL number uniquely identifying the record. Used to support a merge replication sample. | |||
ModifiedDate | datetime | getdate() | Not null | Date and time the record was last updated. |
The object has no extended properties.
Primary Key Name | Field Names |
---|---|
PK_CustomerAddress_CustomerID_AddressID | CustomerID, AddressID |
Foreign | Primary | Key Name |
---|---|---|
CustomerAddress.AddressID | Address.AddressID | FK_CustomerAddress_Address_AddressID |
CustomerAddress.AddressTypeID | AddressType.AddressTypeID | FK_CustomerAddress_AddressType_AddressTypeID |
CustomerAddress.CustomerID | Customer.CustomerID | FK_CustomerAddress_Customer_CustomerID |
Index Name | Description | Clustered | Unique | Fields |
---|---|---|---|---|
PK_CustomerAddress_CustomerID_AddressID | Clustered index created by a primary key constraint. | Yes | Yes | CustomerID, AddressID |
AK_CustomerAddress_rowguid | Unique nonclustered index. Used to support replication samples. | No | Yes | rowguid |
Name | Description | Type | Enabled |
---|---|---|---|
uCustomerAddress | AFTER UPDATE trigger setting the ModifiedDate column in the CustomerAddress table to the current date. | after Update | Yes |
Object Name | Type | Field Name |
---|---|---|
Sales.uCustomerAddress | trigger | N/A |
Sales.vIndividualCustomer | view | N/A |
Sales.vStoreWithDemographics | view | N/A |