SHOW:
|
|
- or go back to the newest paste.
| 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, |
| 7 | + | booking_id Int Not Null Primary Key, |
| 8 | - | person_id Long Not Null, |
| 8 | + | person_id Int 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, |
| 22 | + | booking_id Int Not Null, |
| 23 | - | product_id Char(10) Not Null, |
| 23 | + | product_id Int Not Null, |
| 24 | magento_product_id Int Not Null, | |
| 25 | - | shop_id Char(10), |
| 25 | + | shop_id Int, |
| 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 | ); |