From 86bbcd73cfb8ccd6aba003830619a638cfebfc2f Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 1 Sep 2018 22:43:11 -0600 Subject: [PATCH] Add Instance model/migration --- app/Instance.php | 10 +++++ ...18_09_02_043609_create_instances_table.php | 39 +++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 app/Instance.php create mode 100644 database/migrations/2018_09_02_043609_create_instances_table.php diff --git a/app/Instance.php b/app/Instance.php new file mode 100644 index 000000000..e9a61acaa --- /dev/null +++ b/app/Instance.php @@ -0,0 +1,10 @@ +bigIncrements('id'); + $table->string('domain')->unique()->index(); + $table->string('url')->nullable(); + $table->string('name')->nullable(); + $table->string('admin_url')->nullable(); + $table->string('limit_reason')->nullable(); + $table->boolean('unlisted')->default(false); + $table->boolean('auto_cw')->default(false); + $table->boolean('banned')->default(false); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('instances'); + } +}