diff --git a/app/database/migrations/2014_09_02_234512_create_dinner_menu_users_table.php b/app/database/migrations/2014_09_02_234512_create_dinner_menu_users_table.php new file mode 100644 index 00000000..53532667 --- /dev/null +++ b/app/database/migrations/2014_09_02_234512_create_dinner_menu_users_table.php @@ -0,0 +1,37 @@ +increments('id'); + $table->integer('user_id')->unsigned(); + $table->integer('dinner_menu_item_id')->unsigned(); + $table->foreign('user_id')->references('id')->on('users'); + $table->foreign('dinner_menu_item_id')->references('id')->on('dinner_menu_items'); + $table->integer('count')->unsigned()->default(1); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('dinner_menu_users'); + } + +}