From 4c75aa04a2d1ded249834fd8317957bc741f9aab Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 20 May 2018 15:51:11 -0600 Subject: [PATCH] Add Avatar model/migration --- app/Avatar.php | 10 ++++++ ...2018_05_07_021835_create_avatars_table.php | 36 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 app/Avatar.php create mode 100644 database/migrations/2018_05_07_021835_create_avatars_table.php diff --git a/app/Avatar.php b/app/Avatar.php new file mode 100644 index 000000000..a7f8e4e67 --- /dev/null +++ b/app/Avatar.php @@ -0,0 +1,10 @@ +bigIncrements('id'); + $table->bigInteger('profile_id')->unsigned()->unique()->index(); + $table->string('media_path')->nullable(); + $table->string('thumb_path')->nullable(); + $table->unsignedInteger('change_count')->default(0); + $table->timestamp('last_processed_at')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('avatars'); + } +}