@ -69,6 +69,8 @@ class SendEmail extends Command
$recordUser->send_time = date('Y-m-d H:i:s');
$recordUser->save();
}
$records->send_time = date('Y-m-d H:i:s');
$records->save();
return $this->info('更新完成');
@ -22,6 +22,8 @@ return new class extends Migration {
$table->integer('email_template_id')->nullable()->comment('邮件模版id');
// 状态
$table->tinyInteger('status')->nullable()->default(0)->comment('状态0:待处理1:已处理');
// 发送时间
$table->dateTime('send_time')->nullable()->comment('发送时间');
$table->timestamps();
$table->softDeletes();
});