Advertisement
Guest User

Untitled

a guest
Dec 6th, 2016
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.95 KB | None | 0 0
  1. CREATE TABLE invoke.Users
  2. (
  3. UsersID BIGSERIAL,
  4. UserName character varying(100),
  5. UsersPassword character varying(100),
  6. UsersEmail character varying(120),
  7. UsersCountry character varying(2000),
  8. UsersGender character varying(50),
  9. /*UserDateOfBirth int tuka date da sa dodede koja igra e kupena od koja godina na korisnici */
  10.  
  11. CONSTRAINT pk_UsersID PRIMARY KEY (UsersID)
  12. );
  13.  
  14.  
  15. CREATE TABLE invoke.Costomers
  16. (
  17. UsersID bigint references invoke.Users(UsersID),
  18. CostomersUserName character varying(120),
  19.  
  20. constraint pkCostomers primary key (UsersID,CostomersUserName)
  21. );
  22.  
  23. CREATE TABLE invoke.Admins
  24. (
  25. UsersID bigint references invoke.Users(UsersID),
  26. AdminUserName character varying(120),
  27. AdminsName character varying(100),
  28. AdminsSurName character varying(100),
  29. AdminsPhone bigint,
  30.  
  31. constraint pkAdmins primary key (UsersID,AdminsUserName)
  32. );
  33.  
  34. CREATE TABLE invoke.ItemArtist
  35. (
  36. UsersID bigint references invoke.Users(UsersID),
  37. ItemArtistUserName character varying(120),
  38. ItemArtistName character varying(120),
  39. ItemArtistSurName character varying(120),
  40.  
  41. constraint pkItemArtist primary key (UsersID,ItemArtistUserName)
  42. );
  43.  
  44. CREATE TABLE invoke.CreditCards
  45. (
  46. CardsID BIGSERIAL,
  47. UsersID bigint references invoke.Users(UsersID),
  48. CustomerUserName character varying(120),
  49. CardsNumber character varying(120),
  50. CardsCVCode integer,
  51. CardsCardholderName character varying(120),
  52. CardsCardholderSurName character varying(120),
  53. CardsExpirationDate date,
  54. CardsType character varying(120),
  55.  
  56. CONSTRAINT pk_CardsID PRIMARY KEY (CardsID),
  57.  
  58. CONSTRAINT "FK_UsersID" FOREIGN KEY (UsersID)
  59.  
  60. REFERENCES invoke.Users(UsersID) MATCH SIMPLE
  61.  
  62. ON UPDATE NO ACTION ON DELETE NO ACTION
  63. );
  64.  
  65.  
  66. CREATE TABLE invoke.Games
  67. (
  68. GamesName character varying(150),
  69. GamesDescription character varying(2000),
  70. GamesPrice integer NOT NULL,
  71. GamesReleaseDate date,
  72. GamesDeveloper character varying(120),
  73. GamesGenre character varying(120),
  74.  
  75.  
  76. CONSTRAINT pk_GamesName PRIMARY KEY (GamesName)
  77. );
  78.  
  79.  
  80.  
  81. CREATE TABLE invoke.WorkShops
  82. (
  83. WorkShopsID BIGSERIAL primary key,
  84. WorkShopsName character varying(200) unique,
  85. GamesName character varying(150) references invoke.Games(GamesName)
  86. );
  87. CREATE TABLE invoke.Items
  88. (
  89. ItemsID BIGSERIAL primary key,
  90. ItemsName character varying(120),
  91. ItemsType character varying(150),
  92. ItemsDescription character varying(2000),
  93. ItemsPrice integer NOT NULL,
  94. GamesName character varying(150) references invoke.Games(GamesName),
  95. UsersID bigint,
  96. ItemArtistUserName character varying(150),
  97. WorkShopsID bigint references invoke.WorkShops(WorkShopsID),
  98.  
  99. constraint fkItemArtist foreign key (UsersID,ItemArtistUserName)
  100. references invoke.ItemArtist(UsersID,ItemArtistUserName)
  101. );
  102. CREATE TABLE invoke.Inventorys
  103. (
  104. InventorysID BIGSERIAL primary key,
  105. UsersID bigint references invoke.Users(UsersID),
  106. ItemsID bigint references invoke.Items(ItemsID),
  107. InventorysDateWithTime timestamptz
  108.  
  109. );
  110. CREATE TABLE invoke.Forums
  111. (
  112. ForumsID BIGSERIAL primary key,
  113. ForumsName character varying(200) unique,
  114. ForumsDateWithTime timestamptz,
  115. GamesName character varying(150) references invoke.Games(GamesName)
  116. );
  117.  
  118. CREATE TABLE invoke.Topics
  119. (
  120. TopicsID BIGSERIAL primary key,
  121. UsersID bigint references invoke.Users(UsersID),
  122. ForumsID bigint references invoke.Forums(ForumsID),
  123. TopicsName character varying(200),
  124. TopicsDescription character varying(2000),
  125. TopicsDateWithTime timestamptz
  126. );
  127. CREATE TABLE invoke.Comments (
  128. CommentsID BIGSERIAL primary key,
  129. CommentsContent character varying(10000),
  130. CommentsDateWithTime timestamptz,
  131. UsersID bigint references invoke.Users(UsersID),
  132. TopicsID bigint references invoke.Topics(TopicsID)
  133. );
  134.  
  135.  
  136. CREATE TABLE invoke.Achievements
  137. (
  138. AchievementsID BIGSERIAL primary key,
  139. UsersID bigint references invoke.Users(UsersID),
  140. AchievementsTitle character varying(200),
  141. GamesName character varying(150) references invoke.Games(GamesName)
  142. );
  143.  
  144. CREATE TABLE invoke.Friendship
  145. (
  146. FriendshipID BIGSERIAL primary key,
  147. UsersID1 bigint references invoke.Users(UsersID),
  148. UsersID2 bigint references invoke.Users(UsersID),
  149. DateStared date
  150. );
  151. ALTER TABLE invoke.Friendship
  152. ADD COLUMN "FriendshipAccepted" BOOLEAN NOT NULL DEFAULT FALSE;
  153.  
  154.  
  155.  
  156. CREATE TABLE invoke.BoughtGames
  157. (
  158. BoughtGamesID BIGSERIAL primary key,
  159. UsersID bigint references invoke.Users(UsersID),
  160. GamesName character varying(150) references invoke.Games(GamesName),
  161. UNIQUE(UsersID,GamesName)
  162. );
  163. CREATE TABLE invoke.PurchaseGames
  164. (
  165. PurchaseGamesID BIGSERIAL primary key,
  166. CardsID bigint references invoke.CreditCards(CardsID),
  167. GamesName character varying(150) references invoke.Games(GamesName),
  168. DateOfPurchaseGames timestamptz,
  169. UNIQUE(CardsID,GamesName,DateOfPurchaseGames)
  170. );
  171. CREATE TABLE invoke.PurchaseItems
  172. (
  173. PurchaseItemsID BIGSERIAL primary key,
  174. CardsID bigint references invoke.CreditCards(CardsID),
  175. GamesName character varying(150) references invoke.Games(GamesName),
  176. ItemsID bigint references invoke.Items(ItemsID),
  177. DateOfPurchaseItems timestamptz,
  178. UNIQUE(CardsID,ItemsID,DateOfPurchaseItems)
  179. );
  180. CREATE TABLE invoke.SetsGames
  181. (
  182. SetsGamesID BIGSERIAL primary key,
  183. UsersID bigint,
  184. AdminsUserName character varying(150),
  185. GamesName character varying(150) references invoke.Games(GamesName),
  186. SetGamesDate date,
  187.  
  188. constraint fkAdmins foreign key (UsersID,AdminsUserName)
  189. references invoke.Admins(UsersID,AdminsUserName)
  190. );
  191.  
  192. CREATE TABLE invoke.VoteForItem
  193. (
  194. WorkShopsID bigint references invoke.WorkShops(WorkShopsID),
  195. UsersID bigint references invoke.Users(UsersID),
  196. ItemsID bigint references invoke.Items(ItemsID),
  197.  
  198. constraint pkVoteForItem primary key (WorkShopsID,UsersID,ItemsID)
  199. );
  200.  
  201. CREATE TABLE invoke.SellingItems /*Ova e Marketut*/
  202. (
  203. SellingItemsID BIGSERIAL primary key,
  204. ItemsID bigint references invoke.Items(ItemsID),
  205. GamesName character varying(150) references invoke.Games(GamesName),
  206. ItemsQuantity int
  207. );
  208.  
  209.  
  210. CREATE TABLE invoke.EarnedAchievements
  211. (
  212. UsersID bigint references invoke.Users(UsersID),
  213. AchievementsID bigint references invoke.Achievements(AchievementsID),
  214. DateEarned date,
  215. constraint pkEarnedAchievements primary key (UsersID,AchievementsID,DateEarned)
  216. );
  217.  
  218. /*Users*/
  219.  
  220. INSERT INTO invoke.Users (UserName,UsersPassword,UsersEmail,UsersCountry,UsersGender)
  221. VALUES ('IgorNikolov','IgorPassword1','igor.nikoloov@gmail.com','Makedonija','M');
  222. INSERT INTO invoke.Users (UserName,UsersPassword,UsersEmail,UsersCountry,UsersGender)
  223. VALUES ('IgorNikolovvv','IgorPassword2','igor.nikoloov@gmail.com','Makedonija','M');
  224. INSERT INTO invoke.Users (UserName,UsersPassword,UsersEmail,UsersCountry,UsersGender)
  225. VALUES ('PavlinkaUser','PavlinkaPassword2','pavlinka@gmail.com','Makedonija','F');
  226. INSERT INTO invoke.Users (UserName,UsersPassword,UsersEmail,UsersCountry,UsersGender)
  227. VALUES ('RistePopovski','RistePass','riste.popovski@gmail.com','Makedonija','M');
  228.  
  229. /*Costomers*/
  230. INSERT INTO invoke.Costomers (UsersID,CostomersUserName) VALUES (1,'IgorNikolov');
  231. INSERT INTO invoke.Costomers (UsersID,CostomersUserName) VALUES (2,'IgorNikolovvv');
  232. INSERT INTO invoke.Costomers (UsersID,CostomersUserName) VALUES (4,'RistePopovski');
  233.  
  234. /*Admins*/
  235. INSERT INTO invoke.Admins (UsersID,AdminsUserName,AdminsName,AdminsSurName,AdminsPhone)
  236. VALUES (1,'IgorNikolov','Igor','Nikolov','072525010');
  237.  
  238. /*ItemArtist*/
  239. INSERT INTO invoke.ItemArtist (UsersID,ItemArtistUserName,ItemArtistName,ItemArtistSurName) VALUES (2,'IgorNikolovvv','Igor','Nikolov');
  240. INSERT INTO invoke.ItemArtist (UsersID,ItemArtistUserName,ItemArtistName,ItemArtistSurName) VALUES (3,'PavlinkaUser','Pavlinka','Atanasova');
  241.  
  242. /*CreditCards*/
  243. INSERT INTO invoke.creditcards
  244. (cardsid, usersid, customerusername, cardsnumber, cardscvcode, cardscardholdername, cardscardholdersurname, cardsexpirationdate, cardstype)
  245. VALUES(nextval('invoke.creditcards_cardsid_seq'::regclass), 1, 'IgorNikolov', '123456', 1234, 'Igor', 'Nikolov', to_date('20.11.2016','DD.MM.YYYY'), 'Maestro');
  246.  
  247. INSERT INTO invoke.creditcards
  248. (cardsid, usersid, customerusername, cardsnumber, cardscvcode, cardscardholdername, cardscardholdersurname, cardsexpirationdate, cardstype)
  249. VALUES(nextval('invoke.creditcards_cardsid_seq'::regclass), 2, 'IgorNikolovvv', '1234567', 1234, 'Igor', 'Nikolovvv', to_date('16.11.2016','DD.MM.YYYY'), 'Visa');
  250.  
  251. INSERT INTO invoke.creditcards
  252. (cardsid, usersid, customerusername, cardsnumber, cardscvcode, cardscardholdername, cardscardholdersurname, cardsexpirationdate, cardstype)
  253. VALUES(nextval('invoke.creditcards_cardsid_seq'::regclass), 3, 'PavlinkaAtanasova', '12345678', 1235, 'Pavlinka', 'Atanasova', to_date('20.11.2016','DD.MM.YYYY'), 'Visa');
  254.  
  255. /*Games*/
  256. INSERT INTO invoke.games
  257. (gamesname, gamesdescription, gamesprice, gamesreleasedate, gamesdeveloper, gamesgenre)
  258. VALUES('Dota2', 'Dota2 > League Of Legends', 10, to_date('16.11.2010','DD.MM.YYYY'), 'Valve', 'MOBA');
  259.  
  260. INSERT INTO invoke.games
  261. (gamesname, gamesdescription, gamesprice, gamesreleasedate, gamesdeveloper, gamesgenre)
  262. VALUES('League Of Legends', 'League Of Legends < Dota2', 10, to_date('16.11.2008','DD.MM.YYYY'), 'RIOT', 'MOBA');
  263.  
  264. INSERT INTO invoke.games
  265. (gamesname, gamesdescription, gamesprice, gamesreleasedate, gamesdeveloper, gamesgenre)
  266. VALUES('CSGO', 'Test test', 5, to_date('16.11.2010','DD.MM.YYYY'), 'Valve', 'FPS');
  267.  
  268. INSERT INTO invoke.games
  269. (gamesname, gamesdescription, gamesprice, gamesreleasedate, gamesdeveloper, gamesgenre)
  270. VALUES('HON', 'Test Test', 5, to_date('16.11.2010','DD.MM.YYYY'),'S2 Games', 'MOBA');
  271.  
  272. /*WorkShops*/
  273. INSERT INTO invoke.workshops
  274. (workshopsid, workshopsname, gamesname)
  275. VALUES(nextval('invoke.workshops_workshopsid_seq'::regclass), 'Dota2Badges', 'Dota2');
  276. INSERT INTO invoke.workshops
  277. (workshopsid, workshopsname, gamesname)
  278. VALUES(nextval('invoke.workshops_workshopsid_seq'::regclass), 'Dota2 Tshirt', 'Dota2');
  279. INSERT INTO invoke.workshops
  280. (workshopsid, workshopsname, gamesname)
  281. VALUES(nextval('invoke.workshops_workshopsid_seq'::regclass), 'CSGO Guns', 'CSGO');
  282.  
  283. /*Items*/
  284. INSERT INTO invoke.items
  285. (itemsid, itemsname, itemstype, itemsdescription, itemsprice, gamesname, usersid, itemartistusername, workshopsid)
  286. VALUES(nextval('invoke.items_itemsid_seq'::regclass), 'AWP', 'Rare', 'Test', 3, 'CSGO', 3, 'PavlinkaUser', 3);
  287. INSERT INTO invoke.items
  288. (itemsid, itemsname, itemstype, itemsdescription, itemsprice, gamesname, usersid, itemartistusername, workshopsid)
  289. VALUES(nextval('invoke.items_itemsid_seq'::regclass), 'AWP2', 'Epic', 'TestTest', 3, 'CSGO',3, 'PavlinkaUser', 3);
  290. INSERT INTO invoke.items
  291. (itemsid, itemsname, itemstype, itemsdescription, itemsprice, gamesname, usersid, itemartistusername, workshopsid)
  292. VALUES(nextval('invoke.items_itemsid_seq'::regclass), 'Invoker Head', 'Rare', 'blabla', 3, 'Dota2', 2, 'IgorNikolovvv', 1);
  293.  
  294. INSERT INTO invoke.items
  295. (itemsid, itemsname, itemstype, itemsdescription, itemsprice, gamesname, usersid, itemartistusername, workshopsid)
  296. VALUES(nextval('invoke.items_itemsid_seq'::regclass), 'Invoker Chest', 'Rare', 'blabla', 3, 'Dota2', 2, 'IgorNikolovvv', 1);
  297.  
  298. /*Inventorys*/
  299. INSERT INTO invoke.inventorys
  300. (inventorysid, usersid, itemsid, inventorysdatewithtime)
  301. VALUES(nextval('invoke.inventorys_inventorysid_seq'::regclass), 1, 1, NOW());
  302. INSERT INTO invoke.inventorys
  303. (inventorysid, usersid, itemsid, inventorysdatewithtime)
  304. VALUES(nextval('invoke.inventorys_inventorysid_seq'::regclass), 1, 2, NOW());
  305.  
  306.  
  307.  
  308.  
  309. /*Forums*/
  310. -- i tuka ne sa znae
  311. INSERT INTO invoke.forums
  312. (forumsid, forumsname, forumsdatewithtime, gamesname)
  313. VALUES(nextval('invoke.forums_forumsid_seq'::regclass), 'Dota2 General Discussions', NOW(), 'Dota2');
  314. INSERT INTO invoke.forums
  315. (forumsid, forumsname, forumsdatewithtime, gamesname)
  316. VALUES(nextval('invoke.forums_forumsid_seq'::regclass), 'Dota2 Bug Reports', NOW(), 'Dota2');
  317.  
  318.  
  319.  
  320. /*Topics*/
  321.  
  322. INSERT INTO invoke.topics
  323. (topicsid, usersid, forumsid, topicsname, topicsdescription, topicsdatewithtime)
  324. VALUES(nextval('invoke.topics_topicsid_seq'::regclass), 1, 1,'Dota2 General Discussions', 'Voa e za se PogChamp', NOW());
  325. INSERT INTO invoke.topics
  326. (topicsid, usersid, forumsid, topicsname, topicsdescription, topicsdatewithtime)
  327. VALUES(nextval('invoke.topics_topicsid_seq'::regclass), 1, 1,'CSGO General Discussions', 'TestTest PogChamp', NOW());
  328. INSERT INTO invoke.topics
  329. (topicsid, usersid, forumsid, topicsname, topicsdescription, topicsdatewithtime)
  330. VALUES(nextval('invoke.topics_topicsid_seq'::regclass), 1, 1,'Topic3', 'Voa e za se PogChamp', NOW());
  331. INSERT INTO invoke.topics
  332. (topicsid, usersid, forumsid, topicsname, topicsdescription, topicsdatewithtime)
  333. VALUES(nextval('invoke.topics_topicsid_seq'::regclass), 2, 2,'Topic3', 'Voa e za se PogChamp', NOW());
  334.  
  335.  
  336. /*Comments*/
  337. INSERT INTO invoke.comments
  338. (commentsid, commentscontent, commentsdatewithtime, usersid, topicsid)
  339. VALUES(nextval('invoke.comments_commentsid_seq'::regclass), 'Dali Ognen e Noob?', NOW(), 1, 1);
  340. INSERT INTO invoke.comments
  341. (commentsid, commentscontent, commentsdatewithtime, usersid, topicsid)
  342. VALUES(nextval('invoke.comments_commentsid_seq'::regclass), 'Test Test Test', NOW(), 2, 2);
  343. INSERT INTO invoke.comments
  344. (commentsid, commentscontent, commentsdatewithtime, usersid, topicsid)
  345. VALUES(nextval('invoke.comments_commentsid_seq'::regclass), 'commenttest', NOW(), 2, 4);
  346. INSERT INTO invoke.comments
  347. (commentsid, commentscontent, commentsdatewithtime, usersid, topicsid)
  348. VALUES(nextval('invoke.comments_commentsid_seq'::regclass), 'commenttest', NOW(), 1, 1);
  349.  
  350.  
  351. /*Achievements*/
  352. INSERT INTO invoke.achievements
  353. (achievementsid, usersid, achievementstitle, gamesname)
  354. VALUES(nextval('invoke.achievements_achievementsid_seq'::regclass), 1, 'Kappa', 'Dota2');
  355. INSERT INTO invoke.achievements
  356. (achievementsid, usersid, achievementstitle, gamesname)
  357. VALUES(nextval('invoke.achievements_achievementsid_seq'::regclass), 1, 'You can play Dota2 now!', 'League Of Legends');
  358.  
  359.  
  360. /*Friendship*/
  361. INSERT INTO invoke.friendship
  362. (friendshipid,usersid1, usersid2, datestared, "FriendshipAccepted")
  363. VALUES(nextval('invoke.friendship_friendshipid_seq'::regclass), 1, 2, NOW(), false);
  364. INSERT INTO invoke.friendship
  365. (friendshipid,usersid1, usersid2, datestared, "FriendshipAccepted")
  366. VALUES(nextval('invoke.friendship_friendshipid_seq'::regclass), 1, 3, NOW(), true);
  367. INSERT INTO invoke.friendship
  368. (friendshipid,usersid1, usersid2, datestared, "FriendshipAccepted")
  369. VALUES(nextval('invoke.friendship_friendshipid_seq'::regclass), 2, 3, NOW(), true);
  370.  
  371. /*BoughtGames*/
  372. INSERT INTO invoke.boughtgames
  373. (boughtgamesid,usersid, gamesname)
  374. VALUES(nextval('invoke.boughtgames_boughtgamesid_seq'::regclass) ,1, 'Dota2');
  375. INSERT INTO invoke.boughtgames
  376. (boughtgamesid,usersid, gamesname)
  377. VALUES(nextval('invoke.boughtgames_boughtgamesid_seq'::regclass) ,1, 'CSGO');
  378. INSERT INTO invoke.boughtgames
  379. (boughtgamesid,usersid, gamesname)
  380. VALUES(nextval('invoke.boughtgames_boughtgamesid_seq'::regclass) ,2, 'Dota2');
  381. INSERT INTO invoke.boughtgames
  382. (boughtgamesid,usersid, gamesname)
  383. VALUES(nextval('invoke.boughtgames_boughtgamesid_seq'::regclass) ,1, 'League Of Legends');
  384. INSERT INTO invoke.boughtgames
  385. (boughtgamesid,usersid, gamesname)
  386. VALUES(nextval('invoke.boughtgames_boughtgamesid_seq'::regclass) ,3, 'Dota2');
  387. INSERT INTO invoke.boughtgames
  388. (boughtgamesid,usersid, gamesname)
  389. VALUES(nextval('invoke.boughtgames_boughtgamesid_seq'::regclass) ,4, 'Dota2');
  390.  
  391.  
  392. /*PurchaseGames*/
  393. INSERT INTO invoke.purchasegames
  394. (purchasegamesid, cardsid, gamesname, dateofpurchasegames)
  395. VALUES(nextval('invoke.purchasegames_purchasegamesid_seq'::regclass), 1, 'Dota2', NOW());
  396. INSERT INTO invoke.purchasegames
  397. (purchasegamesid, cardsid, gamesname, dateofpurchasegames)
  398. VALUES(nextval('invoke.purchasegames_purchasegamesid_seq'::regclass), 1, 'CSGO', NOW());
  399. INSERT INTO invoke.purchasegames
  400. (purchasegamesid, cardsid, gamesname, dateofpurchasegames)
  401. VALUES(nextval('invoke.purchasegames_purchasegamesid_seq'::regclass), 4, 'Dota2', NOW());
  402.  
  403. /*PurchaseItems*/
  404. INSERT INTO invoke.purchaseitems
  405. (purchaseitemsid, cardsid, gamesname, itemsid, dateofpurchaseitems)
  406. VALUES(nextval('invoke.purchaseitems_purchaseitemsid_seq'::regclass), 1, 'Dota2', 1, NOW());
  407. INSERT INTO invoke.purchaseitems
  408. (purchaseitemsid, cardsid, gamesname, itemsid, dateofpurchaseitems)
  409. VALUES(nextval('invoke.purchaseitems_purchaseitemsid_seq'::regclass), 1, 'Dota2', 2, NOW());
  410. INSERT INTO invoke.purchaseitems
  411. (purchaseitemsid, cardsid, gamesname, itemsid, dateofpurchaseitems)
  412. VALUES(nextval('invoke.purchaseitems_purchaseitemsid_seq'::regclass), 4, 'CSGO', 4, NOW());
  413.  
  414. /*SetsGames*/
  415. INSERT INTO invoke.setsgames
  416. (setsgamesid, usersid, adminsusername, gamesname, setgamesdate)
  417. VALUES(nextval('invoke.setsgames_setsgamesid_seq'::regclass), 1, 'IgorNikolov', 'Dota2', NOW());
  418. INSERT INTO invoke.setsgames
  419. (setsgamesid, usersid, adminsusername, gamesname, setgamesdate)
  420. VALUES(nextval('invoke.setsgames_setsgamesid_seq'::regclass), 1, 'IgorNikolov', 'CSGO', NOW());
  421.  
  422.  
  423. /*VoteForItem*/
  424. INSERT INTO invoke.voteforitem
  425. (workshopsid, usersid, itemsid)
  426. VALUES(1, 1, 1);
  427. INSERT INTO invoke.voteforitem
  428. (workshopsid, usersid, itemsid)
  429. VALUES(1, 2, 1);
  430. INSERT INTO invoke.voteforitem
  431. (workshopsid, usersid, itemsid)
  432. VALUES(1, 3, 1);
  433. INSERT INTO invoke.voteforitem
  434. (workshopsid, usersid, itemsid)
  435. VALUES(1, 1, 2);
  436.  
  437. /*SellingItems*//*Voa e Marketut*/
  438. INSERT INTO invoke.sellingitems
  439. (sellingitemsid, itemsid, gamesname, itemsquantity)
  440. VALUES(nextval('invoke.sellingitems_sellingitemsid_seq'::regclass), 1, 'Dota2', 10);
  441. INSERT INTO invoke.sellingitems
  442. (sellingitemsid, itemsid, gamesname, itemsquantity)
  443. VALUES(nextval('invoke.sellingitems_sellingitemsid_seq'::regclass), 2, 'Dota2', 10);
  444. INSERT INTO invoke.sellingitems
  445. (sellingitemsid, itemsid, gamesname, itemsquantity)
  446. VALUES(nextval('invoke.sellingitems_sellingitemsid_seq'::regclass), 3, 'Dota2', 10);
  447.  
  448.  
  449. /*EarnedAchievements*/
  450. INSERT INTO invoke.earnedachievements
  451. (usersid, achievementsid, dateearned)
  452. VALUES(1, 1, NOW());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement