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