Files
nexusphp/app/Models/Attendance.php
2022-02-25 23:13:34 +08:00

25 lines
429 B
PHP

<?php
namespace App\Models;
class Attendance extends NexusModel
{
protected $table = 'attendance';
protected $fillable = ['uid', 'added', 'points', 'days', 'total_days'];
protected $casts = [
'added' => 'datetime',
];
const INITIAL_BONUS = 10;
const STEP_BONUS = 5;
const MAX_BONUS = 1000;
const CONTINUOUS_BONUS = [
10 => 200,
20 => 500,
30 => 1000
];
}