rudiw

Berbatik Booking

May 20th, 2012
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.86 KB | None | 0 0
  1. Drop Database If Exists berbatik_java;
  2. Create Database berbatik_java;
  3. Use berbatik_java;
  4.  
  5. Drop Table If Exists booking;
  6. Create Table booking(
  7. booking_id Long Not Null Primary Key,
  8. person_id Long Not Null,
  9. magento_customer_id Int Not Null,
  10. status Varchar(20),
  11. created Date,
  12. last_modified Date,
  13. sub_total Decimal(15, 2),
  14. book_count Int,
  15. decrease_count Int,
  16. cancel_count Int,
  17. person_name Varchar(50)
  18. );
  19.  
  20. Drop Table If Exists detail_booking;
  21. Create Table detail_booking(
  22. booking_id Long Not Null,
  23. product_id Char(10) Not Null,
  24. magento_product_id Int Not Null,
  25. shop_id Char(10),
  26. price Decimal(15, 2),
  27. qty Int,
  28. created Date,
  29. last_modified Date,
  30. status Varchar(20),
  31. name Varchar(50),
  32. local_sku Char(10),
  33. attibutes Varchar(100),
  34. Constraint Primary Key (booking_id, product_id),
  35. Constraint Foreign Key (booking_id) References booking(booking_id)
  36. );
Advertisement
Add Comment
Please, Sign In to add comment