Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.97 KB | None | 0 0
  1. public function up()
  2. {
  3. Schema::create('overwatch_matches', function (Blueprint $table) {
  4.  
  5. $table->increments('id');
  6.  
  7. /*
  8. match information
  9. */
  10.  
  11. $table->string('match_id')->unique();
  12. $table->string('team_a_slot_party_id');
  13. $table->string('team_b_slot_party_id');
  14. $table->string('match_type');
  15. $table->string('match_mode');
  16. $table->string('match_pool');
  17.  
  18. /*
  19. match result reporting
  20. */
  21.  
  22. $table->string('match_winner')->nullable();
  23. $table->string('match_loser')->nullable();
  24. $table->boolean('match_dispute')->nullable();
  25.  
  26. $table->string('team_a_slot_slot1_report')->nullable();
  27. $table->string('team_a_slot_slot2_report')->nullable();
  28. $table->string('team_a_slot_slot3_report')->nullable();
  29. $table->string('team_a_slot_slot4_report')->nullable();
  30. $table->string('team_a_slot_slot5_report')->nullable();
  31. $table->string('team_a_slot_slot6_report')->nullable();
  32.  
  33. $table->string('team_b_slot_slot1_report')->nullable();
  34. $table->string('team_b_slot_slot2_report')->nullable();
  35. $table->string('team_b_slot_slot3_report')->nullable();
  36. $table->string('team_b_slot_slot4_report')->nullable();
  37. $table->string('team_b_slot_slot5_report')->nullable();
  38. $table->string('team_b_slot_slot6_report')->nullable();
  39.  
  40. /*
  41. accepting party member
  42. */
  43.  
  44. $table->integer('team_a_slot_slot1_user_id');
  45. $table->string('team_a_slot_slot1_bnet_id');
  46. $table->integer('team_a_slot_slot1_deposit');
  47. $table->integer('team_a_slot_slot2_user_id')->nullable();
  48. $table->string('team_a_slot_slot2_bnet_id')->nullable();
  49. $table->integer('team_a_slot_slot2_deposit')->nullable();
  50. $table->integer('team_a_slot_slot3_user_id')->nullable();
  51. $table->string('team_a_slot_slot3_bnet_id')->nullable();
  52. $table->integer('team_a_slot_slot3_deposit')->nullable();
  53. $table->integer('team_a_slot_slot4_user_id')->nullable();
  54. $table->string('team_a_slot_slot4_bnet_id')->nullable();
  55. $table->integer('team_a_slot_slot4_deposit')->nullable();
  56. $table->integer('team_a_slot_slot5_user_id')->nullable();
  57. $table->string('team_a_slot_slot5_bnet_id')->nullable();
  58. $table->integer('team_a_slot_slot5_deposit')->nullable();
  59. $table->integer('team_a_slot_slot6_user_id')->nullable();
  60. $table->string('team_a_slot_slot6_bnet_id')->nullable();
  61. $table->integer('team_a_slot_slot6_deposit')->nullable();
  62.  
  63. /*
  64. challenging party members
  65. */
  66.  
  67. $table->integer('team_b_slot_slot1_user_id');
  68. $table->string('team_b_slot_slot1_bnet_id');
  69. $table->integer('team_b_slot_slot1_deposit');
  70. $table->integer('team_b_slot_slot2_user_id')->nullable();
  71. $table->string('team_b_slot_slot2_bnet_id')->nullable();
  72. $table->integer('team_b_slot_slot2_deposit')->nullable();
  73. $table->integer('team_b_slot_slot3_user_id')->nullable();
  74. $table->string('team_b_slot_slot3_bnet_id')->nullable();
  75. $table->integer('team_b_slot_slot3_deposit')->nullable();
  76. $table->integer('team_b_slot_slot4_user_id')->nullable();
  77. $table->string('team_b_slot_slot4_bnet_id')->nullable();
  78. $table->integer('team_b_slot_slot4_deposit')->nullable();
  79. $table->integer('team_b_slot_slot5_user_id')->nullable();
  80. $table->string('team_b_slot_slot5_bnet_id')->nullable();
  81. $table->integer('team_b_slot_slot5_deposit')->nullable();
  82. $table->integer('team_b_slot_slot6_user_id')->nullable();
  83. $table->string('team_b_slot_slot6_bnet_id')->nullable();
  84. $table->integer('team_b_slot_slot6_deposit')->nullable();
  85.  
  86. $table->timestamps();
  87. });
  88. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement