mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 08:12:15 +00:00
frontend update
This commit is contained in:
36
database/migrations/2020_06_02_051445_create_plans_table.php
Normal file
36
database/migrations/2020_06_02_051445_create_plans_table.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreatePlansTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('plans', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->boolean('status')->default(1);
|
||||
$table->text('name');
|
||||
$table->text('price');
|
||||
$table->integer('capacity');
|
||||
$table->longText('description')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('plans');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreatePaymentGatewaysTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('payment_gateways', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->boolean('status')->default(0);
|
||||
$table->boolean('sandbox')->default(0);
|
||||
$table->text('name');
|
||||
$table->text('slug');
|
||||
$table->text('logo');
|
||||
$table->text('client_id')->nullable();
|
||||
$table->text('secret')->nullable();
|
||||
$table->text('webhook')->nullable();
|
||||
$table->longText('optional')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('payment_gateways');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddAttributesToUserSettingsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('user_settings', function (Blueprint $table) {
|
||||
$table->text('billing_name')->nullable();
|
||||
$table->text('billing_address')->nullable();
|
||||
$table->text('billing_state')->nullable();
|
||||
$table->text('billing_city')->nullable();
|
||||
$table->text('billing_postal_code')->nullable();
|
||||
$table->text('billing_country')->nullable();
|
||||
$table->text('billing_phone_number')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('user_settings', function (Blueprint $table) {
|
||||
$table->dropColumn('billing_name');
|
||||
$table->dropColumn('billing_address');
|
||||
$table->dropColumn('billing_state');
|
||||
$table->dropColumn('billing_city');
|
||||
$table->dropColumn('billing_postal_code');
|
||||
$table->dropColumn('billing_country');
|
||||
$table->dropColumn('billing_phone_number');
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateInvoicesTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('invoices', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->text('token');
|
||||
$table->text('order');
|
||||
$table->text('user_id');
|
||||
$table->text('plan_id');
|
||||
$table->longText('seller');
|
||||
$table->longText('client');
|
||||
$table->longText('bag');
|
||||
$table->longText('notes')->nullable();
|
||||
$table->text('total');
|
||||
$table->text('currency');
|
||||
$table->text('path');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('invoices');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user