diff --git a/app/Models/User/Host.php b/app/Models/User/Host.php index 6923294..e744102 100644 --- a/app/Models/User/Host.php +++ b/app/Models/User/Host.php @@ -21,7 +21,8 @@ class Host extends Model 'user_id', 'price', 'configuration', - 'status' + 'status', + 'managed_price', ]; protected $casts = [ diff --git a/database/migrations/2022_08_15_104635_add_managed_price_to_hosts_table.php b/database/migrations/2022_08_15_104635_add_managed_price_to_hosts_table.php new file mode 100644 index 0000000..8b1043e --- /dev/null +++ b/database/migrations/2022_08_15_104635_add_managed_price_to_hosts_table.php @@ -0,0 +1,33 @@ +boolean('managed_price')->default(true)->index(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('hosts', function (Blueprint $table) { + // + }); + } +};