master
parent
fb73905a06
commit
d1a672f6c8
@ -0,0 +1,9 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
class StudyLog extends CommonModel
|
||||||
|
{
|
||||||
|
protected $guarded = ['id'];
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,38 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
class CreateStudyLogsTable extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::create('study_logs', function (Blueprint $table) {
|
||||||
|
$table->increments('id');
|
||||||
|
$table->integer('admin_id')->nullable()->comment('不用填');
|
||||||
|
$table->integer('department_id')->nullable()->comment('不用填');
|
||||||
|
$table->integer('user_id');
|
||||||
|
$table->json('content')->nullable();
|
||||||
|
$table->json('ask')->nullable();
|
||||||
|
$table->integer('expire_day')->comment('有效天数')->nullable();
|
||||||
|
$table->timestamps();
|
||||||
|
$table->softDeletes();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('study_logs');
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in new issue