upload purchase order

This commit is contained in:
Nazri
2018-05-28 17:24:13 +08:00
parent 5c1a4d28c4
commit 4210cdc19d
9 changed files with 118 additions and 13 deletions
@@ -0,0 +1,9 @@
<?php
use Faker\Generator as Faker;
$factory->define(App\PurchaseOrder::class, function (Faker $faker) {
return [
//
];
});
@@ -15,11 +15,11 @@ class CreateUserBankSlipsTable extends Migration
{
Schema::create('user_bank_slips', function (Blueprint $table) {
$table->increments('id');
$table->string('bank_slip_type');
$table->string('bankslip_url');
$table->double('transfer_amount');
$table->string('cust_marking');
$table->boolean('is_approve');
$table->string('bank_slip_type')->nullable();
$table->string('bankslip_url')->nullable();
$table->double('transfer_amount')->nullable();
$table->string('cust_marking')->nullable();
$table->boolean('is_approve')->nullable();
$table->integer('book_id')->unsigned();
$table->foreign('book_id')->references('id')->on('bookings');
@@ -0,0 +1,35 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePurchaseOrdersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('purchase_orders', function (Blueprint $table) {
$table->increments('id');
$table->string('image_location');
$table->double('amount');
$table->integer('book_id')->unsigned();
$table->foreign('book_id')->references('id')->on('bookings');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('purchase_orders');
}
}