From 4b3c2089f54496e729e848578954da0bd080b215 Mon Sep 17 00:00:00 2001 From: Bruno Fontes Date: Mon, 10 Sep 2018 21:30:00 -0300 Subject: [PATCH] Creating users_per_item migration --- .../2018_09_10_233609_users_per_item.php | 33 +++++++++++++++++++ readme.md | 10 +++--- 2 files changed, 38 insertions(+), 5 deletions(-) create mode 100644 database/migrations/2018_09_10_233609_users_per_item.php diff --git a/database/migrations/2018_09_10_233609_users_per_item.php b/database/migrations/2018_09_10_233609_users_per_item.php new file mode 100644 index 0000000..85e81a3 --- /dev/null +++ b/database/migrations/2018_09_10_233609_users_per_item.php @@ -0,0 +1,33 @@ +increments('id'); + $table->integer('productID'); + $table->integer('userID'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('users_per_item'); + } +} diff --git a/readme.md b/readme.md index 69592a9..48b57b5 100644 --- a/readme.md +++ b/readme.md @@ -4,11 +4,11 @@ Cada usuário, identificado por e-mail, pode ter outros amigos ## DB -usuário(nome, email) -product[site/software](nome, admin) -productUsers(productID, userID) -item[licença](nome, productID, usedBy, usedSince) -waiting(userID, itemID, waitingSince) +[x] usuário(nome, email) +[x] product[site/software](nome, admin) +[ ] usersPerItem(productID, userID) +[x] item[licença](nome, productID, usedBy, usedSince) +[ ] waiting(userID, itemID, waitingSince) ## VIEWS