| PK | Key | Identity | Name | Data Type | Allow Nulls | Collation | References | Default | Computed | Compute Expression |
|   |   |   | SalesOrderID | int |   | | | |   | |
| |   |   | RevisionNumber | tinyint |   | | | ((0)) |   | |
| |   |   | OrderDate | datetime |   | | | (getdate()) |   | |
| |   |   | DueDate | datetime |   | | | |   | |
| |   |   | ShipDate | datetime |   | | | |   | |
| |   |   | Status | tinyint |   | | | ((1)) |   | |
| |   |   | OnlineOrderFlag | bit(1) |   | | | ((1)) |   | |
| |   |   | SalesOrderNumber | nvarchar(50) |   | SQL_Latin1_General_CP1_CI_AS | | |   | (isnull(N'SO'+CONVERT([nvarchar](23),[SalesOrderID],0),N'*** ERROR ***')) |
| |   |   | PurchaseOrderNumber | nvarchar(50) |   | SQL_Latin1_General_CP1_CI_AS | | |   | |
| |   |   | AccountNumber | nvarchar(30) |   | SQL_Latin1_General_CP1_CI_AS | | |   | |
| |   |   | CustomerID | int |   | | Sales.Customer.CustomerID | |   | |
| |   |   | ContactID | int |   | | Person.Contact.ContactID | |   | |
| |   |   | SalesPersonID | int |   | | Sales.SalesPerson.SalesPersonID | |   | |
| |   |   | TerritoryID | int |   | | Sales.SalesTerritory.TerritoryID | |   | |
| |   |   | BillToAddressID | int |   | | Person.Address.AddressID | |   | |
| |   |   | ShipToAddressID | int |   | | Person.Address.AddressID | |   | |
| |   |   | ShipMethodID | int |   | | Purchasing.ShipMethod.ShipMethodID | |   | |
| |   |   | CreditCardID | int |   | | Sales.CreditCard.CreditCardID | |   | |
| |   |   | CreditCardApprovalCode | varchar(15) |   | SQL_Latin1_General_CP1_CI_AS | | |   | |
| |   |   | CurrencyRateID | int |   | | Sales.CurrencyRate.CurrencyRateID | |   | |
| |   |   | SubTotal | money |   | | | ((0.00)) |   | |
| |   |   | TaxAmt | money |   | | | ((0.00)) |   | |
| |   |   | Freight | money |   | | | ((0.00)) |   | |
| |   |   | TotalDue | money |   | | | |   | (isnull(([SubTotal]+[TaxAmt])+[Freight],(0))) |
| |   |   | Comment | nvarchar(256) |   | SQL_Latin1_General_CP1_CI_AS | | |   | |
| |   |   | rowguid | uniqueidentifier |   | | | (newid()) |   | |
| |   |   | ModifiedDate | datetime |   | | | (getdate()) |   | |