Merge branch 'master' into 'dev_production'
Master
See merge request tobin/timeOut!4
Showing
application/controllers/Booking.php
0 → 100644
application/controllers/Webservice.php
0 → 100644
application/models/Booking_model.php
0 → 100644
application/models/Validation_app_model.php
0 → 100644
application/models/Webservice_model.php
0 → 100644
<?php | ||
class Webservice_model extends CI_Model { | ||
public function _consruct(){ | ||
parent::_construct(); | ||
} | ||
function login($data){ | ||
try{ | ||
$this->db->select("customer.name AS user_name,customer.phone,customer.email,customer.profile_image AS profile_photo,users.id AS user_id, IF(customer.phone_verified = 0,'false','true') AS is_phone_verified"); | ||
$this->db->where('users.status',1); | ||
$this->db->where('users.password',md5($data['password'])); | ||
$this->db->where('customer.email',$data['email']); | ||
$this->db->from('users'); | ||
$this->db->join('customer','customer.customer_id = users.id'); | ||
$result = $this->db->get()->row(); | ||
if($result){ | ||
$auth_token = md5(microtime().rand()); | ||
$response = array('user'=>$result,'auth_token'=>$auth_token); | ||
$this->generateAuth($result->user_id,$auth_token); | ||
$res = array('status'=>1,'data'=>$response); | ||
} else { | ||
$res = array('status'=>0,'message'=>'Invalid username / Password','code'=>'ER05'); | ||
} | ||
} catch(Exception $e) { | ||
$res = array('status'=>0,'message'=>'Ohh No!! Something went South!!','code'=>'ER06'); | ||
} | ||
return $res; | ||
} | ||
function availability($data) { | ||
try{ | ||
$is_email_available = "true"; | ||
$is_phone_available = "true"; | ||
$res_count = $this->db->where('email',$data['email'])->or_where('phone',$data['phone'])->get('customer')->result(); | ||
if(count($res_count) > 0) { | ||
foreach ($res_count as $rs) { | ||
if($rs->email == $data['email']) { | ||
$is_email_available = "false"; | ||
} | ||
if($rs->phone == $data['phone']) { | ||
$is_phone_available = "false"; | ||
} | ||
} | ||
} | ||
$data = array( | ||
'is_email_available'=>$is_email_available, | ||
'is_phone_available'=>$is_phone_available | ||
); | ||
$res = array('status'=>1,'data'=>$data); | ||
} catch(Exception $e) { | ||
$res = array('status'=>0,'message'=>'Ohh No!! Something went South!!','code'=>'ER06'); | ||
} | ||
return $res; | ||
} | ||
function register($data) { | ||
try{ | ||
$res_count = $this->db->where('email',$data['email'])->or_where('phone',$data['phone'])->get('customer')->row(); | ||
if(count($res_count) > 0) { | ||
if($res_count->email == $data['email'] && $res_count->phone == $data['phone']){ | ||
$res = array('status'=>0,'message'=>'Already have an account with email id and phone no. Please login','code'=>'ER12'); | ||
} else if($res_count->email == $data['email']){ | ||
$res = array('status'=>0,'message'=>'Email id already exists','code'=>'ER09'); | ||
} else if($res_count->phone == $data['phone']) { | ||
$res = array('status'=>0,'message'=>'Phone no already exists','code'=>'ER10'); | ||
} | ||
} else { | ||
$temp_password = $data['password']; | ||
$data['password'] = md5($data['password']); | ||
$user_data = array( | ||
'password'=>$data['password'], | ||
'display_name'=>'Customer', | ||
'user_type'=> 3 | ||
); | ||
$this->db->insert('users',$user_data); | ||
$id = $this->db->insert_id(); | ||
if($id) { | ||
$customer_data = array( | ||
'customer_id'=>$id, | ||
'phone'=>$data['phone'], | ||
'email'=>$data['email'] | ||
); | ||
$this->db->insert('customer', $customer_data); | ||
$subject = "New account created successfully"; | ||
$email_id = $data['email']; | ||
$message = "Hi,\n\r Welcome to TimeOut.\r\n Please use username: ".$email_id." and Password: ".$temp_password." for access your account"; | ||
$this->send_mail($subject,$email_id,$message); | ||
$this->db->select("customer.name AS user_name,customer.phone,customer.email,customer.profile_image AS profile_photo,users.id AS user_id, IF(customer.phone_verified = 0,'false','true') AS is_phone_verified"); | ||
$this->db->where('users.id',$id); | ||
$this->db->from('users'); | ||
$this->db->join('customer','customer.customer_id = users.id'); | ||
$result = $this->db->get()->row(); | ||
if($result){ | ||
$auth_token = md5(microtime().rand()); | ||
$this->generateAuth($result->user_id,$auth_token); | ||
$response = array('user'=>$result,'auth_token'=>$auth_token); | ||
$res = array('status'=>1,'data'=>$response); | ||
} else { | ||
$res = array('status'=>0,'message'=>'No record found','code'=>'ER13'); | ||
} | ||
} else { | ||
$res = array('status'=>0,'message'=>'Registration failed please try again','code'=>'ER11'); | ||
} | ||
} | ||
} catch(Exception $e) { | ||
$res = array('status'=>0,'message'=>'Ohh No!! Something went South!!','code'=>'ER06'); | ||
} | ||
return $res; | ||
} | ||
function discover($data) { | ||
try { | ||
if($data['auth_token']) { | ||
$user_id = $this->auth_token_get($data['auth_token']); | ||
} else { | ||
$user_id = 0; | ||
} | ||
if(isset($data['cat_id'])) { | ||
$where = ' AND events.category_id = '.$data['cat_id']; | ||
} else { | ||
$where = ''; | ||
} | ||
$result = $this->db->query("SELECT events.event_id AS event_id, events.event_name AS name,`event_gallery`.`media_url` AS image, COUNT(booking.id) AS attendees, event_category.category, AVG(review.rate) AS rating, venue.location, IF(favourite.status = 1, 'true','false') AS is_favorite, IF(events.provider_id = 1,'true','false') AS is_editors_choice, events.avg_price AS rate FROM events INNER JOIN event_date_time ON events.event_id = event_date_time.event_id AND event_date_time.date >= DATE_FORMAT(NOW(),'%Y-%m-%d') LEFT JOIN `event_gallery` ON `events`.`event_id` = `event_gallery`.`event_id` AND `event_gallery`.`media_type` = 0 LEFT JOIN booking ON booking.event_id = events.event_id LEFT JOIN event_category ON events.category_id = event_category.cat_id LEFT JOIN review ON review.event_id = events.event_id LEFT JOIN venue ON venue.id = events.venue_id LEFT JOIN favourite ON favourite.event_id = events.event_id AND favourite.user_id = ".$user_id." AND favourite.status = 1 WHERE events.status = 1 ".$where." GROUP BY events.event_id")->result(); | ||
if(count($result)>0){ | ||
$resultData = array(); | ||
$resultData['events'] = $result; | ||
$res = array('status'=>1,'data'=>$resultData); | ||
} else { | ||
$res = array('status'=>0,'message'=>'No records found','code'=>'ER13'); | ||
} | ||
} catch(Exception $e) { | ||
$res = array('status'=>0,'message'=>'Ohh No!! Something went South!!','code'=>'ER06'); | ||
} | ||
return $res; | ||
} | ||
function event($data) { | ||
try { | ||
$user_id = $this->auth_token_get($data['auth_token']); | ||
if($user_id > 0) { | ||
$event_id = $data['event_id']; | ||
$this->db->query("SET SESSION group_concat_max_len = 20000"); | ||
$rs = $this->db->query("SELECT events.event_id, AVG(review.rate) AS rate, MAX(booking.id) AS attendees, events.event_name,events.event_discription AS event_description,events.seat_pricing, events.custom_seat_layout, venue.layout, venue.layout_details,venue.venue_name,venue.venue_details,venue.location,venue.location_lat AS lat,venue.location_lng AS lng, GROUP_CONCAT(DISTINCT `event_gallery`.`media_url`) AS media_url,IF(favourite.status = 1,'true','false') AS fav_status, GROUP_CONCAT(DISTINCT tags.tag_name) AS tag, GROUP_CONCAT(DISTINCT CONCAT_WS('#',event_date_time.id,event_date_time.date,event_date_time.time)) AS date_time, events.max_booking FROM events INNER JOIN event_date_time ON events.event_id = event_date_time.event_id INNER JOIN venue ON venue.id = events.venue_id LEFT JOIN `event_gallery` ON `events`.`event_id` = `event_gallery`.`event_id` AND `event_gallery`.`status` != 0 LEFT JOIN booking on booking.event_id = events.event_id LEFT JOIN favourite ON favourite.event_id = events.event_id AND favourite.user_id = ".$user_id." AND favourite.status = 1 LEFT JOIN event_tags ON events.event_id = event_tags.event_id LEFT JOIN tags on tags.tag_id = event_tags.tag_id LEFT JOIN review ON events.event_id = review.event_id WHERE events.event_id = ".$event_id." GROUP BY events.event_id, event_date_time.event_id")->row(); | ||
if(count($rs)>0){ | ||
$resultData = array(); | ||
$event_layout = ''; | ||
$colorData = array(); | ||
$booking = $this->db->where('event_id',$event_id)->select('ticket_details')->get('booking')->result(); | ||
if(count($booking) > 0){ | ||
foreach ($booking as $row) { | ||
$priceData = json_decode($row->ticket_details); | ||
if(count($priceData) > 0){ | ||
foreach ($priceData as $value) { | ||
$colorData[$value->color] = isset($colorData[$value->color]) ? + $colorData[$value->color] + $value->no_ticket: $value->no_ticket; | ||
} | ||
} | ||
} | ||
} | ||
//foreach ($result as $rs) { | ||
if($rs->layout!=''){ | ||
if($rs->custom_seat_layout!=''){ | ||
$pricelist = json_decode($rs->custom_seat_layout, TRUE); | ||
$price = min(array_column($pricelist, 'price')); | ||
$event_layout = $rs->custom_seat_layout; | ||
} else { | ||
$pricelist = json_decode($rs->layout_details, TRUE); | ||
$price = min(array_column($pricelist, 'price')); | ||
$event_layout = $rs->layout_details; | ||
} | ||
} else { | ||
$pricelist = json_decode($rs->seat_pricing, TRUE); | ||
$price = $pricelist['price']; | ||
$event_layout = $rs->seat_pricing; | ||
} | ||
$event_layout = json_decode($event_layout); | ||
$event_layouts = array(); | ||
foreach ($event_layout as $value) { | ||
if(isset($colorData[$value->color])) { | ||
$avaliable = $value->capacity - $colorData[$value->color]; | ||
} else { | ||
$avaliable = $value->capacity; | ||
} | ||
$priceLayout = array('class_name' => $value->color, | ||
'rate'=>$value->price, | ||
'total_tickets'=>$value->capacity, | ||
'available_tickets'=>$avaliable, | ||
"max_ticket"=>$rs->max_booking | ||
); | ||
array_push($event_layouts, $priceLayout); | ||
} | ||
$dates = explode(',', $rs->date_time); | ||
$time_spec = array(); | ||
foreach ($dates as $rss) { | ||
list($id,$date,$time) = explode('#', $rss); | ||
$time_spec[] = array('id'=>$id, 'date'=>$date, 'time'=>$time); | ||
} | ||
$tags = explode(',', $rs->tag); | ||
$media_url = explode(',', $rs->media_url); | ||
$resData = array( | ||
'event_id'=>$rs->event_id, | ||
'name'=>$rs->event_name, | ||
'description'=>$rs->event_description, | ||
'rating'=>$rs->rate, | ||
'total_attendees'=>$rs->attendees, | ||
'layout_image'=>$rs->layout, | ||
'is_favorite'=>$rs->fav_status, | ||
'photos'=>$media_url, | ||
'time'=>$time_spec[0]['time'], | ||
'date'=>$time_spec[0]['date'], | ||
'date_list'=>$time_spec, | ||
'classes'=>$event_layouts, | ||
'latitude'=>$rs->lat, | ||
'longitude'=>$rs->lng | ||
); | ||
/*array_push($resultData, $resData); | ||
}*/ | ||
$res = array('status'=>1,'data'=>$resData); | ||
} else { | ||
$res = array('status'=>0,'message'=>'No records found','code'=>'ER13'); | ||
} | ||
} else { | ||
$res = array('status'=>0,'message'=>'Invalid user','code'=>'ER19'); | ||
} | ||
} catch(Exception $e) { | ||
$res = array('status'=>0,'message'=>'Ohh No!! Something went South!!','code'=>'ER06'); | ||
} | ||
return $res; | ||
} | ||
function generateAuth($userId,$auth_token) { | ||
$this->db->insert('customer_auth',array('user_id'=>$userId, 'auth_token'=>$auth_token)); | ||
} | ||
function auth_token_get($token) { | ||
$rs = $this->db->select('user_id')->where('auth_token', $token)->get('customer_auth')->row(); | ||
if(count($rs) > 0) { | ||
return $rs->user_id; | ||
} else { | ||
return 0; | ||
} | ||
} | ||
function send_mail($subject,$email,$message,$attach=null) { | ||
$ci =& get_instance(); | ||
$ci->load->library('email'); | ||
$ci->email->initialize(array( | ||
'protocol' => 'smtp', | ||
'smtp_host' => 'smtp.sendgrid.net', | ||
'smtp_user' => '[email protected]', | ||
'smtp_pass' => 'Golden_123', | ||
'smtp_port' => 587, | ||
'crlf' => "\r\n", | ||
'newline' => "\r\n" | ||
)); | ||
$ci->email->from('[email protected]', 'TimeOut'); | ||
$ci->email->to($email); | ||
$ci->email->cc('[email protected]'); | ||
$ci->email->subject($subject); | ||
$ci->email->message($message); | ||
if($attach!=null) { | ||
$ci->email->attach($attach); | ||
} | ||
return $ci->email->send(); | ||
} | ||
} | ||
\ No newline at end of file |
application/views/Booking/generate.php
0 → 100644
application/views/Booking/viewBooking.php
0 → 100644
application/views/Customer/customerForm.php
0 → 100644
application/views/Customer/viewCustomer.php
0 → 100644
assets/css/custom.css
0 → 100644
assets/css/slick.min.css
0 → 100644
assets/css/theme.css
0 → 100644
assets/fonts/Shree714.ttc
0 → 100644
File added
assets/fonts/SinhalaMN.woff
0 → 100644
File added
assets/fonts/riesling.ttf
0 → 100644
File added
assets/images/asset_logo.png
0 → 100644
11.7 KB
assets/images/asset_qr.png
0 → 100644
10.1 KB
assets/images/m1.png
0 → 100644
671 Bytes
assets/images/m2.png
0 → 100644
616 Bytes
assets/images/m3.png
0 → 100644
903 Bytes
assets/images/m4.png
0 → 100644
821 Bytes
assets/images/m5.png
0 → 100644
734 Bytes
assets/images/m6.png
0 → 100644
770 Bytes
assets/images/m7.png
0 → 100644
884 Bytes
assets/images/m8.png
0 → 100644
576 Bytes
assets/images/m9.png
0 → 100644
585 Bytes
assets/images/qr_default.png
0 → 100644
10.3 KB
assets/js/custom.js
0 → 100644
assets/js/slick.min.js
0 → 100644
1.5 MB
... | ... | @@ -3,7 +3,7 @@ |
-- https://www.phpmyadmin.net/ | ||
-- | ||
-- Host: db | ||
-- Generation Time: Feb 15, 2019 at 06:59 AM | ||
-- Generation Time: Feb 22, 2019 at 01:53 PM | ||
-- Server version: 5.6.41 | ||
-- PHP Version: 7.2.8 | ||
... | ... | @@ -38,36 +38,35 @@ CREATE TABLE `booking` ( |
`no_of_ticket` int(11) DEFAULT NULL, | ||
`ticket_details` varchar(255) NOT NULL, | ||
`amount` double DEFAULT NULL, | ||
`email` varchar(50) DEFAULT NULL, | ||
`phone` varchar(25) DEFAULT NULL, | ||
`reserved_by` int(11) DEFAULT '3' COMMENT '1 - SuperAdmin\n2 - Provider\n3 - Customer', | ||
`status` int(11) DEFAULT '1' COMMENT '0 - Cancelled, 1 - Booked, 2 - Completed, 3 - Pending' | ||
`booking_date` varchar(50) DEFAULT NULL, | ||
`status` int(11) DEFAULT '1' COMMENT '0 - Cancelled, 1 - Booked, 2 - Completed, 3 - Pending, 4 - Deleted' | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
-- | ||
-- Dumping data for table `booking` | ||
-- | ||
INSERT INTO `booking` (`id`, `event_id`, `customer_id`, `bookId`, `event_date_id`, `qrcode`, `no_of_ticket`, `ticket_details`, `amount`, `email`, `phone`, `reserved_by`, `status`) VALUES | ||
(1, 3, 3, 'BKD123987', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 4, '[{\"color\":\"Red\",\"price\":\"11\",\"no_ticket\":\"2\",\"total_price\":\"22\"}]', 250, '[email protected]', '9847586912', 3, 1), | ||
(2, 3, 3, 'BKD134568', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 2, '{\"price\":\"250\",\"no_ticket\":\"2\",\"total_price\":\"500\"}', 125, '[email protected]', '9847586912', 3, 1), | ||
(3, 3, 3, 'BKD123415', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '', 300, '[email protected]', '9847586912', 3, 1), | ||
(4, 3, 3, 'BKD123468', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 10, '', 100, '[email protected]', '9847586912', 3, 1), | ||
(5, 3, 3, 'BKD123456', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 4, '', 250, '[email protected]', '9847586912', 3, 1), | ||
(6, 3, 3, 'BKD134568', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 2, '', 125, '[email protected]', '9847586912', 3, 1), | ||
(7, 3, 3, 'BKD123415', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '', 300, '[email protected]', '9847586912', 3, 1), | ||
(8, 3, 3, 'BKD123468', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 10, '', 100, '[email protected]', '9847586912', 3, 1), | ||
(9, 3, 3, 'BKD123456', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 4, '', 250, '[email protected]', '9847586912', 3, 1), | ||
(10, 3, 3, 'BKD134568', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 2, '', 125, '[email protected]', '9847586912', 3, 1), | ||
(11, 3, 3, 'BKD123415', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '', 300, '[email protected]', '9847586912', 3, 1), | ||
(12, 3, 3, 'BKD123468', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 10, '', 100, '[email protected]', '9847586912', 3, 1), | ||
(13, 3, 3, 'BKD123456', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 4, '', 250, '[email protected]', '9847586912', 3, 1), | ||
(14, 3, 3, 'BKD134568', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 2, '', 125, '[email protected]', '9847586912', 3, 1), | ||
(15, 3, 3, 'BKD123415', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '', 300, '[email protected]', '9847586912', 3, 1), | ||
(16, 3, 3, 'BKD123468', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 10, '', 100, '[email protected]', '9847586912', 3, 1), | ||
(17, 3, 3, 'TO1902149151', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '[{\"color\":\"Red\",\"price\":\"11\",\"no_ticket\":\"2\",\"total_price\":\"22\"}]', 250, NULL, NULL, 3, 3), | ||
(18, 3, 3, 'TO1902145194', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '[{\"color\":\"Red\",\"price\":\"11\",\"no_ticket\":\"2\",\"total_price\":\"22\"}]', 250, NULL, NULL, 3, 3), | ||
(19, 3, 3, 'TO1902149856', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '[{\"color\":\"Red\",\"price\":\"11\",\"no_ticket\":\"2\",\"total_price\":\"22\"}]', 250, NULL, NULL, 3, 3); | ||
INSERT INTO `booking` (`id`, `event_id`, `customer_id`, `bookId`, `event_date_id`, `qrcode`, `no_of_ticket`, `ticket_details`, `amount`, `reserved_by`, `booking_date`, `status`) VALUES | ||
(1, 3, 3, 'BKD123987', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 4, '[{\"color\":\"Red\",\"price\":\"11\",\"no_ticket\":\"2\",\"total_price\":\"22\"}]', 250, 3, NULL, 0), | ||
(2, 3, 3, 'BKD134568', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 2, '{\"price\":\"250\",\"no_ticket\":\"2\",\"total_price\":\"500\"}', 125, 3, NULL, 1), | ||
(3, 3, 3, 'BKD123415', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '', 300, 3, NULL, 2), | ||
(4, 3, 3, 'BKD123468', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 10, '', 100, 3, NULL, 3), | ||
(5, 3, 3, 'BKD123456', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 4, '', 250, 3, NULL, 1), | ||
(6, 3, 3, 'BKD134568', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 2, '', 125, 3, NULL, 1), | ||
(7, 3, 3, 'BKD123415', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '', 300, 3, NULL, 1), | ||
(8, 3, 3, 'BKD123468', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 10, '', 100, 3, NULL, 1), | ||
(9, 3, 3, 'BKD123456', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 4, '', 250, 3, NULL, 1), | ||
(10, 3, 3, 'BKD134568', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 2, '', 125, 3, NULL, 1), | ||
(11, 3, 3, 'BKD123415', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '', 300, 3, NULL, 1), | ||
(12, 3, 3, 'BKD123468', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 10, '', 100, 3, NULL, 1), | ||
(13, 3, 3, 'BKD123456', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 4, '', 250, 3, NULL, 1), | ||
(14, 3, 3, 'BKD134568', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 2, '', 125, 3, NULL, 1), | ||
(15, 3, 3, 'BKD123415', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '', 300, 3, NULL, 1), | ||
(16, 3, 3, 'BKD123468', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 10, '', 100, 3, NULL, 1), | ||
(17, 3, 3, 'TO1902149151', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '[{\"color\":\"Red\",\"price\":\"11\",\"no_ticket\":\"2\",\"total_price\":\"22\"}]', 250, 3, NULL, 3), | ||
(18, 3, 3, 'TO1902145194', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '[{\"color\":\"Red\",\"price\":\"11\",\"no_ticket\":\"2\",\"total_price\":\"22\"}]', 250, 3, NULL, 3), | ||
(19, 3, 3, 'TO1902149856', 18, 'https://www.barcodefaq.com/wp-content/uploads/2018/08/gs1-qrcode-fnc1.png', 5, '[{\"color\":\"Red\",\"price\":\"11\",\"no_ticket\":\"2\",\"total_price\":\"22\"}]', 250, 3, NULL, 3); | ||
-- -------------------------------------------------------- | ||
... | ... | @@ -81,7 +80,7 @@ CREATE TABLE `customer` ( |
`name` varchar(50) DEFAULT NULL, | ||
`phone` varchar(25) DEFAULT NULL, | ||
`email` varchar(50) DEFAULT NULL, | ||
`gender` varchar(15) NOT NULL, | ||
`gender` varchar(15) NOT NULL COMMENT '1 => Male 2 => Female 3 => Others', | ||
`dob` varchar(50) NOT NULL, | ||
`city` varchar(255) NOT NULL, | ||
`reset_key` varchar(255) DEFAULT NULL, | ||
... | ... | @@ -94,12 +93,16 @@ CREATE TABLE `customer` ( |
-- | ||
INSERT INTO `customer` (`id`, `customer_id`, `name`, `phone`, `email`, `gender`, `dob`, `city`, `reset_key`, `social_id`, `profile_image`) VALUES | ||
(1, 3, 'Tester', '9995559194', '[email protected]', '2', '31/07/1990', 'Tester City', NULL, NULL, 'assets/uploads/155016015727232.jpg'), | ||
(1, 3, 'Tester', '9995559194', '[email protected]', '2', '31/07/1990', 'F-2, Western Express Highway, Sai Wadi, Andheri East, Mumbai, Maharashtra, India', NULL, NULL, 'assets/uploads/155016015727232.jpg'), | ||
(3, 5, NULL, '9995559194e', '[email protected]', '', '', '', NULL, NULL, NULL), | ||
(4, 6, NULL, '9999999998', '[email protected]', '', '', '', NULL, NULL, NULL), | ||
(5, 7, NULL, '1234567890', '[email protected]', '', '', '', '5c63ee6845d281550052968', NULL, NULL), | ||
(6, 8, NULL, '1234567891', '[email protected]', '', '', '', NULL, NULL, NULL), | ||
(7, 9, NULL, NULL, '[email protected]', '', '', '', NULL, NULL, NULL); | ||
(7, 9, NULL, NULL, '[email protected]', '', '', '', NULL, NULL, NULL), | ||
(8, 12, 'dfgsedfr', '1234567861', '[email protected]', '1', '02/19/2019', 'Faridabad, Haryana, India', NULL, NULL, NULL), | ||
(9, 13, 'dtrg', '1234567864', '[email protected]', '1', '02/14/2019', 'Gujarat, India', NULL, NULL, NULL), | ||
(10, 14, 'ftrghdrt rdtgdr rdtg ', '34653456344456', '[email protected]', '1', '02/19/2019', 'AIEA Employees Union Office, Srinivas Colony, Sudhama Nagar, Bengaluru, Karnataka, India', NULL, NULL, 'assets/uploads/services/1550658267_234858854male.jpg'), | ||
(11, 15, 'tdgh', '9995559134', '[email protected]', '2', '02/19/2019', 'D-Wing, Western Express Highway, Miragaon, Mira Road East, Mira Bhayandar, Maharashtra, India', NULL, NULL, 'assets/uploads/services/1550658421_car1.jpg'); | ||
-- -------------------------------------------------------- | ||
... | ... | @@ -134,7 +137,10 @@ INSERT INTO `customer_auth` (`id`, `user_id`, `auth_token`, `sync_time`) VALUES |
(13, 3, '536b281d6ad31931818cc2b552dc2010', '2019-02-13 15:55:11'), | ||
(14, 3, '7591c952051a7b910ab75f56822191f2', '2019-02-14 14:20:10'), | ||
(15, 3, '33f6dc286585395be2c405cfb9674c07', '2019-02-14 14:22:46'), | ||
(16, 3, '11866cec9dc42a8be5fdac02a464bfe5', '2019-02-14 15:18:29'); | ||
(16, 3, '11866cec9dc42a8be5fdac02a464bfe5', '2019-02-14 15:18:29'), | ||
(17, 3, '83e3a796715f3dc4038bc769a2f3f2a0', '2019-02-15 09:20:24'), | ||
(18, 12, '967846009ab638e86e6e2ded48ef174b', '2019-02-15 09:42:37'), | ||
(19, 13, 'efb9b927d1328de531f2b65e6ac8cb35', '2019-02-15 09:53:28'); | ||
-- -------------------------------------------------------- | ||
... | ... | @@ -149,21 +155,31 @@ CREATE TABLE `events` ( |
`provider_id` int(11) DEFAULT NULL, | ||
`event_name` varchar(250) DEFAULT NULL, | ||
`event_discription` longtext, | ||
`max_booking` int(10) NOT NULL COMMENT '=> maximum bookings per customer', | ||
`seat_pricing` longtext, | ||
`custom_seat_layout` longtext, | ||
`status` tinyint(3) DEFAULT '1' | ||
`status` tinyint(3) DEFAULT '1' COMMENT '1 - Active, 0 - Inactive, 2 - Deleted 3 - Waiting For Approval' | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
-- | ||
-- Dumping data for table `events` | ||
-- | ||
INSERT INTO `events` (`event_id`, `venue_id`, `category_id`, `provider_id`, `event_name`, `event_discription`, `seat_pricing`, `custom_seat_layout`, `status`) VALUES | ||
(2, 3, 2, 1, 'dfrgdrfg', 'I have a name tag in the sidebar which should display single line and truncate if long text follow by triple dots (lorem ipsum...) and should show full text on hover.\r\n\r\nI am able to achieve this using css but my problem is when full text is displayed it overlaps the text below it. (Images attached)\r\n\r\nHTML', '{\"price\":null,\"price_details\":null}', '', 1), | ||
(3, 3, 1, 1, 'sdfg', 'dfgr', '{\"price\":\"\",\"price_details\":\"\"}', '[{\"color\":\"Red\",\"price\":\"11\"},{\"color\":\"Blue\",\"price\":\"256\"},{\"color\":\"Blue R\",\"price\":\"6385\"},{\"color\":\"Yellow\",\"price\":\"3258\"},{\"color\":\"Yellow Y\",\"price\":\"558\"}]', 1), | ||
(4, 3, 1, 1, '111', '1111', '{\"price\":\"\",\"price_details\":\"\"}', '', 1), | ||
(5, 2, 2, 1, 'szdf', 'I have a name tag in the sidebar which should display single line and truncate if long text follow by triple dots (lorem ipsum...) and should show full text on hover.\r\n\r\nI am able to achieve this using css but my problem is when full text is displayed it overlaps the text below it. (Images attached)\r\n\r\nHTML', '{\"price\":\"555\",\"price_details\":\"aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa \"}', '', 1), | ||
(6, 3, 1, 1, 'New Event', 'sdfgdrf', '', '[{\"color\":\"Red\",\"price\":\"100\"},{\"color\":\"Blue\",\"price\":\"120\"},{\"color\":\"Blue R\",\"price\":\"130\"},{\"color\":\"Yellow\",\"price\":\"140\"},{\"color\":\"Yellow Y\",\"price\":\"150\"}]', 1); | ||
INSERT INTO `events` (`event_id`, `venue_id`, `category_id`, `provider_id`, `event_name`, `event_discription`, `max_booking`, `seat_pricing`, `custom_seat_layout`, `status`) VALUES | ||
(2, 3, 2, 2, 'dfrgdrfg', 'I have a name tag in the sidebar which should display single line and truncate if long text follow by triple dots (lorem ipsum...) and should show full text on hover.\r\n\r\nI am able to achieve this using css but my problem is when full text is displayed it overlaps the text below it. (Images attached)\r\n\r\nHTML', 20, '{\"price\":null,\"price_details\":null}', '', 3), | ||
(3, 3, 1, 2, 'sdfg', 'dfgr', 0, '{\"price\":null,\"price_details\":null}', '', 0), | ||
(4, 3, 1, 1, '111', '1111', 0, '{\"price\":\"\",\"price_details\":\"\"}', '', 2), | ||
(5, 2, 2, 1, 'szdf', 'I have a name tag in the sidebar which should display single line and truncate if long text follow by triple dots (lorem ipsum...) and should show full text on hover.\r\n\r\nI am able to achieve this using css but my problem is when full text is displayed it overlaps the text below it. (Images attached)\r\n\r\nHTML', 0, '{\"price\":\"555\",\"price_details\":\"aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa aaaaaaa aaaaa aaaa \"}', '', 1), | ||
(6, 3, 1, 1, 'New Event', 'sdfgdrf', 0, '{\"price\":null,\"price_details\":null}', '', 2), | ||
(7, 3, 2, 1, 'khgbvguy', 'ftgyhutf', 0, '{\"price\":null,\"price_details\":null}', '', 2), | ||
(8, 3, 2, 1, '4568', '8974788', 0, '', '[{\"color\":\"RED\",\"price\":\"985489\",\"capacity\":\"RED\"},{\"color\":\"BLUE\",\"price\":\"5645\",\"capacity\":\"BLUE\"},{\"color\":\"GRAY\",\"price\":\"54\",\"capacity\":\"GRAY\"},{\"color\":\"YELLOW\",\"price\":\"584\",\"capacity\":\"YELLOW\"}]', 2), | ||
(9, 4, 2, 1, 'dftgh', 'drftghy', 0, '', '[{\"color\":\"xdcfg\",\"price\":\"6545\",\"capacity\":\"656\"}]', 2), | ||
(10, 3, 2, 1, 'dftg', 'dtfhg', 0, '{\"price\":null,\"price_details\":null}', '', 2), | ||
(11, 3, 2, 1, 'oijhiou', '48948956', 0, '', '[{\"color\":\"RED\",\"price\":\"85485\"},{\"color\":\"BLUE\",\"price\":\"4865\"},{\"color\":\"GRAY\",\"price\":\"4685\"},{\"color\":\"YELLOW\",\"price\":\"4685\"}]', 2), | ||
(12, 3, 1, 1, 'PVR Movie Show 554', 'RED block 150 / Seat 500 Seats / Division\r\nBLUE block 254 / Seat 605 Seats / Division\r\nGRAY block 250 / Seat 400 Seats / Division\r\nYELLOW block 1000 / Seat 200 Seats / Division', 0, '{\"price\":null,\"price_details\":null}', '', 1), | ||
(13, 4, 1, 1, 'PVR Movie Show', 'hgj ngju', 0, '{\"price\":null,\"price_details\":null}', '', 1), | ||
(14, 3, 1, 1, 'DF Block, Sector 1, Salt Lake City', ' Use Default Fare Create Custome Fare\r\nSeat Division Seat Pricing Seating Capacity\r\nRED block 150 / Seat 500 Seats / Division\r\nBLUE block 254 / Seat 605 Seats / Division\r\nGRAY block 250 / Seat 400 Seats / Division\r\nYELLOW block 1000 / Seat 200 Seats / Division', 14, '{\"price\":null,\"price_details\":null}', '', 1), | ||
(15, 3, 1, 1, 'PVR Movie Show', 'Venue Details\r\nVenue Name:PVR KoramangalaVenue Region:ThalayolaparambuVenue Location:\r\nDF Block, Sector 1, Salt Lake City, Kolkata, West Bengal, India\r\n\r\nAbout Venue:\r\nCosmopolitan Koramangala is popular with young tech workers and students, due to the many IT companies and colleges in the area. Hip restaurants and rooftop bars cluster around 80 Feet Main Road, while the streets around Jyoti Nivas College are also known for trendy stores selling funky clothes and accessories. Upscale apartment complexes are interspersed with the commercial buildings on the tree-lined avenues.\r\n\r\nLayout Details', 14, '{\"price\":null,\"price_details\":null}', '', 1); | ||
-- -------------------------------------------------------- | ||
... | ... | @@ -206,11 +222,8 @@ CREATE TABLE `event_date_time` ( |
-- | ||
INSERT INTO `event_date_time` (`id`, `event_id`, `date`, `time`, `status`) VALUES | ||
(18, 3, '2019-02-18', '11:30', 1), | ||
(19, 3, '2019-02-15', '11:30', 1), | ||
(18, 4, '2019-02-16', '11:30', 1), | ||
(20, 4, '2019-02-16', '11:30', 1), | ||
(61, 3, '2019-02-16', '12:00', 1), | ||
(62, 3, '2019-02-16', '01:00', 1), | ||
(63, 5, '2019-01-01', '02:00', 1), | ||
(64, 5, '2019-01-01', '03:00', 1), | ||
(65, 5, '2019-02-14', '12:00', 1), | ||
... | ... | @@ -229,15 +242,37 @@ INSERT INTO `event_date_time` (`id`, `event_id`, `date`, `time`, `status`) VALUE |
(78, 5, '2019-01-05', '01:00', 1), | ||
(79, 5, '2019-01-05', '02:00', 1), | ||
(80, 5, '2019-01-05', '03:00', 1), | ||
(105, 6, '2019-02-06', '01:05', 1), | ||
(106, 2, '2019-02-05', '01:10', 1), | ||
(107, 2, '2019-02-05', '01:05', 1), | ||
(108, 2, '2019-02-05', '01:11', 1), | ||
(109, 2, '2019-02-05', '01:07', 1), | ||
(110, 2, '2019-02-05', '01:25', 1), | ||
(111, 2, '2019-02-05', '01:22', 1), | ||
(112, 2, '2019-02-05', '01:13', 1), | ||
(113, 2, '2019-02-05', '01:14', 1); | ||
(122, 3, '2019-02-15', '11:30', 1), | ||
(123, 3, '2019-02-15', '12:00', 1), | ||
(124, 3, '2019-02-15', '01:00', 1), | ||
(125, 3, '2019-02-16', '11:30', 1), | ||
(126, 3, '2019-02-16', '12:00', 1), | ||
(127, 3, '2019-02-16', '01:00', 1), | ||
(128, 3, '2019-02-17', '11:30', 1), | ||
(129, 3, '2019-02-17', '12:00', 1), | ||
(130, 3, '2019-02-17', '01:00', 1), | ||
(131, 3, '2019-02-18', '11:30', 1), | ||
(132, 3, '2019-02-18', '12:00', 1), | ||
(133, 3, '2019-02-18', '01:00', 1), | ||
(134, 6, '2019-02-06', '01:05', 1), | ||
(136, 8, '2019-02-20', '14:00', 1), | ||
(137, 9, '2019-02-20', '13:05', 1), | ||
(138, 7, '2019-02-20', '13:00', 1), | ||
(141, 11, '2019-02-19', '14:00', 1), | ||
(145, 10, '2019-02-27', '14:00', 1), | ||
(170, 12, '2019-02-05', '13:00', 1), | ||
(171, 12, '2019-02-05', '14:00', 1), | ||
(172, 13, '2019-02-13', '13:00', 1), | ||
(173, 14, '2019-02-12', '13:00', 1), | ||
(174, 2, '2019-02-05', '01:10', 1), | ||
(175, 2, '2019-02-05', '01:05', 1), | ||
(176, 2, '2019-02-05', '01:11', 1), | ||
(177, 2, '2019-02-05', '01:07', 1), | ||
(178, 2, '2019-02-05', '01:25', 1), | ||
(179, 2, '2019-02-05', '01:22', 1), | ||
(180, 2, '2019-02-05', '01:13', 1), | ||
(181, 2, '2019-02-05', '01:14', 1), | ||
(191, 15, '2019-02-19', '13:06', 1); | ||
-- -------------------------------------------------------- | ||
... | ... | @@ -258,17 +293,16 @@ CREATE TABLE `event_gallery` ( |
-- | ||
INSERT INTO `event_gallery` (`id`, `event_id`, `media_type`, `media_url`, `status`) VALUES | ||
(1, 3, 0, 'assets/uploads/services/giphy9.gif', 1), | ||
(2, 3, 1, 'assets/uploads/services/media-froala-description-0-2018-9-5-t-14-14-32.jpeg', 1), | ||
(3, 3, 1, 'assets/uploads/services/giphy9.gif', 1), | ||
(4, 3, 1, 'assets/uploads/services/giphy9.gif', 1), | ||
(5, 3, 1, 'assets/uploads/services/giphy9.gif', 1), | ||
(6, 3, 2, 'assets/uploads/services/media-froala-description-0-2018-9-5-t-14-14-32.jpeg', 1), | ||
(7, 3, 2, 'assets/uploads/services/giphy9.gif', 1), | ||
(8, 3, 3, 'assets/uploads/services/giphy9.gif', 1), | ||
(9, 3, 3, 'assets/uploads/services/giphy9.gif', 1), | ||
(19, 4, 1, 'assets/uploads/services/giphy14.gif', 1), | ||
(20, 5, 1, 'assets/uploads/services/media-froala-description-0-2018-9-5-t-14-14-328.jpeg', 1); | ||
(20, 5, 1, 'assets/uploads/services/media-froala-description-0-2018-9-5-t-14-14-328.jpeg', 1), | ||
(21, 7, 1, 'assets/uploads/services/media-froala-description-0-2018-9-5-t-14-14-329.jpeg', 1), | ||
(22, 12, 1, 'assets/uploads/services/giphy18.gif', 1), | ||
(23, 14, 1, 'assets/uploads/services/giphy19.gif', 1), | ||
(24, 15, 1, 'assets/uploads/services/media-froala-description-0-2018-9-5-t-14-14-3210.jpeg', 1); | ||
-- -------------------------------------------------------- | ||
... | ... | @@ -290,17 +324,34 @@ CREATE TABLE `event_tags` ( |
INSERT INTO `event_tags` (`id`, `event_id`, `tag_id`, `status`) VALUES | ||
(1, 1, 2, 1), | ||
(2, 1, 3, 1), | ||
(5, 3, 3, 1), | ||
(6, 3, 4, 1), | ||
(124, 4, 6, 1), | ||
(125, 4, 2, 1), | ||
(139, 5, 2, 1), | ||
(140, 5, 3, 1), | ||
(141, 5, 4, 1), | ||
(144, 6, 3, 1), | ||
(145, 6, 4, 1), | ||
(146, 2, 2, 1), | ||
(147, 2, 3, 1); | ||
(150, 3, 3, 1), | ||
(151, 3, 4, 1), | ||
(152, 6, 3, 1), | ||
(153, 6, 4, 1), | ||
(157, 8, 3, 1), | ||
(158, 9, 2, 1), | ||
(159, 9, 3, 1), | ||
(160, 7, 3, 1), | ||
(161, 7, 4, 1), | ||
(162, 7, 5, 1), | ||
(166, 11, 2, 1), | ||
(167, 11, 3, 1), | ||
(171, 10, 3, 1), | ||
(184, 12, 2, 1), | ||
(185, 12, 3, 1), | ||
(186, 13, 2, 1), | ||
(187, 13, 3, 1), | ||
(188, 14, 2, 1), | ||
(189, 14, 3, 1), | ||
(190, 2, 6, 1), | ||
(191, 2, 2, 1), | ||
(210, 15, 3, 1), | ||
(211, 15, 2, 1); | ||
-- -------------------------------------------------------- | ||
... | ... | @@ -472,6 +523,7 @@ CREATE TABLE `setting` ( |
`fav_icon` varchar(150) NOT NULL, | ||
`country_flag` varchar(10) NOT NULL DEFAULT 'US', | ||
`currency` varchar(10) NOT NULL, | ||
`service_charge` double NOT NULL DEFAULT '0', | ||
`smtp_host` varchar(150) NOT NULL, | ||
`smtp_username` varchar(150) NOT NULL, | ||
`smtp_password` varchar(150) NOT NULL, | ||
... | ... | @@ -482,8 +534,8 @@ CREATE TABLE `setting` ( |
-- Dumping data for table `setting` | ||
-- | ||
INSERT INTO `setting` (`id`, `title`, `title_short`, `site_logo`, `fav_icon`, `country_flag`, `currency`, `smtp_host`, `smtp_username`, `smtp_password`, `google_api_key`) VALUES | ||
(1, 'Event - Time Out', 'TimeOut', 'assets/uploads/services/1549257477_Twitch_KingpinSkin_old2_HD.jpg', 'assets/uploads/services/1549257477_sniper.jpg', 'IN', 'INR', '[email protected]', 'AIzaSyC9JX3BZZfx2S6GQieC_PqjuJdUbZ7_wyM1', 'Golden_1234', 'AIzaSyCcc-YDSJyDpehNE6qfntfWpEQ4uS4aq6A'); | ||
INSERT INTO `setting` (`id`, `title`, `title_short`, `site_logo`, `fav_icon`, `country_flag`, `currency`, `service_charge`, `smtp_host`, `smtp_username`, `smtp_password`, `google_api_key`) VALUES | ||
(1, 'Event - Time Out', 'TimeOut', 'assets/uploads/services/1549257477_Twitch_KingpinSkin_old2_HD.jpg', 'assets/uploads/services/1549257477_sniper.jpg', 'IN', 'INR', 0, '[email protected]', 'AIzaSyC9JX3BZZfx2S6GQieC_PqjuJdUbZ7_wyM1', 'Golden_1234', 'AIzaSyCcc-YDSJyDpehNE6qfntfWpEQ4uS4aq6A'); | ||
-- -------------------------------------------------------- | ||
... | ... | @@ -548,9 +600,13 @@ CREATE TABLE `users` ( |
INSERT INTO `users` (`id`, `username`, `password`, `display_name`, `profile_image`, `user_type`, `status`) VALUES | ||
(1, 'admin', '202cb962ac59075b964b07152d234b70', 'Super Admin', 'assets/uploads/services/1549281365_car_ac.jpg', 1, 1), | ||
(2, 'provider', '202cb962ac59075b964b07152d234b70', 'Provide', 'assets/uploads/services/1549342442_Audi-r8.jpg', 2, 1), | ||
(3, 'customer', 'e10adc3949ba59abbe56e057f20f883e', 'Customer', NULL, 3, 1), | ||
(3, NULL, 'e10adc3949ba59abbe56e057f20f883e', NULL, NULL, 3, 1), | ||
(10, 'xdcfg', '69879a49afe2a510237c11d0aa05a3fc', 'cdfgh', 'assets/uploads/services/1550152192_image_(1).png', 2, 1), | ||
(11, 'sedrftg', '38d7355701b6f3760ee49852904319c1', 'dfrgdr', 'assets/uploads/services/1550152924_giphy.gif', 2, 1); | ||
(11, 'sedrftg', '38d7355701b6f3760ee49852904319c1', 'dfrgdr', 'assets/uploads/services/1550152924_giphy.gif', 2, 1), | ||
(12, NULL, 'e10adc3949ba59abbe56e057f20f883e', NULL, NULL, 3, 1), | ||
(13, NULL, 'e10adc3949ba59abbe56e057f20f883e', NULL, NULL, 3, 1), | ||
(14, NULL, NULL, NULL, 'assets/uploads/services/1550658267_234858854male.jpg', 3, 1), | ||
(15, '[email protected]', NULL, 'tdgh', 'assets/uploads/services/1550658421_car1.jpg', 3, 1); | ||
-- -------------------------------------------------------- | ||
... | ... | @@ -577,8 +633,9 @@ CREATE TABLE `venue` ( |
-- | ||
INSERT INTO `venue` (`id`, `venue_name`, `venue_details`, `region_id`, `host_cat_id`, `location`, `location_lat`, `location_lng`, `layout`, `layout_details`, `status`) VALUES | ||
(2, 'Empire Restaurant - Church Street', 'Empire Restaurant - Church Street', 4, 2, 'D-Wing, Western Express Highway, Miragaon, Mira Road East, Mira Bhayandar, Maharashtra, India', '19.2746336', '72.8786044', '', '', 1), | ||
(3, 'PVR Koramangala', 'Cosmopolitan Koramangala is popular with young tech workers and students, due to the many IT companies and colleges in the area. Hip restaurants and rooftop bars cluster around 80 Feet Main Road, while the streets around Jyoti Nivas College are also known for trendy stores selling funky clothes and accessories. Upscale apartment complexes are interspersed with the commercial buildings on the tree-lined avenues.', 4, 3, 'DF Block, Sector 1, Salt Lake City, Kolkata, West Bengal, India', '22.5908767', '88.4170614', 'assets/uploads/services/1549456988_media-froala-description-0-2018-9-5-t-14-14-32.jpeg', '[{\"color\":\"Red\",\"price\":\"150\"},{\"color\":\"Blue\",\"price\":\"500\"},{\"color\":\"Blue R\",\"price\":\"450\"},{\"color\":\"Yellow\",\"price\":\"650\"},{\"color\":\"Yellow Y\",\"price\":\"800\"}]', 1); | ||
(2, 'Empire Restaurant - Church Street', 'Empire Restaurant - Church Street', 6, 2, 'D-Wing, Western Express Highway, Miragaon, Mira Road East, Mira Bhayandar, Maharashtra, India', '19.285021', '72.880876', '', '', 1), | ||
(3, 'PVR Koramangala', 'Cosmopolitan Koramangala is popular with young tech workers and students, due to the many IT companies and colleges in the area. Hip restaurants and rooftop bars cluster around 80 Feet Main Road, while the streets around Jyoti Nivas College are also known for trendy stores selling funky clothes and accessories. Upscale apartment complexes are interspersed with the commercial buildings on the tree-lined avenues.', 6, 3, 'DF Block, Sector 1, Salt Lake City, Kolkata, West Bengal, India', '22.5908767', '88.4170614', 'assets/uploads/services/1550472451_media-froala-description-0-2018-9-5-t-14-14-32.jpeg', '[{\"color\":\"RED\",\"price\":\"150\",\"capacity\":\"500\",\"weekend_price\":\"150\"},{\"color\":\"BLUE\",\"price\":\"254\",\"capacity\":\"605\",\"weekend_price\":\"254\"},{\"color\":\"GRAY\",\"price\":\"250\",\"capacity\":\"400\",\"weekend_price\":\"250\"},{\"color\":\"YELLOW\",\"price\":\"1000\",\"capacity\":\"200\",\"weekend_price\":\"1000\"}]', 1), | ||
(4, 'xsaDfc', 'dsretg', 6, 3, 'Techwarelogy Solutions Private Limited (TSPL), Gayatri Vihar, Kanan Vihar, Patia, Bhubaneswar, Odish', '20.3410391', '85.8208971', 'assets/uploads/services/1550474547_media-froala-description-0-2018-9-5-t-14-14-32.jpeg', '[{\"color\":\"xdcfg\",\"price\":\"45345\",\"capacity\":\"45\",\"weekend_price\":\"45345\"}]', 1); | ||
-- | ||
-- Indexes for dumped tables | ||
... | ... | @@ -588,9 +645,7 @@ INSERT INTO `venue` (`id`, `venue_name`, `venue_details`, `region_id`, `host_cat |
-- Indexes for table `booking` | ||
-- | ||
ALTER TABLE `booking` | ||
ADD PRIMARY KEY (`id`,`event_id`,`customer_id`), | ||
ADD KEY `fk_booking_event1_idx` (`event_id`), | ||
ADD KEY `fk_booking_customer1_idx` (`customer_id`); | ||
ADD PRIMARY KEY (`id`) USING BTREE; | ||
-- | ||
-- Indexes for table `customer` | ||
... | ... | @@ -728,19 +783,19 @@ ALTER TABLE `booking` |
-- AUTO_INCREMENT for table `customer` | ||
-- | ||
ALTER TABLE `customer` | ||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; | ||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; | ||
-- | ||
-- AUTO_INCREMENT for table `customer_auth` | ||
-- | ||
ALTER TABLE `customer_auth` | ||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; | ||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20; | ||
-- | ||
-- AUTO_INCREMENT for table `events` | ||
-- | ||
ALTER TABLE `events` | ||
MODIFY `event_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; | ||
MODIFY `event_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16; | ||
-- | ||
-- AUTO_INCREMENT for table `event_category` | ||
... | ... | @@ -752,19 +807,19 @@ ALTER TABLE `event_category` |
-- AUTO_INCREMENT for table `event_date_time` | ||
-- | ||
ALTER TABLE `event_date_time` | ||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=114; | ||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=192; | ||
-- | ||
-- AUTO_INCREMENT for table `event_gallery` | ||
-- | ||
ALTER TABLE `event_gallery` | ||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21; | ||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25; | ||
-- | ||
-- AUTO_INCREMENT for table `event_tags` | ||
-- | ||
ALTER TABLE `event_tags` | ||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=148; | ||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=212; | ||
-- | ||
-- AUTO_INCREMENT for table `favourite` | ||
... | ... | @@ -824,13 +879,13 @@ ALTER TABLE `transaction` |
-- AUTO_INCREMENT for table `users` | ||
-- | ||
ALTER TABLE `users` | ||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; | ||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16; | ||
-- | ||
-- AUTO_INCREMENT for table `venue` | ||
-- | ||
ALTER TABLE `venue` | ||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; | ||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; | ||
COMMIT; | ||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
... | ... |