From 9b7580d533356cdfbb4cdda1eff01a37d381de33 Mon Sep 17 00:00:00 2001 From: cody <648753004@qq.com> Date: Thu, 3 Jul 2025 14:06:28 +0800 Subject: [PATCH] update --- app/Models/Calendar.php | 13 +++++++++++++ .../2025_06_25_150423_create_calendars_table.php | 14 ++++++++++---- 2 files changed, 23 insertions(+), 4 deletions(-) create mode 100755 app/Models/Calendar.php diff --git a/app/Models/Calendar.php b/app/Models/Calendar.php new file mode 100755 index 0000000..3181f48 --- /dev/null +++ b/app/Models/Calendar.php @@ -0,0 +1,13 @@ +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(); });