Advertisement
Guest User

Untitled

a guest
Dec 18th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 1.83 KB | None | 0 0
  1. use breakout;
  2. # Order of insertions due to FK constraints
  3. # ( f.e. to create a clan, a faction is needed first [faction <- clan])
  4. # ball , block and pallet <- level
  5. # level <- player <- wallet
  6. # faction <- clan
  7.  
  8. # Ball (ball_id, ball_size, ball_speed)
  9. insert into ball values(1, 3, 5);
  10.  
  11. # Block (block_id, block_size, block_healthpoints, block_property)
  12. insert into block values(1, 1, 1, "normal");
  13.  
  14. # Pallet (pallet_id, pallet_size, pallet_speed)
  15. insert into pallet values(1, 3, 5);
  16.  
  17. # Level (level_id, ball_id, pallet_id, block_id, target_score, diamonds_prize)
  18. insert into level values (1, 1, 1, 1, 50, 25);
  19.  
  20. # Player (player_id, player_name, player_level, player_highscore, player_clan)
  21. insert into player values(1,"Domi",1,0,0);
  22. insert into player values(2,"Bert",1,350,0);
  23.  
  24. # Wallet (player_id, current_amt_of_diamonds, current_monetary_balance)
  25. insert into wallet values (1, 0, 0);
  26.  
  27. # Faction (faction_id, faction_perk, faction_image)
  28. insert into faction values(1, "1.25x xp", "fac_1_img");
  29.  
  30. # Clan (clan_id, clan_name, clan_highscore, clan_avatar, clan_active_league, faction_id, clan_leader)
  31. insert into clan values(1, "DevTeam", 0, 1, 0, 1, 1);
  32.  
  33. # Ability (ability_id, ability_name, ability_affects, ability_effect, ability_droprate)
  34. insert into ability values(1, "WreckingBall", "ball", "bigger_ball", 1.50);
  35.  
  36. # Store (package_id, package_price, package_diamonds, ability_id)
  37. insert into store values (1, 1.99, 75, 0); # package costs 1.99 for 75 diamonds
  38. insert into store values (2, 4,99, 150, 1); # package cost 4.99 for 150 diamonds and the ability wrecking ball
  39.  
  40. # Promotion (promotion_id, promotion_cut, promotion_diamonds)
  41. insert into promotion values (1, .15, 0); # promotion on package 1 of 15 %, no extra diamonds
  42. insert into promotion values (2, .25, 50); # promotion on package 1 of 25 %, 50 extra diamonds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement