master
parent
a52a6cf40f
commit
991ae5844b
@ -0,0 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
class Holiday extends SoftDeletesModel
|
||||||
|
{
|
||||||
|
protected $table = "holiday";
|
||||||
|
}
|
||||||
@ -0,0 +1,36 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
class CreateHoliday extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::create('holiday', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->integer("project_id")->nullable();
|
||||||
|
$table->string("date")->nullable();
|
||||||
|
$table->string("remark")->nullable();
|
||||||
|
$table->decimal("price_ratio", 2, 1)->nullable()->default(1);
|
||||||
|
$table->timestamps();
|
||||||
|
$table->softDeletes();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('holiday');
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in new issue