Advertisement
Guest User

Untitled

a guest
Dec 28th, 2016
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. insert into driver (
  2.         full_name,
  3.         birth_date,
  4.         driving_licence_number,
  5.         expire_date,
  6.         working
  7.     ) values
  8.         ('John Doe', '1985-07-10', '10ej38ru82', '2018-10-01', true),
  9.         ('Jerald Broflovski', '1970-12-04', '13ks02lmsu', '2021-12-24', true),
  10.         ('Alex King', '1964-04-18', 'jdyu492nx8', '2018-07-14', true),
  11.         ('Sam Ganji', '1978-08-23', '7yhj03jsl4', '2017-03-26', true),
  12.         ('Victor Reznov', '1983-03-03', 'aj37nsi3m3', '2019-06-12', true),
  13.         ('Aizek Clark', '1992-06-11', '10ej38ur38', '2020-05-22', true),
  14.         ('Matt Preston', '1987-03-01', 'djr392ms90', '2016-11-03', true),
  15.         ('Cir Brick', '1987-10-05', 'kjdf034nkd', '2016-12-12', true),
  16.         ('Sir Dumb', '1987-12-27', '93jdf0rfls', '2015-03-03', true);
  17.  
  18.  
  19. insert into car_model (
  20.         model_name,
  21.         model_description
  22.     ) values
  23.         ('Ford focus', 'blue'),
  24.         ('Toyota prius', 'San-Francisco Sticker'),
  25.         ('Ford focus', 'blue'),
  26.         ('BMW cabrio', 'cabriolet'),
  27.         ('HAMMER', 'with stupid back label'),
  28.         ('Tesla', ''),
  29.         ('Mustang', 'green'),
  30.         ('Audi x5', 'red');
  31.  
  32.  
  33. insert into cab (
  34.         license_plate,
  35.         car_model_id,
  36.         owner_id,
  37.         active
  38.     ) values
  39.         ('23jj2f', 3, 2, true),
  40.         ('90er4b', 2, 2, true),
  41.         ('u73ns0', 4, 4, true),
  42.         ('snj30j', 6, 5, true),
  43.         ('nz30m3', 8, 6, false);
  44.  
  45.  
  46. insert into shift (
  47.         driver_id,
  48.         cab_id,
  49.         shift_start_time,
  50.         shift_finish_time
  51.     ) values
  52.         (4, 3, '09:00:00', '17:30:00'),
  53.         (2, 1, '12:00:00', '20:00:00'),
  54.         (6, 5, '01:30:00', '08:45:00'),
  55.         (6, 5, '07:00:00', '15:00:00'),
  56.         (5, 4, '10:00:00', '13:00:00');
  57.  
  58.  
  59. insert into payment_type (
  60.         type_name
  61.     ) values
  62.         ('cash'),
  63.         ('credit card');
  64.  
  65.  
  66. insert into cc_agent (
  67.         first_name,
  68.         last_name
  69.     ) values
  70.         ('Bob', 'Burnwood'),
  71.         ('Anton', 'MacGee'),
  72.         ('Jason', 'Lee'),
  73.         ('Frank', 'Corn'),
  74.         ('Matt', 'Stone');
  75.  
  76.  
  77. insert into status (
  78.         status_name
  79.     ) values
  80.         ('new'),
  81.         ('assigned'),
  82.         ('started'),
  83.         ('ended'),
  84.         ('canceled');
  85.  
  86.  
  87. insert into customer (
  88.         email,
  89.         password,
  90.         credit_card_number,
  91.         balance
  92.     ) values
  93.         ('qwer2020@mail.com', 'ksdhbfbsldkfe', '1111111111111111', 50.00),
  94.         ('sadmanhello@mail.com', 'akkhhej394mld', '2222222222222222', 200.00),
  95.         ('candy93@mail.com', '324nsadlij465', '3333333333333333', 150.00),
  96.         ('house13@ya.com', 'ndfjdfdflkj91', '4444444444444444', 0.00),
  97.         ('alex@ml.com', 'drnejflicjdlr', '5555555555555555', 0.00),
  98.         ('updown@mail.com', 'n43od94nkc904', '6666666666666666', 623.00),
  99.         ('setlink@mail.com', 'nklfjh93no40e', '7777777777777777', 27.0),
  100.         ('dleknr@mail.com', '34lji@34we534', '8888888888888888', 483.23),
  101.         ('summer@gmail.com', '4jbf9503kck30', '9999999999999999', 343.20);
  102.  
  103.  
  104. insert into cab_ride (
  105.         shift_id,
  106.         customer_id,
  107.         ride_start_time,
  108.         ride_end_time,
  109.         address_starting_point,
  110.         gps_starting_point,
  111.         address_destination,
  112.         gps_destination,
  113.         canceled,
  114.         payment_type_id,
  115.         price
  116.     ) values
  117.         (1, 3, '2016-11-10 12:53:42', '2016-11-10 13:15:34',
  118.             'linkoln 14th', '239082403872',
  119.             'marystreet 83th', '232324872643',
  120.             false, 1, '15'),
  121.  
  122.         (2, 1, '2016-09-12 03:05:42', '2016-09-12 03:45:34',
  123.             'subway 93th', '934834035544',
  124.             'brooklin str 83th', '9495029203',
  125.             false, 2, '35'),
  126.  
  127.         (3, 3, '2016-12-05 12:53:42', '2016-12-05 13:15:34',
  128.             'marystreet 83th', '232324872643',
  129.             'linkoln 14th', '239082403872',
  130.             false, 1, '15'),
  131.  
  132.         (4, 5, '2016-10-21 20:23:42', '2016-10-21 20:52:34',
  133.             'greenbay 98th', '485064058956',
  134.             'broadway 3th', '187239834094',
  135.             true, 2, '32'),
  136.  
  137.         (5, 9, '2016-11-29 21:53:42', '2016-11-29 22:13:34',
  138.             'redcapes 34th', '342343403872',
  139.             'marystreet 83th', '232324872643',
  140.             false, 2, '8');
  141.  
  142.  
  143. insert into cab_ride_status (
  144.         cab_ride_id,
  145.         status_id,
  146.         status_time,
  147.         cc_agent_id,
  148.         shift_id,
  149.         status_details
  150.     ) values
  151.         (1, 3, '2016-11-10 12:53:42', 5, 1, ''),
  152.         (2, 1, '2016-09-12 02:55:12', 4, 2, '3 person'),
  153.         (3, 2, '2016-12-05 12:49:31', 3, 3, ''),
  154.         (4, 5, '2016-10-21 20:52:34', 2, 4, 'drunk customer'),
  155.         (5, 4, '2016-11-29 22:13:34', 1, 5, 'ok');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement