add back to top

This commit is contained in:
xiaomlove
2022-04-04 17:26:26 +08:00
parent 9af8e5e442
commit 325c234442
38 changed files with 686 additions and 498 deletions

View File

@@ -15,12 +15,13 @@ return new class extends Migration
{
Schema::create('attendance_logs', function (Blueprint $table) {
$table->id();
$table->integer('uid')->index();
$table->integer('uid');
$table->integer('points');
$table->date('date')->index();
$table->smallInteger('is_retroactive')->default(0);
$table->dateTime('created_at')->useCurrent();
$table->dateTime('updated_at')->useCurrent()->useCurrentOnUpdate();
$table->unique(['uid', 'date']);
});
}