mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
add back to top
This commit is contained in:
@@ -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']);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user