parent
9ef70eb47a
commit
a3b4ebec2c
@ -0,0 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
class HistoryCourse extends SoftDeletesModel
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
@ -0,0 +1,33 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::table('companies', function (Blueprint $table) {
|
||||||
|
// 已投资金额
|
||||||
|
$table->decimal('company_invested', 10, 2)->default(0)->comment('已投资金额');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
Schema::table('companies', function (Blueprint $table) {
|
||||||
|
//
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration {
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::create('history_courses', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->string('course_type')->comment('课程体系名称');
|
||||||
|
$table->integer('course_type_signs_pass')->default(0)->comment('培养人数未去重');
|
||||||
|
$table->integer('course_type_signs_pass_unique')->default(0)->comment('培养人数去重');
|
||||||
|
$table->integer('course_signs_pass')->default(0)->comment('课程培养人数');
|
||||||
|
// 课程名称
|
||||||
|
$table->string('course_name')->nullable()->comment('课程名称');
|
||||||
|
// 开始时间
|
||||||
|
$table->date('start_time')->nullable()->comment('开始时间');
|
||||||
|
// 结束时间
|
||||||
|
$table->date('end_time')->nullable()->comment('结束时间');
|
||||||
|
$table->timestamps();
|
||||||
|
$table->softDeletes();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('history_courses');
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
Loading…
Reference in new issue