'int', 'name' => 'string', 'code' => 'string', 'contactName' => 'string', 'contactPhone' => 'string', 'contactEmail' => 'string', 'balance' => 'float', 'status' => 'string', 'trialExpireAt' => 'int', 'deletedAt' => 'int', 'createdAt' => 'int', 'updatedAt' => 'int', ]; // 自动时间戳(使用驼峰命名,时间戳格式) protected $autoWriteTimestamp = 'int'; // 时间戳字段名(驼峰命名,匹配数据库) protected $createTime = 'createdAt'; protected $updateTime = 'updatedAt'; // 时间字段类型(时间戳格式) protected $type = [ 'trialExpireAt' => 'integer', 'deletedAt' => 'integer', 'createdAt' => 'integer', 'updatedAt' => 'integer', ]; }