Advertisement
Oslapas

Untitled

Oct 30th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.84 KB | None | 0 0
  1. # Modify this code to update the DB schema diagram.
  2. # To reset the sample schema, replace everything with
  3. # two dots ('..' - without quotes).
  4.  
  5. Customer
  6. -
  7. CustomerID PK int
  8. Name string INDEX
  9. Address1 string
  10. Address2 NULL string
  11. Address3 NULL string
  12.  
  13. Order
  14. -
  15. OrderID PK int
  16. CustomerID int FK >- Customer.CustomerID
  17. TotalAmount money
  18. OrderStatusID int FK >- os.OrderStatusID
  19.  
  20. OrderLine as ol
  21. ----
  22. OrderLineID PK int
  23. OrderID int FK >- Order.OrderID
  24. ProductID int FK >- p.ProductID
  25. Quantity int
  26.  
  27. # Table documentation comment 1 (try the PDF/RTF export)
  28. Product as p # Table documentation comment 2
  29. ------------
  30. ProductID PK int
  31. # Field documentation comment 1
  32. # Field documentation comment 2
  33. Name varchar(200) UNIQUE # Field documentation comment 3
  34. Price money
  35.  
  36. OrderStatus as os
  37. ----
  38. OrderStatusID PK int
  39. Name UNIQUE string
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement