Advertisement
Guest User

Untitled

a guest
Apr 21st, 2018
600
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.00 KB | None | 0 0
  1. DROP TABLE IF EXISTS users CASCADE;
  2. DROP TABLE IF EXISTS cards CASCADE;
  3. DROP TABLE IF EXISTS items CASCADE;
  4.  
  5. -- Tables
  6.  
  7. DROP TABLE IF EXISTS Category CASCADE;
  8. DROP TABLE IF EXISTS Country CASCADE;
  9. DROP TABLE IF EXISTS City CASCADE;
  10. DROP TABLE IF EXISTS Localization CASCADE;
  11. DROP TABLE IF EXISTS Admin CASCADE;
  12. DROP TABLE IF EXISTS AuthenticatedUser CASCADE;
  13. DROP TABLE IF EXISTS Photo CASCADE;
  14. DROP TABLE IF EXISTS Invitation CASCADE;
  15. DROP TABLE IF EXISTS Message CASCADE;
  16. DROP TABLE IF EXISTS Event CASCADE;
  17. DROP TABLE IF EXISTS EventCategory CASCADE;
  18. DROP TABLE IF EXISTS EventParticipant CASCADE;
  19. DROP TABLE IF EXISTS Participate CASCADE;
  20. DROP TABLE IF EXISTS EventOwner CASCADE;
  21. DROP TABLE IF EXISTS OwnEvent CASCADE;
  22. DROP TABLE IF EXISTS File CASCADE;
  23. DROP TABLE IF EXISTS Post CASCADE;
  24. DROP TABLE IF EXISTS Poll CASCADE;
  25. DROP TABLE IF EXISTS PollVote CASCADE;
  26. DROP TABLE IF EXISTS PollOption CASCADE;
  27.  
  28. CREATE TABLE Category (
  29. id SERIAL NOT NULL,
  30. name text NOT NULL
  31. );
  32.  
  33. CREATE TABLE Country (
  34. id SERIAL NOT NULL,
  35. name text NOT NULL
  36. );
  37.  
  38.  
  39.  
  40.  
  41.  
  42. CREATE TABLE City (
  43. id SERIAL NOT NULL,
  44. name text NOT NULL,
  45. id_country integer NOT NULL
  46. );
  47.  
  48. CREATE TABLE Localization (
  49. id SERIAL NOT NULL,
  50. street text,
  51. latitude double precision NOT NULL,
  52. longitude double precision NOT NULL,
  53. id_city integer
  54. );
  55.  
  56. CREATE TABLE Admin (
  57. id SERIAL NOT NULL,
  58. email text NOT NULL,
  59. firstName text NOT NULL,
  60. password text NOT NULL,
  61. lastName text NOT NULL,
  62. username text NOT NULL
  63. );
  64.  
  65. CREATE TABLE AuthenticatedUser (
  66. id SERIAL NOT NULL,
  67. email text,
  68. firstName text NOT NULL,
  69. password text NOT NULL,
  70. lastName text NOT NULL,
  71. username text NOT NULL,
  72. id_photo integer,
  73. id_city integer
  74. );
  75.  
  76. CREATE TABLE Photo (
  77. id SERIAL NOT NULL,
  78. path text NOT NULL,
  79. id_event integer
  80. );
  81.  
  82. CREATE TABLE Invitation (
  83. id SERIAL NOT NULL,
  84. status text,
  85. id_receiver integer NOT NULL,
  86. id_sender integer NOT NULL,
  87. id_event integer NOT NULL,
  88. "date" timestamp with time zone DEFAULT now() NOT NULL,
  89. CHECK (id_sender != id_receiver)
  90. );
  91.  
  92. CREATE TABLE Message (
  93. id SERIAL NOT NULL,
  94. content text NOT NULL,
  95. id_sender integer NOT NULL,
  96. id_receiver integer NOT NULL,
  97. "date" timestamp with time zone DEFAULT now() NOT NULL
  98. );
  99.  
  100. CREATE TABLE Event (
  101. id SERIAL NOT NULL,
  102. description text NOT NULL,
  103. title text NOT NULL,
  104. is_Public BOOLEAN NOT NULL,
  105. id_localization integer NOT NULL,
  106. "date" timestamp with time zone DEFAULT now() NOT NULL
  107. );
  108.  
  109. CREATE TABLE EventCategory (
  110. id_event integer NOT NULL,
  111. id_category integer NOT NULL
  112. );
  113.  
  114. CREATE TABLE EventParticipant (
  115. id_user integer NOT NULL
  116. );
  117.  
  118. CREATE TABLE Participate (
  119. id_eventParticipant integer NOT NULL,
  120. id_event integer NOT NULL,
  121. classification integer CHECK (((classification > 0) AND (classification <= 5)))
  122. );
  123.  
  124. CREATE TABLE EventOwner (
  125. id_eventParticipant integer NOT NULL
  126. );
  127.  
  128. CREATE TABLE OwnEvent (
  129. id_eventOwner integer NOT NULL,
  130. id_event integer NOT NULL
  131. );
  132.  
  133. CREATE TABLE File (
  134. id SERIAL NOT NULL,
  135. id_event integer NOT NULL,
  136. id_eventParticipant integer NOT NULL,
  137. path text NOT NULL,
  138. submittedDate timestamp with time zone DEFAULT now() NOT NULL
  139. );
  140.  
  141. CREATE TABLE Post (
  142. id SERIAL NOT NULL,
  143. content text NOT NULL,
  144. id_poster integer NOT NULL,
  145. id_event integer NOT NULL,
  146. "date" timestamp with time zone DEFAULT now() NOT NULL
  147. );
  148.  
  149. CREATE TABLE Poll (
  150. id SERIAL NOT NULL,
  151. description text NOT NULL,
  152. id_owner integer NOT NULL,
  153. id_event integer NOT NULL,
  154. "date" timestamp with time zone DEFAULT now() NOT NULL
  155. );
  156.  
  157. CREATE TABLE PollVote (
  158. id_poll_option integer NOT NULL,
  159. id_eventParticipant integer NOT NULL
  160. );
  161.  
  162. CREATE TABLE PollOption (
  163. id SERIAL NOT NULL,
  164. description text NOT NULL,
  165. id_poll integer NOT NULL
  166. );
  167.  
  168. -- Primary Keys and Uniques
  169.  
  170. ALTER TABLE ONLY Category
  171. ADD CONSTRAINT category_pkey PRIMARY KEY (id),
  172. ADD CONSTRAINT name_category UNIQUE (name);
  173.  
  174. ALTER TABLE ONLY Country
  175. ADD CONSTRAINT country_pkey PRIMARY KEY (id);
  176.  
  177. ALTER TABLE ONLY City
  178. ADD CONSTRAINT city_pkey PRIMARY KEY (id);
  179.  
  180. ALTER TABLE ONLY Localization
  181. ADD CONSTRAINT localization_pkey PRIMARY KEY (id),
  182. ADD CONSTRAINT localization_coordinates_key UNIQUE (latitude,longitude);
  183.  
  184. ALTER TABLE ONLY Admin
  185. ADD CONSTRAINT admin_email_key UNIQUE (email),
  186. ADD CONSTRAINT admin_username_key UNIQUE (username);
  187.  
  188. ALTER TABLE ONLY Admin
  189. ADD CONSTRAINT admin_pkey PRIMARY KEY (id);
  190.  
  191. ALTER TABLE ONLY AuthenticatedUser
  192. ADD CONSTRAINT auth_user_email_key UNIQUE (email),
  193. ADD CONSTRAINT auth_user_username_key UNIQUE (username),
  194. ADD CONSTRAINT auth_user_id_photo_key UNIQUE (id_photo);
  195.  
  196. ALTER TABLE ONLY AuthenticatedUser
  197. ADD CONSTRAINT auth_user_pkey PRIMARY KEY (id);
  198.  
  199. ALTER TABLE ONLY Photo
  200. ADD CONSTRAINT photo_pkey PRIMARY KEY (id),
  201. ADD CONSTRAINT path_key UNIQUE (path);
  202.  
  203. ALTER TABLE ONLY Invitation
  204. ADD CONSTRAINT invitation_pkey PRIMARY KEY (id);
  205.  
  206. ALTER TABLE ONLY Message
  207. ADD CONSTRAINT message_pkey PRIMARY KEY (id);
  208.  
  209. ALTER TABLE ONLY Event
  210. ADD CONSTRAINT event_pkey PRIMARY KEY (id);
  211.  
  212. ALTER TABLE ONLY EventCategory
  213. ADD CONSTRAINT event_category_pkey PRIMARY KEY (id_event, id_category);
  214.  
  215. ALTER TABLE ONLY EventParticipant
  216. ADD CONSTRAINT event_participant_pkey PRIMARY KEY (id_user);
  217.  
  218. ALTER TABLE ONLY Participate
  219. ADD CONSTRAINT participate_pkey PRIMARY KEY (id_eventParticipant, id_event);
  220.  
  221. ALTER TABLE ONLY EventOwner
  222. ADD CONSTRAINT event_owner_pkey PRIMARY KEY (id_eventParticipant);
  223.  
  224. ALTER TABLE ONLY OwnEvent
  225. ADD CONSTRAINT own_event_pkey PRIMARY KEY (id_eventOwner, id_event);
  226.  
  227. ALTER TABLE ONLY File
  228. ADD CONSTRAINT file_pkey PRIMARY KEY (id);
  229.  
  230. ALTER TABLE ONLY Post
  231. ADD CONSTRAINT post_pkey PRIMARY KEY (id);
  232.  
  233. ALTER TABLE ONLY Poll
  234. ADD CONSTRAINT poll_pkey PRIMARY KEY (id);
  235.  
  236. ALTER TABLE ONLY PollVote
  237. ADD CONSTRAINT poll_vote_pkey PRIMARY KEY (id_poll_option, id_eventParticipant);
  238.  
  239. ALTER TABLE ONLY PollOption
  240. ADD CONSTRAINT poll_option_pkey PRIMARY KEY (id);
  241.  
  242. -- Foreign Keys
  243.  
  244. ALTER TABLE ONLY City
  245. ADD CONSTRAINT city_id_country_fkey FOREIGN KEY (id_country) REFERENCES Country(id) ON UPDATE CASCADE;
  246.  
  247. ALTER TABLE ONLY Localization
  248. ADD CONSTRAINT localization_id_city_fkey FOREIGN KEY (id_city) REFERENCES City(id) ON UPDATE CASCADE;
  249.  
  250. ALTER TABLE ONLY AuthenticatedUser
  251. ADD CONSTRAINT auth_user_id_photo_fkey FOREIGN KEY (id_photo) REFERENCES Photo(id) ON UPDATE CASCADE;
  252.  
  253. ALTER TABLE ONLY AuthenticatedUser
  254. ADD CONSTRAINT auth_user_id_city_fkey FOREIGN KEY (id_city) REFERENCES City(id) ON UPDATE CASCADE;
  255.  
  256. ALTER TABLE ONLY Invitation
  257. ADD CONSTRAINT invitation_id_receiver_fkey FOREIGN KEY (id_receiver) REFERENCES AuthenticatedUser(id) ON UPDATE CASCADE;
  258.  
  259. ALTER TABLE ONLY Invitation
  260. ADD CONSTRAINT invitation_id_sender_fkey FOREIGN KEY (id_sender) REFERENCES EventParticipant(id_user) ON UPDATE CASCADE;
  261.  
  262. ALTER TABLE ONLY Invitation
  263. ADD CONSTRAINT invitation_id_event_fkey FOREIGN KEY (id_event) REFERENCES Event(id) ON UPDATE CASCADE;
  264.  
  265. ALTER TABLE ONLY Message
  266. ADD CONSTRAINT message_id_sender_fkey FOREIGN KEY (id_sender) REFERENCES AuthenticatedUser(id) ON UPDATE CASCADE;
  267.  
  268. ALTER TABLE ONLY Message
  269. ADD CONSTRAINT message_id_receiver_fkey FOREIGN KEY (id_receiver) REFERENCES AuthenticatedUser(id) ON UPDATE CASCADE;
  270.  
  271. ALTER TABLE ONLY Event
  272. ADD CONSTRAINT event_id_localization_fkey FOREIGN KEY (id_localization) REFERENCES Localization(id) ON UPDATE CASCADE;
  273.  
  274. ALTER TABLE ONLY EventCategory
  275. ADD CONSTRAINT event_category_id_event_fkey FOREIGN KEY (id_event) REFERENCES Event(id) ON UPDATE CASCADE;
  276.  
  277. ALTER TABLE ONLY EventCategory
  278. ADD CONSTRAINT event_category_id_category_fkey FOREIGN KEY (id_category) REFERENCES Category(id) ON UPDATE CASCADE;
  279.  
  280. ALTER TABLE ONLY EventParticipant
  281. ADD CONSTRAINT event_participant_id_user_fkey FOREIGN KEY (id_user) REFERENCES AuthenticatedUser(id) ON UPDATE CASCADE;
  282.  
  283. ALTER TABLE ONLY Participate
  284. ADD CONSTRAINT participate_id_event_participant_fkey FOREIGN KEY (id_eventParticipant) REFERENCES EventParticipant(id_user) ON UPDATE CASCADE;
  285.  
  286. ALTER TABLE ONLY Participate
  287. ADD CONSTRAINT participate_id_event_fkey FOREIGN KEY (id_event) REFERENCES Event(id) ON UPDATE CASCADE;
  288.  
  289.  
  290. ALTER TABLE ONLY EventOwner
  291. ADD CONSTRAINT event_owner_id_event_participant_fkey FOREIGN KEY (id_eventParticipant) REFERENCES EventParticipant(id_user) ON UPDATE CASCADE;
  292.  
  293. ALTER TABLE ONLY OwnEvent
  294. ADD CONSTRAINT own_event_id_event_owner_fkey FOREIGN KEY (id_eventOwner) REFERENCES EventOwner(id_eventParticipant) ON UPDATE CASCADE;
  295.  
  296. ALTER TABLE ONLY OwnEvent
  297. ADD CONSTRAINT own_event_id_event_fkey FOREIGN KEY (id_event) REFERENCES Event(id) ON UPDATE CASCADE;
  298.  
  299. ALTER TABLE ONLY File
  300. ADD CONSTRAINT file_id_event_fkey FOREIGN KEY (id_event) REFERENCES Event(id) ON UPDATE CASCADE;
  301.  
  302. ALTER TABLE ONLY File
  303. ADD CONSTRAINT file_id_event_participant_fkey FOREIGN KEY (id_eventParticipant) REFERENCES EventParticipant(id_user) ON UPDATE CASCADE;
  304.  
  305. ALTER TABLE ONLY Post
  306. ADD CONSTRAINT post_id_poster_fkey FOREIGN KEY (id_poster) REFERENCES EventParticipant(id_user) ON UPDATE CASCADE;
  307.  
  308. ALTER TABLE ONLY Post
  309. ADD CONSTRAINT post_id_event_fkey FOREIGN KEY (id_event) REFERENCES Event(id) ON UPDATE CASCADE;
  310.  
  311. ALTER TABLE ONLY Poll
  312. ADD CONSTRAINT poll_id_event_fkey FOREIGN KEY (id_event) REFERENCES Event(id) ON UPDATE CASCADE;
  313.  
  314. ALTER TABLE ONLY Poll
  315. ADD CONSTRAINT poll_id_owner_fkey FOREIGN KEY (id_owner) REFERENCES EventOwner(id_eventParticipant) ON UPDATE CASCADE;
  316.  
  317. ALTER TABLE ONLY PollVote
  318. ADD CONSTRAINT poll_vote_id_poll_option_fkey FOREIGN KEY (id_poll_option) REFERENCES Poll(id) ON UPDATE CASCADE;
  319.  
  320. ALTER TABLE ONLY PollVote
  321. ADD CONSTRAINT poll_vote_id_event_participant_fkey FOREIGN KEY (id_eventParticipant) REFERENCES EventParticipant(id_user) ON UPDATE CASCADE;
  322.  
  323. ALTER TABLE ONLY PollOption
  324. ADD CONSTRAINT poll_option_id_poll_fkey FOREIGN KEY (id_poll) REFERENCES Poll(id) ON UPDATE CASCADE;
  325.  
  326. CREATE INDEX "EventRecent" ON event USING btree (date);
  327.  
  328. CREATE INDEX name_category_idx ON category USING hash(name);
  329.  
  330. CREATE INDEX "PostsPerEvent" ON post USING btree ( id_event);
  331.  
  332. CREATE INDEX search_idx ON event USING gin(to_tsvector('english'::regconfig, description));
  333.  
  334. CREATE INDEX search_event_per_title ON event USING GIST (to_tsvector('english', title));
  335.  
  336. CREATE INDEX search_category ON category USING GIST (to_tsvector('english', name));
  337.  
  338. DROP TRIGGER IF EXISTS only_owner_private_invite ON invitation;
  339. DROP FUNCTION IF EXISTS only_owner_private_invite() CASCADE;
  340.  
  341. CREATE FUNCTION only_owner_private_invite() RETURNS TRIGGER AS
  342. $BODY$
  343. BEGIN
  344. IF EXISTS (SELECT *
  345. FROM invitation INNER JOIN event
  346. ON invitation.id_event = event.id
  347. WHERE NEW.id_event = event.id AND event.is_public = false AND invitation.id_sender NOT IN (
  348. SELECT ownevent.id_eventOwner
  349. FROM ownevent
  350. WHERE ownevent.id_event = event.id
  351. ) ) THEN
  352. RAISE EXCEPTION 'A non owner cannot invite other users to a private event';
  353. END IF;
  354. RETURN NEW;
  355. END
  356. $BODY$
  357. LANGUAGE plpgsql;
  358. CREATE TRIGGER only_owner_private_invite
  359. BEFORE INSERT OR UPDATE ON invitation
  360. FOR EACH ROW
  361. EXECUTE PROCEDURE only_owner_private_invite();
  362.  
  363. DROP TRIGGER IF EXISTS no_self_message ON message;
  364. DROP FUNCTION IF EXISTS no_self_message() CASCADE;
  365.  
  366. CREATE FUNCTION no_self_message() RETURNS TRIGGER AS
  367. $BODY$
  368. BEGIN
  369. IF EXISTS (SELECT * FROM message WHERE NEW.id_sender = NEW.id_receiver) THEN
  370. RAISE EXCEPTION 'A user cannot send messages to himself';
  371. END IF;
  372. RETURN NEW;
  373. END
  374. $BODY$
  375. LANGUAGE plpgsql;
  376. CREATE TRIGGER no_self_message
  377. BEFORE INSERT OR UPDATE ON message
  378. FOR EACH ROW
  379. EXECUTE PROCEDURE no_self_message();
  380.  
  381. DROP TRIGGER IF EXISTS no_self_invitation ON invitation;
  382. DROP FUNCTION IF EXISTS no_self_invitation() CASCADE;
  383.  
  384. CREATE FUNCTION no_self_invitation() RETURNS TRIGGER AS
  385. $BODY$
  386. BEGIN
  387. IF EXISTS (SELECT * FROM invitation WHERE NEW.id_sender = NEW.id_receiver) THEN
  388. RAISE EXCEPTION 'A user cannot send invitations to himself';
  389. END IF;
  390. RETURN NEW;
  391. END
  392. $BODY$
  393. LANGUAGE plpgsql;
  394. CREATE TRIGGER no_self_invitation
  395. BEFORE INSERT OR UPDATE ON invitation
  396. FOR EACH ROW
  397. EXECUTE PROCEDURE no_self_invitation();
  398.  
  399. DROP TRIGGER IF EXISTS no_participate_old_events ON participate;
  400. DROP FUNCTION IF EXISTS no_participate_old_events() CASCADE;
  401.  
  402. CREATE FUNCTION no_participate_old_events() RETURNS TRIGGER AS
  403. $BODY$
  404. BEGIN
  405. IF EXISTS (SELECT *
  406. FROM participate INNER JOIN event
  407. ON participate.id_event = event.id
  408. WHERE NEW.id_event = event.id AND event.date < now()) THEN
  409. RAISE EXCEPTION 'A user cannot join a finished event';
  410. END IF;
  411. RETURN NEW;
  412. END
  413. $BODY$
  414. LANGUAGE plpgsql;
  415. CREATE TRIGGER no_participate_old_events
  416. BEFORE INSERT OR UPDATE ON participate
  417. FOR EACH ROW
  418. EXECUTE PROCEDURE no_participate_old_events();
  419.  
  420. TRUNCATE "category","country","city","localization","admin","photo","authenticateduser","eventparticipant","event","invitation","message","eventcategory","participate","eventowner","ownevent", "file", "post", "poll", "polloption", "pollvote" CASCADE;
  421. INSERT INTO "category" (name) VALUES ('Dance and Theatre');
  422. INSERT INTO "category" (name) VALUES ('Clubbing');
  423. INSERT INTO "category" (name) VALUES ('Conferences');
  424. INSERT INTO "category" (name) VALUES ('Concerts');
  425. INSERT INTO "category" (name) VALUES ('Formation');
  426. INSERT INTO "category" (name) VALUES ('Gastronomy');
  427. INSERT INTO "category" (name) VALUES ('Children');
  428. INSERT INTO "category" (name) VALUES ('Fashion');
  429. INSERT INTO "category" (name) VALUES ('Academics');
  430. INSERT INTO "category" (name) VALUES ('Nature');
  431. INSERT INTO "category" (name) VALUES ('Travel');
  432. INSERT INTO "category" (name) VALUES ('Literature');
  433.  
  434. INSERT INTO "country" (name) VALUES ('Portugal');
  435. INSERT INTO "country" (name) VALUES ('Spain');
  436. INSERT INTO "country" (name) VALUES ('France');
  437. INSERT INTO "country" (name) VALUES ('Switzerland');
  438. INSERT INTO "country" (name) VALUES ('Germany');
  439. INSERT INTO "country" (name) VALUES ('Netherlands');
  440. INSERT INTO "country" (name) VALUES ('Russia');
  441. INSERT INTO "country" (name) VALUES ('China');
  442. INSERT INTO "country" (name) VALUES ('Japan');
  443. INSERT INTO "country" (name) VALUES ('Italy');
  444. INSERT INTO "country" (name) VALUES ('Australia');
  445. INSERT INTO "country" (name) VALUES ('USA');
  446.  
  447. INSERT INTO "city" (name,id_country) VALUES ('Porto', 1);
  448. INSERT INTO "city" (name,id_country) VALUES ('Faro', 1);
  449. INSERT INTO "city" (name,id_country) VALUES ('Madrid', 2);
  450. INSERT INTO "city" (name,id_country) VALUES ('Paris', 3);
  451. INSERT INTO "city" (name,id_country) VALUES ('Luzern', 4);
  452. INSERT INTO "city" (name,id_country) VALUES ('Frankfurt', 5);
  453. INSERT INTO "city" (name,id_country) VALUES ('Amsterdam', 6);
  454. INSERT INTO "city" (name,id_country) VALUES ('Beijing', 8);
  455. INSERT INTO "city" (name,id_country) VALUES ('Rome', 10);
  456. INSERT INTO "city" (name,id_country) VALUES ('Sydney', 11);
  457. INSERT INTO "city" (name,id_country) VALUES ('New York', 12);
  458. INSERT INTO "city" (name,id_country) VALUES ('Aveiro', 1);
  459.  
  460. INSERT INTO "localization" (street,latitude,longitude,id_city)
  461. VALUES ('diam lorem, auctor','-57.83262','120.88352',10);
  462. INSERT INTO "localization" (street,latitude,longitude,id_city)
  463. VALUES ('Quisque purus sapien,','1.43736','-143.19847',4);
  464. INSERT INTO "localization" (street,latitude,longitude,id_city)
  465. VALUES ('Donec vitae erat','38.29072','109.41783',10);
  466. INSERT INTO "localization" (street,latitude,longitude,id_city)
  467. VALUES ('nec, malesuada ut,','72.75425','151.88681',2);
  468. INSERT INTO "localization" (street,latitude,longitude,id_city)
  469. VALUES ('amet orci. Ut','22.58932','-27.19582',8);
  470. INSERT INTO "localization" (street,latitude,longitude,id_city)
  471. VALUES ('sem egestas blandit.','46.45921','-39.02434',1);
  472. INSERT INTO "localization" (street,latitude,longitude,id_city)
  473. VALUES ('ac libero nec','-15.54521','55.05494',4);
  474. INSERT INTO "localization" (street,latitude,longitude,id_city)
  475. VALUES ('lacus. Nulla tincidunt,','-22.60314','38.78897',8);
  476. INSERT INTO "localization" (street,latitude,longitude,id_city)
  477. VALUES ('posuere vulputate, lacus.','17.20856','12.84046',9);
  478. INSERT INTO "localization" (street,latitude,longitude,id_city)
  479. VALUES ('venenatis vel, faucibus','75.18007','-41.27717',5);
  480. INSERT INTO "localization" (street,latitude,longitude,id_city)
  481. VALUES ('justo sit amet','73.17373','37.20697',7);
  482. INSERT INTO "localization" (street,latitude,longitude,id_city)
  483. VALUES ('Integer tincidunt aliquam','-4.79812','178.94257',4);
  484. INSERT INTO "localization" (street,latitude,longitude,id_city)
  485. VALUES ('Lorem ipsum dolor','65.09022','96.3736',9);
  486. INSERT INTO "localization" (street,latitude,longitude,id_city)
  487. VALUES ('eu eros. Nam','51.32303','-105.15054',1);
  488. INSERT INTO "localization" (street,latitude,longitude,id_city)
  489. VALUES ('posuere cubilia Curae;','-31.24328','-110.92501',3);
  490. INSERT INTO "localization" (street,latitude,longitude,id_city)
  491. VALUES ('Cras pellentesque. Sed','28.87859','-58.91476',5);
  492. INSERT INTO "localization" (street,latitude,longitude,id_city)
  493. VALUES ('parturient montes, nascetur','0.71294','178.77274',5);
  494. INSERT INTO "localization" (street,latitude,longitude,id_city)
  495. VALUES ('luctus et ultrices','-23.88917','-165.24832',9);
  496. INSERT INTO "localization" (street,latitude,longitude,id_city)
  497. VALUES ('cursus et, eros.','-76.6059','117.8904',12);
  498. INSERT INTO "localization" (street,latitude,longitude,id_city)
  499. VALUES ('ultrices iaculis odio.','77.72928','114.31794',3);
  500.  
  501. INSERT INTO "admin" (email,firstName,password,lastName,username)
  502. VALUES ('non@Sednunc.com','Pascale','LUD73ILG7BH','Moore','accumsan');
  503. INSERT INTO "admin" (email,firstName,password,lastName,username)
  504. VALUES ('magna@vulputate.org','Stewart','FMK91UTU7VJ','Gonzalez','sodales.');
  505. INSERT INTO "admin" (email,firstName,password,lastName,username)
  506. VALUES ('Suspendisse.aliquet@Nulla.net','Samuel','PWG57NUN3ZB','Flynn','id risus');
  507. INSERT INTO "admin" (email,firstName,password,lastName,username)
  508. VALUES ('a.feugiat@id.edu','Janna','XNG10TUN6UA','Vasquez','faucibus lectus,');
  509. INSERT INTO "admin" (email,firstName,password,lastName,username)
  510. VALUES('luctus@eleifendegestas.net','Clementine','CIU02ORP3MZ','Neal','consectetuer ipsum');
  511. INSERT INTO "admin" (email,firstName,password,lastName,username)
  512. VALUES ('elit@nibh.com','Aimee','BIN74GSX7LS','Jenkins','eros');
  513. INSERT INTO "admin" (email,firstName,password,lastName,username)
  514. VALUES('tincidunt.aliquam@pharetraNamac.org','Candace','QES41CBF6OB','Marshall','sed leo.');
  515. INSERT INTO "admin" (email,firstName,password,lastName,username)
  516. VALUES ('consectetuer@Namnulla.net','Joseph','ZPD22RJN2DR','Ortiz','sagittis lobortis');
  517. INSERT INTO "admin" (email,firstName,password,lastName,username)
  518. VALUES ('fermentum.arcu@tristiquesenectus.com','Zelenia','JPK04SQI8RM','Vargas','ornare. In');
  519. INSERT INTO "admin" (email,firstName,password,lastName,username)
  520. VALUES ('sit.amet@sociosquad.edu','Ryder','WWT23VSW6MR','Gay','dignissim pharetra.');
  521. INSERT INTO "admin" (email,firstName,password,lastName,username)
  522. VALUES ('fringilla@imperdiet.co.uk','Althea','ZNN00XQJ1VP','Ray','adipiscing');
  523. INSERT INTO "admin" (email,firstName,password,lastName,username)
  524. VALUES('vel.est.tempor@ullamcorpervelitin.net','Uriel','PLL50RVJ0TO','Watkins','et tristique');
  525. INSERT INTO "admin" (email,firstName,password,lastName,username)
  526. VALUES('aliquet@maurisIntegersem.co.uk','Odette','ZYU41PXX4JV','Carpenter','luctus felis');
  527. INSERT INTO "admin" (email,firstName,password,lastName,username)
  528. VALUES('consectetuer.mauris.id@vestibulummassa.edu','Benjamin','WWA23XAQ2PR','Mcdowell','tellus sem');
  529. INSERT INTO "admin" (email,firstName,password,lastName,username)
  530. VALUES('at.velit.Pellentesque@Donecfringilla.org','Gillian','EYH37GZP5HR','Lara','Fusce diam');
  531. INSERT INTO "admin" (email,firstName,password,lastName,username)
  532. VALUES ('massa@disparturientmontes.edu','Chelsea','EBZ86OOF2HY','Mullins','Cras vulputate');
  533. INSERT INTO "admin" (email,firstName,password,lastName,username)
  534. VALUES ('Phasellus@nec.net','Tobias','CZR51YAW8VH','Bolton','magna.');
  535. INSERT INTO "admin" (email,firstName,password,lastName,username)
  536. VALUES ('dolor.dapibus.gravida@libero.com','Ivory','DIF33ASG1SO','Browning','mi felis,');
  537. INSERT INTO "admin" (email,firstName,password,lastName,username)
  538. VALUES ('Etiam@ornarelectus.net','Roanna','KMM31PWZ4BU','Taylor','Donec est.');
  539. INSERT INTO "admin" (email,firstName,password,lastName,username)
  540. VALUES('egestas@montesnascetur.net','Jessica','KDK13ERS3ED','Gonzales','tincidunt pede');
  541.  
  542. INSERT INTO "photo" (path) VALUES ('../elit/Nulla');
  543. INSERT INTO "photo" (path) VALUES ('../a/felisullamcorper');
  544. INSERT INTO "photo" (path) VALUES ('../sociosqu');
  545. INSERT INTO "photo" (path) VALUES ('../nonummyac,');
  546. INSERT INTO "photo" (path) VALUES ('../vulputate');
  547. INSERT INTO "photo" (path) VALUES ('../interdum');
  548. INSERT INTO "photo" (path) VALUES ('../nascetur');
  549. INSERT INTO "photo" (path) VALUES ('../enim/Mauris');
  550. INSERT INTO "photo" (path) VALUES ('../posuerecubilia/Curae;');
  551. INSERT INTO "photo" (path) VALUES ('../eros');
  552. INSERT INTO "photo" (path) VALUES ('../lectusjusto');
  553. INSERT INTO "photo" (path) VALUES ('../Aenean/gravida_nunc');
  554. INSERT INTO "photo" (path) VALUES ('../imperdiet_ornare.');
  555. INSERT INTO "photo" (path) VALUES ('../porttitor');
  556. INSERT INTO "photo" (path) VALUES ('../Proinnon');
  557. INSERT INTO "photo" (path) VALUES ('../libero.');
  558. INSERT INTO "photo" (path) VALUES ('../Seddictum_Proin');
  559. INSERT INTO "photo" (path) VALUES ('../Curabitur');
  560. INSERT INTO "photo" (path) VALUES ('../felis_adipiscing');
  561. INSERT INTO "photo" (path) VALUES ('../non');
  562.  
  563. INSERT INTO "authenticateduser" (email,firstName,password,lastName,username,id_photo,id_city)
  564. VALUES ('nascetur@a.co.uk','Kyra','QSS06HGT3YN','Mills','morbi tristique',5,5);
  565. INSERT INTO "authenticateduser" (email,firstName,password,lastName,username,id_photo,id_city)
  566. VALUES ('fringilla.euismod@nuncsedlibero.com','Phyllis','UER02KGU0LP','Acevedo','lectus ante',3,6);
  567. INSERT INTO "authenticateduser" (email,firstName,password,lastName,username,id_photo,id_city)
  568. VALUES('sit.amet.consectetuer@velit.co.uk','Kimberley','KLU83ZIF4XP','Mosley','Mauris nulla.',12,2);
  569. INSERT INTO "authenticateduser" (email,firstName,password,lastName,username,id_photo,id_city)
  570. VALUES ('Nunc@dolornonummy.org','Gay','WKW16RZU9AQ','England','aliquet,',6,10);
  571. INSERT INTO "authenticateduser" (email,firstName,password,lastName,username,id_photo,id_city)
  572. VALUES ('cursus@nonegestas.org','Camden','QDS97IAP5JL','Calhoun','et',11,6);
  573. INSERT INTO "authenticateduser" (email,firstName,password,lastName,username,id_photo,id_city)
  574. VALUES ('ipsum.nunc@sitametante.co.uk','Lars','VNL46ZSD2AE','Cline','pretium aliquet,',10,12);
  575. INSERT INTO "authenticateduser" (email,firstName,password,lastName,username,id_photo,id_city)
  576. VALUES ('tortor.at.risus@lacinia.ca','Ronan','TOT92LIB8PO','Barker','penatibus et',4,12);
  577. INSERT INTO "authenticateduser" (email,firstName,password,lastName,username,id_photo,id_city)
  578. VALUES('cursus.Integer@Morbinon.edu','Sloane','BLZ66TGR6II','Shepard','Quisque',2,5);
  579. INSERT INTO "authenticateduser" (email,firstName,password,lastName,username,id_photo,id_city)
  580. VALUES('natoque.penatibus@In.net','Thane','DMA37PTA2PG','Dillard','Quisque2',20,12);
  581. INSERT INTO "authenticateduser" (email,firstName,password,lastName,username,id_photo,id_city)
  582. VALUES('cursus@volutpatornarefacilisis.edu','Talon','MNU74JXQ3EE','Guzman','lacus, varius',9,9);
  583. INSERT INTO "authenticateduser" (email,firstName,password,lastName,username,id_photo,id_city)
  584. VALUES ('adipiscing@gravidamauris.ca','Zane','XSA11UUT4XF','Alvarado','lacus. Quisque',15,12);
  585. INSERT INTO "authenticateduser" (email,firstName,password,lastName,username,id_photo,id_city)
  586. VALUES('Aliquam.erat.volutpat@lacusUtnec.edu','Angela','OZA96AGG4UW','Massey','lorem. Donec',16,9);
  587. INSERT INTO "authenticateduser" (email,firstName,password,lastName,username,id_photo,id_city)
  588. VALUES ('Proin@velitin.co.uk','Akeem','PCB43QKU5GT','Scott','Aliquam',17,1);
  589. INSERT INTO "authenticateduser" (email,firstName,password,lastName,username,id_photo,id_city)
  590. VALUES ('dui@tacitisociosquad.net','Robert','XQD40EAE7CV','Mullins','egestas, urna',7,4);
  591. INSERT INTO "authenticateduser" (email,firstName,password,lastName,username,id_photo,id_city)
  592. VALUES ('vel.est@nislsem.net','Chester','HUK31NWH5IG','Saunders','mi',19,6);
  593. INSERT INTO "authenticateduser" (email,firstName,password,lastName,username,id_photo,id_city)
  594. VALUES('rutrum.non@placeratvelitQuisque.ca','Clark','ROM54XLC0JJ','Tucker','feugiat metus',18,11);
  595. INSERT INTO "authenticateduser" (email,firstName,password,lastName,username,id_photo,id_city)
  596. VALUES ('nec@nislMaecenas.com','Iliana','ARI34QDO3ME','Gibson','ultrices',8,12);
  597. INSERT INTO "authenticateduser" (email,firstName,password,lastName,username,id_photo,id_city)
  598. VALUES ('Nulla.eu@ante.ca','Portia','RZN50RGQ8NQ','Payne','at auctor',1,7);
  599. INSERT INTO "authenticateduser" (email,firstName,password,lastName,username,id_photo,id_city)
  600. VALUES ('Nullam@InloremDonec.edu','Fuller','IRQ81NOY0XJ','Cole','id, mollis',14,4);
  601. INSERT INTO "authenticateduser" (email,firstName,password,lastName,username,id_photo,id_city)
  602. VALUES('adipiscing.elit.Aliquam@justo.net','Reuben','TRH93IUD5CE','Freeman','quis massa.',13,9);
  603.  
  604. INSERT INTO "eventparticipant" (id_user) VALUES (1);
  605. INSERT INTO "eventparticipant" (id_user) VALUES (2);
  606. INSERT INTO "eventparticipant" (id_user) VALUES (3);
  607. INSERT INTO "eventparticipant" (id_user) VALUES (4);
  608. INSERT INTO "eventparticipant" (id_user) VALUES (5);
  609. INSERT INTO "eventparticipant" (id_user) VALUES (6);
  610. INSERT INTO "eventparticipant" (id_user) VALUES (7);
  611. INSERT INTO "eventparticipant" (id_user) VALUES (8);
  612. INSERT INTO "eventparticipant" (id_user) VALUES (9);
  613. INSERT INTO "eventparticipant" (id_user) VALUES (10);
  614. INSERT INTO "eventparticipant" (id_user) VALUES (11);
  615. INSERT INTO "eventparticipant" (id_user) VALUES (12);
  616. INSERT INTO "eventparticipant" (id_user) VALUES (13);
  617. INSERT INTO "eventparticipant" (id_user) VALUES (14);
  618. INSERT INTO "eventparticipant" (id_user) VALUES (15);
  619. INSERT INTO "eventparticipant" (id_user) VALUES (16);
  620. INSERT INTO "eventparticipant" (id_user) VALUES (17);
  621. INSERT INTO "eventparticipant" (id_user) VALUES (18);
  622. INSERT INTO "eventparticipant" (id_user) VALUES (19);
  623. INSERT INTO "eventparticipant" (id_user) VALUES (20);
  624.  
  625. INSERT INTO "event" (description,title,is_public,id_localization,date)
  626. VALUES ('dui lectus rutrum urna, nec','mollis.','true',19,'2018-11-27 10:52:33');
  627. INSERT INTO "event" (description,title,is_public,id_localization,date)
  628. VALUES ('In at','amet ornare lectus','true',15,'2018-08-11 10:05:11');
  629. INSERT INTO "event" (description,title,is_public,id_localization,date)
  630. VALUES ('faucibus. Morbi','semper pretium neque.','true',18,'2019-03-08 21:37:55');
  631. INSERT INTO "event" (description,title,is_public,id_localization,date)
  632. VALUES ('sit amet','orci. Ut semper','true',18,'2017-11-29 15:03:53');
  633. INSERT INTO "event" (description,title,is_public,id_localization,date)
  634. VALUES ('lacus pede sagittis augue, eu','Integer','true',4,'2018-07-28 12:51:07');
  635. INSERT INTO "event" (description,title,is_public,id_localization,date)
  636. VALUES ('eu enim.','ad litora torquent','true',8,'2018-09-20 01:15:10');
  637. INSERT INTO "event" (description,title,is_public,id_localization,date)
  638. VALUES ('enim, gravida sit amet,','id,','true',13,'2018-05-14 00:29:15');
  639. INSERT INTO "event" (description,title,is_public,id_localization,date)
  640. VALUES ('vulputate, lacus. Cras','Sed eu nibh','true',8,'2018-10-27 00:42:43');
  641. INSERT INTO "event" (description,title,is_public,id_localization,date)
  642. VALUES ('egestas.','Fusce fermentum fermentum','true',18,'2017-11-22 00:13:54');
  643. INSERT INTO "event" (description,title,is_public,id_localization,date)
  644. VALUES ('Vivamus non','tempus non, lacinia','true',8,'2018-05-31 14:35:47');
  645. INSERT INTO "event" (description,title,is_public,id_localization,date)
  646. VALUES ('tortor. Nunc commodo','quis','true',13,'2018-06-29 09:20:26');
  647. INSERT INTO "event" (description,title,is_public,id_localization,date)
  648. VALUES ('Pellentesque habitant morbi tristique','Nunc mauris.','true',20,'2019-03-11 05:48:46');
  649. INSERT INTO "event" (description,title,is_public,id_localization,date)
  650. VALUES ('eget, dictum placerat, augue.','Etiam imperdiet','true',8,'2018-05-18 10:02:34');
  651. INSERT INTO "event" (description,title,is_public,id_localization,date)
  652. VALUES ('non lorem vitae','sodales purus,','true',16,'2017-07-20 04:36:50');
  653. INSERT INTO "event" (description,title,is_public,id_localization,date)
  654. VALUES ('Aliquam','tempor, est','true',1,'2018-01-22 12:59:49');
  655. INSERT INTO "event" (description,title,is_public,id_localization,date)
  656. VALUES ('dolor, tempus non,','Curabitur','true',16,'2018-07-22 02:47:44');
  657. INSERT INTO "event" (description,title,is_public,id_localization,date)
  658. VALUES ('Donec nibh enim, gravida sit','velit dui, semper','true',17,'2017-12-10 19:34:37');
  659. INSERT INTO "event" (description,title,is_public,id_localization,date)
  660. VALUES ('tempor arcu. Vestibulum ut eros','Donec tempus,','true',19,'2017-09-01 12:56:31');
  661. INSERT INTO "event" (description,title,is_public,id_localization,date)
  662. VALUES ('at','fermentum metus. Aenean','true',11,'2019-03-11 16:55:29');
  663. INSERT INTO "event" (description,title,is_public,id_localization,date)
  664. VALUES ('interdum. Sed','sed leo. Cras','true',4,'2017-12-17 04:54:43');
  665.  
  666.  
  667. INSERT INTO "invitation" (date,status,id_receiver,id_sender,id_event)
  668. VALUES ('2018-07-04 06:12:54','false',14,7,11);
  669. INSERT INTO "invitation" (date,status,id_receiver,id_sender,id_event)
  670. VALUES ('2019-01-14 00:41:07','false',20,6,3);
  671. INSERT INTO "invitation" (date,status,id_receiver,id_sender,id_event)
  672. VALUES ('2017-12-27 17:52:09','false',5,14,14);
  673. INSERT INTO "invitation" (date,status,id_receiver,id_sender,id_event)
  674. VALUES ('2018-05-02 16:54:19','false',6,14,14);
  675. INSERT INTO "invitation" (date,status,id_receiver,id_sender,id_event)
  676. VALUES ('2018-08-15 15:37:16','false',7,14,14);
  677. INSERT INTO "invitation" (date,status,id_receiver,id_sender,id_event)
  678. VALUES ('2019-03-09 13:12:32','false',8,14,14);
  679. INSERT INTO "invitation" (date,status,id_receiver,id_sender,id_event)
  680. VALUES ('2017-12-07 07:46:44','false',19,15,3);
  681. INSERT INTO "invitation" (date,status,id_receiver,id_sender,id_event)
  682. VALUES ('2018-09-10 04:16:47','false',17,15,3);
  683. INSERT INTO "invitation" (date,status,id_receiver,id_sender,id_event)
  684. VALUES ('2017-10-21 08:21:00','false',16,15,3);
  685. INSERT INTO "invitation" (date,status,id_receiver,id_sender,id_event)
  686. VALUES ('2017-06-22 00:06:34','false',1,6,19);
  687. INSERT INTO "invitation" (date,status,id_receiver,id_sender,id_event)
  688. VALUES ('2018-01-20 08:56:58','false',2,6,19);
  689. INSERT INTO "invitation" (date,status,id_receiver,id_sender,id_event)
  690. VALUES ('2017-12-10 12:20:02','false',3,6,19);
  691. INSERT INTO "invitation" (date,status,id_receiver,id_sender,id_event)
  692. VALUES ('2018-08-21 04:28:55','false',4,6,19);
  693. INSERT INTO "invitation" (date,status,id_receiver,id_sender,id_event)
  694. VALUES ('2018-05-27 15:27:15','false',5,6,19);
  695. INSERT INTO "invitation" (date,status,id_receiver,id_sender,id_event)
  696. VALUES ('2018-02-18 03:46:56','false',16,6,19);
  697. INSERT INTO "invitation" (date,status,id_receiver,id_sender,id_event)
  698. VALUES ('2017-04-10 06:40:21','false',7,6,19);
  699. INSERT INTO "invitation" (date,status,id_receiver,id_sender,id_event)
  700. VALUES ('2018-03-01 15:51:14','false',8,6,19);
  701. INSERT INTO "invitation" (date,status,id_receiver,id_sender,id_event)
  702. VALUES ('2019-03-15 09:24:37','false',9,6,19);
  703. INSERT INTO "invitation" (date,status,id_receiver,id_sender,id_event)
  704. VALUES ('2018-09-28 22:34:30','false',10,6,19);
  705. INSERT INTO "invitation" (date,status,id_receiver,id_sender,id_event)
  706. VALUES ('2019-01-28 20:51:02','false',11,6,19);
  707.  
  708. INSERT INTO "message" (content,id_sender,id_receiver,date)
  709. VALUES ('senectus et netus et malesuada',8,12,'2017-08-24 15:12:19');
  710. INSERT INTO "message" (content,id_sender,id_receiver,date)
  711. VALUES ('ipsum sodales purus,',5,12,'2017-06-11 23:03:48');
  712. INSERT INTO "message" (content,id_sender,id_receiver,date)
  713. VALUES ('consequat nec, mollis vitae,',1,17,'2017-09-14 20:46:57');
  714. INSERT INTO "message" (content,id_sender,id_receiver,date)
  715. VALUES ('quis, pede. Suspendisse dui. Fusce',8,10,'2018-11-01 11:34:23');
  716. INSERT INTO "message" (content,id_sender,id_receiver,date)
  717. VALUES ('vitae, orci. Phasellus dapibus quam quis diam.',2,15,'2017-08-19 03:32:39');
  718. INSERT INTO "message" (content,id_sender,id_receiver,date)
  719. VALUES ('eget massa. Suspendisse',4,14,'2019-02-22 09:33:41');
  720. INSERT INTO "message" (content,id_sender,id_receiver,date)
  721. VALUES ('dignissim lacus. Aliquam rutrum lorem ac risus. Morbi metus. Vivamus',6,10,'2018-08-07 07:58:00');
  722. INSERT INTO "message" (content,id_sender,id_receiver,date)
  723. VALUES ('nulla at sem',9,10,'2018-07-26 21:58:03');
  724. INSERT INTO "message" (content,id_sender,id_receiver,date)
  725. VALUES ('lacus. Quisque purus sapien,',9,16,'2017-08-04 17:39:31');
  726. INSERT INTO "message" (content,id_sender,id_receiver,date)
  727. VALUES ('dui, in sodales elit erat vitae',6,20,'2018-08-14 15:00:49');
  728. INSERT INTO "message" (content,id_sender,id_receiver,date)
  729. VALUES ('montes, nascetur ridiculus mus. Donec dignissim',5,16,'2018-02-04 20:40:15');
  730. INSERT INTO "message" (content,id_sender,id_receiver,date)
  731. VALUES ('Nam interdum enim non nisi. Aenean eget',3,17,'2018-08-24 04:34:27');
  732. INSERT INTO "message" (content,id_sender,id_receiver,date)
  733. VALUES ('nec,',7,16,'2018-06-09 20:25:46');
  734. INSERT INTO "message" (content,id_sender,id_receiver,date)
  735. VALUES ('laoreet posuere, enim nisl',6,16,'2018-01-19 03:12:19');
  736. INSERT INTO "message" (content,id_sender,id_receiver,date)
  737. VALUES ('commodo at,',2,15,'2018-06-29 09:23:04');
  738. INSERT INTO "message" (content,id_sender,id_receiver,date)
  739. VALUES ('diam at pretium aliquet, metus urna convallis erat, eget',10,11,'2017-12-12 14:25:28');
  740. INSERT INTO "message" (content,id_sender,id_receiver,date)
  741. VALUES ('vel est tempor bibendum. Donec felis orci, adipiscing',2,20,'2018-12-18 03:16:26');
  742. INSERT INTO "message" (content,id_sender,id_receiver,date)
  743. VALUES ('natoque penatibus et magnis dis parturient montes, nascetur ridiculus',2,15,'2017-05-20 05:26:55');
  744. INSERT INTO "message" (content,id_sender,id_receiver,date)
  745. VALUES ('dolor elit, pellentesque',8,10,'2018-05-26 14:47:26');
  746. INSERT INTO "message" (content,id_sender,id_receiver,date)
  747. VALUES ('Maecenas malesuada',4,20,'2018-04-10 11:00:30');
  748.  
  749. INSERT INTO "eventcategory" (id_event,id_category) VALUES (1,9);
  750. INSERT INTO "eventcategory" (id_event,id_category) VALUES (2,4);
  751. INSERT INTO "eventcategory" (id_event,id_category) VALUES (3,10);
  752. INSERT INTO "eventcategory" (id_event,id_category) VALUES (4,1);
  753. INSERT INTO "eventcategory" (id_event,id_category) VALUES (5,8);
  754. INSERT INTO "eventcategory" (id_event,id_category) VALUES (6,5);
  755. INSERT INTO "eventcategory" (id_event,id_category) VALUES (7,8);
  756. INSERT INTO "eventcategory" (id_event,id_category) VALUES (8,11);
  757. INSERT INTO "eventcategory" (id_event,id_category) VALUES (9,9);
  758. INSERT INTO "eventcategory" (id_event,id_category) VALUES (10,2);
  759. INSERT INTO "eventcategory" (id_event,id_category) VALUES (11,1);
  760. INSERT INTO "eventcategory" (id_event,id_category) VALUES (12,6);
  761. INSERT INTO "eventcategory" (id_event,id_category) VALUES (13,12);
  762. INSERT INTO "eventcategory" (id_event,id_category) VALUES (14,8);
  763. INSERT INTO "eventcategory" (id_event,id_category) VALUES (15,11);
  764. INSERT INTO "eventcategory" (id_event,id_category) VALUES (16,5);
  765. INSERT INTO "eventcategory" (id_event,id_category) VALUES (17,7);
  766. INSERT INTO "eventcategory" (id_event,id_category) VALUES (18,5);
  767. INSERT INTO "eventcategory" (id_event,id_category) VALUES (19,12);
  768. INSERT INTO "eventcategory" (id_event,id_category) VALUES (20,5);
  769.  
  770. INSERT INTO "participate" (id_eventParticipant,id_event,classification)
  771. VALUES (14,14,4);
  772. INSERT INTO "participate" (id_eventParticipant,id_event,classification)
  773. VALUES (15,3,1);
  774. INSERT INTO "participate" (id_eventParticipant,id_event,classification)
  775. VALUES (2,5,3);
  776. INSERT INTO "participate" (id_eventParticipant,id_event,classification)
  777. VALUES (19,3,5);
  778. INSERT INTO "participate" (id_eventParticipant,id_event,classification)
  779. VALUES (2,13,4);
  780. INSERT INTO "participate" (id_eventParticipant,id_event,classification)
  781. VALUES (17,12,2);
  782. INSERT INTO "participate" (id_eventParticipant,id_event,classification)
  783. VALUES (6,19,3);
  784. INSERT INTO "participate" (id_eventParticipant,id_event,classification)
  785. VALUES (14,6,3);
  786. INSERT INTO "participate" (id_eventParticipant,id_event,classification)
  787. VALUES (18,19,3);
  788. INSERT INTO "participate" (id_eventParticipant,id_event,classification)
  789. VALUES (19,8,3);
  790. INSERT INTO "participate" (id_eventParticipant,id_event,classification)
  791. VALUES (7,19,1);
  792. INSERT INTO "participate" (id_eventParticipant,id_event,classification)
  793. VALUES (5,8,2);
  794. INSERT INTO "participate" (id_eventParticipant,id_event,classification)
  795. VALUES (6,3,3);
  796. INSERT INTO "participate" (id_eventParticipant,id_event,classification)
  797. VALUES (18,1,1);
  798. INSERT INTO "participate" (id_eventParticipant,id_event,classification)
  799. VALUES (20,19,3);
  800. INSERT INTO "participate" (id_eventParticipant,id_event,classification)
  801. VALUES (2,16,2);
  802. INSERT INTO "participate" (id_eventParticipant,id_event,classification)
  803. VALUES (3,10,1);
  804. INSERT INTO "participate" (id_eventParticipant,id_event,classification)
  805. VALUES (6,10,2);
  806. INSERT INTO "participate" (id_eventParticipant,id_event,classification)
  807. VALUES (7,11,5);
  808. INSERT INTO "participate" (id_eventParticipant,id_event,classification)
  809. VALUES (12,19,4);
  810.  
  811. INSERT INTO "eventowner" (id_eventParticipant) VALUES (1);
  812. INSERT INTO "eventowner" (id_eventParticipant) VALUES (2);
  813. INSERT INTO "eventowner" (id_eventParticipant) VALUES (3);
  814. INSERT INTO "eventowner" (id_eventParticipant) VALUES (4);
  815. INSERT INTO "eventowner" (id_eventParticipant) VALUES (5);
  816. INSERT INTO "eventowner" (id_eventParticipant) VALUES (6);
  817. INSERT INTO "eventowner" (id_eventParticipant) VALUES (7);
  818. INSERT INTO "eventowner" (id_eventParticipant) VALUES (8);
  819. INSERT INTO "eventowner" (id_eventParticipant) VALUES (9);
  820. INSERT INTO "eventowner" (id_eventParticipant) VALUES (10);
  821. INSERT INTO "eventowner" (id_eventParticipant) VALUES (11);
  822. INSERT INTO "eventowner" (id_eventParticipant) VALUES (12);
  823. INSERT INTO "eventowner" (id_eventParticipant) VALUES (13);
  824. INSERT INTO "eventowner" (id_eventParticipant) VALUES (14);
  825. INSERT INTO "eventowner" (id_eventParticipant) VALUES (15);
  826. INSERT INTO "eventowner" (id_eventParticipant) VALUES (16);
  827. INSERT INTO "eventowner" (id_eventParticipant) VALUES (17);
  828. INSERT INTO "eventowner" (id_eventParticipant) VALUES (18);
  829. INSERT INTO "eventowner" (id_eventParticipant) VALUES (19);
  830. INSERT INTO "eventowner" (id_eventParticipant) VALUES (20);
  831.  
  832. INSERT INTO "ownevent" (id_eventOwner,id_event) VALUES (8,12);
  833. INSERT INTO "ownevent" (id_eventOwner,id_event) VALUES (11,19);
  834. INSERT INTO "ownevent" (id_eventOwner,id_event) VALUES (5,10);
  835. INSERT INTO "ownevent" (id_eventOwner,id_event) VALUES (19,12);
  836. INSERT INTO "ownevent" (id_eventOwner,id_event) VALUES (8,5);
  837. INSERT INTO "ownevent" (id_eventOwner,id_event) VALUES (12,10);
  838. INSERT INTO "ownevent" (id_eventOwner,id_event) VALUES (12,13);
  839. INSERT INTO "ownevent" (id_eventOwner,id_event) VALUES (10,10);
  840. INSERT INTO "ownevent" (id_eventOwner,id_event) VALUES (20,13);
  841. INSERT INTO "ownevent" (id_eventOwner,id_event) VALUES (3,16);
  842. INSERT INTO "ownevent" (id_eventOwner,id_event) VALUES (11,10);
  843. INSERT INTO "ownevent" (id_eventOwner,id_event) VALUES (14,4);
  844. INSERT INTO "ownevent" (id_eventOwner,id_event) VALUES (2,14);
  845. INSERT INTO "ownevent" (id_eventOwner,id_event) VALUES (6,13);
  846. INSERT INTO "ownevent" (id_eventOwner,id_event) VALUES (2,19);
  847. INSERT INTO "ownevent" (id_eventOwner,id_event) VALUES (7,17);
  848. INSERT INTO "ownevent" (id_eventOwner,id_event) VALUES (6,10);
  849. INSERT INTO "ownevent" (id_eventOwner,id_event) VALUES (3,20);
  850. INSERT INTO "ownevent" (id_eventOwner,id_event) VALUES (10,17);
  851. INSERT INTO "ownevent" (id_eventOwner,id_event) VALUES (3,14);
  852.  
  853.  
  854. INSERT INTO "file" (id_event,id_eventparticipant,path,submitteddate)
  855. VALUES (14,14,'../lbaw/files/name','2017-06-03 03:51:10');
  856. INSERT INTO "file" (id_event,id_eventparticipant,path,submitteddate)
  857. VALUES (3,15,'../lbaw/files/name','2017-12-10 01:32:57');
  858. INSERT INTO "file" (id_event,id_eventparticipant,path,submitteddate)
  859. VALUES (3,19,'../lbaw/files/name','2017-11-21 20:16:15');
  860. INSERT INTO "file" (id_event,id_eventparticipant,path,submitteddate)
  861. VALUES (3,6,'../lbaw/files/name','2018-12-25 23:55:51');
  862. INSERT INTO "file" (id_event,id_eventparticipant,path,submitteddate)
  863. VALUES (5,2,'../lbaw/files/name','2018-06-12 10:56:18');
  864. INSERT INTO "file" (id_event,id_eventparticipant,path,submitteddate)
  865. VALUES (13,2,'../lbaw/files/name','2018-05-11 09:25:37');
  866. INSERT INTO "file" (id_event,id_eventparticipant,path,submitteddate)
  867. VALUES (12,17,'../lbaw/files/name','2018-01-26 06:39:44');
  868. INSERT INTO "file" (id_event,id_eventparticipant,path,submitteddate)
  869. VALUES (19,6,'../lbaw/files/name','2018-08-25 04:52:53');
  870. INSERT INTO "file" (id_event,id_eventparticipant,path,submitteddate)
  871. VALUES (19,18,'../lbaw/files/name','2018-08-22 07:49:04');
  872. INSERT INTO "file" (id_event,id_eventparticipant,path,submitteddate)
  873. VALUES (19,7,'../lbaw/files/name','2019-02-08 23:08:09');
  874. INSERT INTO "file" (id_event,id_eventparticipant,path,submitteddate)
  875. VALUES (19,20,'../lbaw/files/name','2017-07-10 21:22:37');
  876. INSERT INTO "file" (id_event,id_eventparticipant,path,submitteddate)
  877. VALUES (6,14,'../lbaw/files/name','2017-05-16 16:42:57');
  878. INSERT INTO "file" (id_event,id_eventparticipant,path,submitteddate)
  879. VALUES (8,19,'../lbaw/files/name','2018-06-12 18:03:24');
  880. INSERT INTO "file" (id_event,id_eventparticipant,path,submitteddate)
  881. VALUES (8,5,'../lbaw/files/name','2017-09-17 15:51:56');
  882. INSERT INTO "file" (id_event,id_eventparticipant,path,submitteddate)
  883. VALUES (10,3,'../lbaw/files/name','2017-09-06 18:49:18');
  884. INSERT INTO "file" (id_event,id_eventparticipant,path,submitteddate)
  885. VALUES (10,6,'../lbaw/files/name','2018-10-11 18:52:35');
  886. INSERT INTO "file" (id_event,id_eventparticipant,path,submitteddate)
  887. VALUES (10,6,'../lbaw/files/name','2017-11-07 00:42:29');
  888. INSERT INTO "file" (id_event,id_eventparticipant,path,submitteddate)
  889. VALUES (10,6,'../lbaw/files/name','2019-02-24 19:11:43');
  890. INSERT INTO "file" (id_event,id_eventparticipant,path,submitteddate)
  891. VALUES (11,7,'../lbaw/files/name','2017-10-04 15:30:02');
  892. INSERT INTO "file" (id_event,id_eventparticipant,path,submitteddate)
  893. VALUES (11,7,'../lbaw/files/name','2018-10-19 00:19:58');
  894.  
  895. INSERT INTO "post" (content,id_poster,id_event,date)
  896. VALUES ('eu, euismod ac,',14,14,'2017-07-12 23:08:47');
  897. INSERT INTO "post" (content,id_poster,id_event,date)
  898. VALUES ('quis, tristique',14,14,'2017-05-16 18:43:52');
  899. INSERT INTO "post" (content,id_poster,id_event,date)
  900. VALUES ('commodo tincidunt nibh. Phasellus',15,3,'2017-12-23 02:36:34');
  901. INSERT INTO "post" (content,id_poster,id_event,date)
  902. VALUES ('Donec dignissim magna a',19,3,'2017-08-22 04:55:46');
  903. INSERT INTO "post" (content,id_poster,id_event,date)
  904. VALUES ('Aliquam nisl.',6,3,'2017-05-07 01:53:52');
  905. INSERT INTO "post" (content,id_poster,id_event,date)
  906. VALUES ('sociis',6,3,'2017-08-05 08:13:45');
  907. INSERT INTO "post" (content,id_poster,id_event,date)
  908. VALUES ('Vestibulum ante ipsum primis',7,11,'2018-09-20 00:16:50');
  909. INSERT INTO "post" (content,id_poster,id_event,date)
  910. VALUES ('amet,',6,3,'2018-06-26 16:47:49');
  911. INSERT INTO "post" (content,id_poster,id_event,date)
  912. VALUES ('ac mattis velit',6,3,'2017-06-28 19:12:13');
  913. INSERT INTO "post" (content,id_poster,id_event,date)
  914. VALUES ('eu dolor egestas rhoncus.',6,3,'2018-06-15 11:16:12');
  915. INSERT INTO "post" (content,id_poster,id_event,date)
  916. VALUES ('lectus sit',2,5,'2017-10-12 23:38:15');
  917. INSERT INTO "post" (content,id_poster,id_event,date)
  918. VALUES ('Nulla tincidunt, neque',2,13,'2018-07-13 02:17:42');
  919. INSERT INTO "post" (content,id_poster,id_event,date)
  920. VALUES ('In',19,8,'2017-04-13 12:08:43');
  921. INSERT INTO "post" (content,id_poster,id_event,date)
  922. VALUES ('Suspendisse tristique neque',19,8,'2018-02-05 02:09:48');
  923. INSERT INTO "post" (content,id_poster,id_event,date)
  924. VALUES ('tincidunt dui augue',19,8,'2017-08-03 08:43:44');
  925. INSERT INTO "post" (content,id_poster,id_event,date)
  926. VALUES ('quis accumsan convallis,',19,8,'2018-08-25 07:23:45');
  927. INSERT INTO "post" (content,id_poster,id_event,date)
  928. VALUES ('lobortis quis, pede.',3,10,'2018-09-16 12:44:04');
  929. INSERT INTO "post" (content,id_poster,id_event,date)
  930. VALUES ('vestibulum, neque sed',6,10,'2018-04-05 22:56:26');
  931. INSERT INTO "post" (content,id_poster,id_event,date)
  932. VALUES ('sodales purus,',7,19,'2018-05-29 19:32:18');
  933. INSERT INTO "post" (content,id_poster,id_event,date)
  934. VALUES ('arcu et',6,10,'2017-05-04 11:59:52');
  935.  
  936.  
  937.  
  938. INSERT INTO "poll" (description,id_owner,id_event,date)
  939. VALUES ('nulla.',8,12,'2018-07-05 08:50:44');
  940. INSERT INTO "poll" (description,id_owner,id_event,date)
  941. VALUES ('dis parturient montes,',11,19,'2017-07-31 11:46:37');
  942. INSERT INTO "poll" (description,id_owner,id_event,date)
  943. VALUES ('faucibus orci',5,10,'2019-01-23 19:25:49');
  944. INSERT INTO "poll" (description,id_owner,id_event,date)
  945. VALUES ('neque. Nullam nisl.',19,12,'2018-12-20 00:51:58');
  946. INSERT INTO "poll" (description,id_owner,id_event,date)
  947. VALUES ('facilisis non, bibendum sed, est.',8,5,'2017-07-05 17:34:24');
  948. INSERT INTO "poll" (description,id_owner,id_event,date)
  949. VALUES ('vulputate eu, odio. Phasellus',12,10,'2017-06-18 15:55:29');
  950. INSERT INTO "poll" (description,id_owner,id_event,date)
  951. VALUES ('Cum sociis natoque',12,13,'2017-08-20 14:50:35');
  952. INSERT INTO "poll" (description,id_owner,id_event,date)
  953. VALUES ('erat.',19,12,'2017-07-06 23:06:59');
  954. INSERT INTO "poll" (description,id_owner,id_event,date)
  955. VALUES ('Suspendisse sagittis. Nullam vitae',10,10,'2018-01-15 21:23:57');
  956. INSERT INTO "poll" (description,id_owner,id_event,date)
  957. VALUES ('sem molestie',20,13,'2017-06-16 00:49:50');
  958. INSERT INTO "poll" (description,id_owner,id_event,date)
  959. VALUES ('mi',3,16,'2018-04-08 07:03:58');
  960. INSERT INTO "poll" (description,id_owner,id_event,date)
  961. VALUES ('amet ornare lectus justo eu',11,10,'2017-10-25 07:04:29');
  962. INSERT INTO "poll" (description,id_owner,id_event,date)
  963. VALUES ('ac facilisis',11,10,'2017-06-10 10:00:14');
  964. INSERT INTO "poll" (description,id_owner,id_event,date)
  965. VALUES ('convallis',11,10,'2018-12-27 09:38:50');
  966. INSERT INTO "poll" (description,id_owner,id_event,date)
  967. VALUES ('sollicitudin a, malesuada',10,10,'2018-11-26 13:05:54');
  968. INSERT INTO "poll" (description,id_owner,id_event,date)
  969. VALUES ('lacus.',10,10,'2018-04-13 21:35:47');
  970. INSERT INTO "poll" (description,id_owner,id_event,date)
  971. VALUES ('a odio semper cursus.',10,10,'2017-10-29 18:22:17');
  972. INSERT INTO "poll" (description,id_owner,id_event,date)
  973. VALUES ('In mi pede, nonummy',11,10,'2018-01-31 21:57:44');
  974. INSERT INTO "poll" (description,id_owner,id_event,date)
  975. VALUES ('lectus ante dictum mi,',10,10,'2017-05-14 16:11:02');
  976. INSERT INTO "poll" (description,id_owner,id_event,date)
  977. VALUES ('diam dictum sapien.',10,10,'2018-10-07 21:35:19');
  978.  
  979.  
  980. INSERT INTO "polloption" (description,id_poll)
  981. VALUES ('sit',6);
  982. INSERT INTO "polloption" (description,id_poll)
  983. VALUES ('pellentesque a,',12);
  984. INSERT INTO "polloption" (description,id_poll)
  985. VALUES ('est',5);
  986. INSERT INTO "polloption" (description,id_poll)
  987. VALUES ('sit',14);
  988. INSERT INTO "polloption" (description,id_poll)
  989. VALUES ('ac, eleifend vitae, erat. Vivamus',18);
  990. INSERT INTO "polloption" (description,id_poll) VALUES ('eget varius ultrices, mauris',16);
  991. INSERT INTO "polloption" (description,id_poll) VALUES ('sollicitudin commodo ipsum. Suspendisse',6);
  992. INSERT INTO "polloption" (description,id_poll) VALUES ('facilisis non,',8);
  993. INSERT INTO "polloption" (description,id_poll) VALUES ('hendrerit. Donec porttitor tellus non',6);
  994. INSERT INTO "polloption" (description,id_poll) VALUES ('magna. Ut tincidunt orci quis',11);
  995. INSERT INTO "polloption" (description,id_poll) VALUES ('in felis. Nulla',16);
  996. INSERT INTO "polloption" (description,id_poll) VALUES ('congue turpis. In condimentum.',11);
  997. INSERT INTO "polloption" (description,id_poll) VALUES ('tincidunt dui augue eu tellus.',6);
  998. INSERT INTO "polloption" (description,id_poll) VALUES ('sagittis augue,',15);
  999. INSERT INTO "polloption" (description,id_poll) VALUES ('sed, hendrerit a, arcu. Sed',12);
  1000. INSERT INTO "polloption" (description,id_poll) VALUES ('accumsan sed,',14);
  1001. INSERT INTO "polloption" (description,id_poll) VALUES ('consectetuer adipiscing elit.',4);
  1002. INSERT INTO "polloption" (description,id_poll) VALUES ('natoque penatibus',5);
  1003. INSERT INTO "polloption" (description,id_poll) VALUES ('justo faucibus lectus, a sollicitudin',13);
  1004. INSERT INTO "polloption" (description,id_poll) VALUES ('quam. Curabitur',16);
  1005.  
  1006. INSERT INTO "pollvote" (id_poll_option,id_eventParticipant) VALUES (1,14);
  1007. INSERT INTO "pollvote" (id_poll_option,id_eventParticipant) VALUES (2,3);
  1008. INSERT INTO "pollvote" (id_poll_option,id_eventParticipant) VALUES (2,6);
  1009. INSERT INTO "pollvote" (id_poll_option,id_eventParticipant) VALUES (3,19);
  1010. INSERT INTO "pollvote" (id_poll_option,id_eventParticipant) VALUES (3,15);
  1011. INSERT INTO "pollvote" (id_poll_option,id_eventParticipant) VALUES (3,6);
  1012. INSERT INTO "pollvote" (id_poll_option,id_eventParticipant) VALUES (4,19);
  1013. INSERT INTO "pollvote" (id_poll_option,id_eventParticipant) VALUES (4,15);
  1014. INSERT INTO "pollvote" (id_poll_option,id_eventParticipant) VALUES (4,6);
  1015. INSERT INTO "pollvote" (id_poll_option,id_eventParticipant) VALUES (5,19);
  1016. INSERT INTO "pollvote" (id_poll_option,id_eventParticipant) VALUES (5,15);
  1017. INSERT INTO "pollvote" (id_poll_option,id_eventParticipant) VALUES (5,6);
  1018. INSERT INTO "pollvote" (id_poll_option,id_eventParticipant) VALUES (6,6);
  1019. INSERT INTO "pollvote" (id_poll_option,id_eventParticipant) VALUES (6,15);
  1020. INSERT INTO "pollvote" (id_poll_option,id_eventParticipant) VALUES (6,19);
  1021. INSERT INTO "pollvote" (id_poll_option,id_eventParticipant) VALUES (7,6);
  1022. INSERT INTO "pollvote" (id_poll_option,id_eventParticipant) VALUES (7,15);
  1023. INSERT INTO "pollvote" (id_poll_option,id_eventParticipant) VALUES (7,19);
  1024. INSERT INTO "pollvote" (id_poll_option,id_eventParticipant) VALUES (8,19);
  1025. INSERT INTO "pollvote" (id_poll_option,id_eventParticipant) VALUES (8,15);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement