Difference between revisions of "Sales.CreditCard (table)"
| Line 18: | Line 18: | ||
| '''Nullable | | '''Nullable | ||
| '''Default | | '''Default | ||
| − | | '''Description | + | | '''Description |
|- valign="top" | |- valign="top" | ||
| Line 25: | Line 25: | ||
| not null | | not null | ||
| | | | ||
| − | | Primary key for CreditCard records. | + | | Primary key for CreditCard records. |
|- valign="top" | |- valign="top" | ||
| CardType | | CardType | ||
| Line 31: | Line 31: | ||
| not null | | not null | ||
| | | | ||
| − | | Credit card name. | + | | Credit card name. |
|- valign="top" | |- valign="top" | ||
| CardNumber | | CardNumber | ||
| Line 37: | Line 37: | ||
| not null | | not null | ||
| | | | ||
| − | | Credit card number. | + | | Credit card number. |
|- valign="top" | |- valign="top" | ||
| ExpMonth | | ExpMonth | ||
| Line 43: | Line 43: | ||
| not null | | not null | ||
| | | | ||
| − | | Credit card expiration month. | + | | Credit card expiration month. |
|- valign="top" | |- valign="top" | ||
| ExpYear | | ExpYear | ||
| Line 49: | Line 49: | ||
| not null | | not null | ||
| | | | ||
| − | | Credit card expiration year. | + | | Credit card expiration year. |
|- valign="top" | |- valign="top" | ||
| ModifiedDate | | ModifiedDate | ||
| Line 55: | Line 55: | ||
| not null | | not null | ||
| (getdate()) | | (getdate()) | ||
| − | | Date and time the record was last updated. | + | | Date and time the record was last updated. |
|} | |} | ||
| + | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
| + | |- style="background:silver" | ||
| + | | '''Primary Key | ||
| + | | '''Columns | ||
| + | |- | ||
| + | | PK_CreditCard_CreditCardID | ||
| + | | CreditCardID | ||
| + | |} | ||
| + | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
| + | |- style="background:silver" | ||
| + | | '''Index | ||
| + | | '''Type | ||
| + | | '''Columns | ||
| + | |||
| + | |- | ||
| + | | AK_CreditCard_CardNumber | ||
| + | | Unique | ||
| + | | CardNumber | ||
| + | |} | ||
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | {| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse" | ||
Revision as of 22:36, 2 February 2010
wikibot
| Table | Sales.CreditCard |
| Description | Customer credit card information. |
| Column | Data Type | Nullable | Default | Description |
| CreditCardID | int | not null | Primary key for CreditCard records. | |
| CardType | nvarchar(50) | not null | Credit card name. | |
| CardNumber | nvarchar(25) | not null | Credit card number. | |
| ExpMonth | tinyint | not null | Credit card expiration month. | |
| ExpYear | smallint | not null | Credit card expiration year. | |
| ModifiedDate | datetime | not null | (getdate()) | Date and time the record was last updated. |
| Primary Key | Columns |
| PK_CreditCard_CreditCardID | CreditCardID |
| Index | Type | Columns |
| AK_CreditCard_CardNumber | Unique | CardNumber |
| Detail Table | Column | Referencing Column |
| Sales.ContactCreditCard | CreditCardID | CreditCardID |
| Sales.SalesOrderHeader | CreditCardID | CreditCardID |
automatically generated
| Table | Sales.CreditCard |
| Description | Customer credit card information. |
| Column | Data Type | Nullable | Default | Description / PK / Index |
| CreditCardID | int | not null | Primary key for CreditCard records. PK_CreditCard_CreditCardID | |
| CardType | nvarchar(50) | not null | Credit card name. | |
| CardNumber | nvarchar(25) | not null | Credit card number. AK_CreditCard_CardNumber | |
| ExpMonth | tinyint | not null | Credit card expiration month. | |
| ExpYear | smallint | not null | Credit card expiration year. | |
| ModifiedDate | datetime | not null | (GETDATE()) | Date and time the record was last updated. |
| Detail Table | Column | Referencing Column |
| Sales.ContactCreditCard | CreditCardID | CreditCardID |
| Sales.SalesOrderHeader | CreditCardID | CreditCardID |
| Dependency Type | Object Type | Referenced Object |
| Schema | Schema | Sales |