master
cody 5 months ago
parent 15bd754dec
commit 9b7580d533

@ -0,0 +1,13 @@
<?php
namespace App\Models;
use Illuminate\Support\Facades\Cache;
class Calendar extends SoftDeletesModel
{
}

@ -14,12 +14,18 @@ return new class extends Migration {
{
Schema::create('calendars', function (Blueprint $table) {
$table->id();
// 数据类型
$table->tinyInteger('type')->nullable()->comment('数据类型1课程2自定义事件');
// 课程课堂id
$table->integer('course_content_id')->nullable()->comment('课程课堂id');
// 日期
$table->date('date')->nullable()->comment('日期');
// 标题
$table->string('title')->nullable()->comment('标题');
// 内容
$table->mediumText('content')->nullable()->comment('内容');
// 开始时间
$table->dateTime('start_time')->nullable()->comment('开始时间');
// 结束时间
$table->dateTime('end_time')->nullable()->comment('结束时间');
$table->timestamps();
$table->softDeletes();
});

Loading…
Cancel
Save