This commit is contained in:
2023-02-25 10:24:32 +08:00
parent 0b5ac0a225
commit d44a591e84
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ class CodeLog extends Model
/**
* The attributes that should be cast to native types.
*/
protected array $casts = ['code_log_id' => 'integer', 'type' => 'integer', 'status' => 'integer', 'scene' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
protected array $casts = ['code_log_id' => 'string', 'type' => 'integer', 'status' => 'integer', 'scene' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
protected string $primaryKey = "code_log_id";