OutCode.php 608 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace app\common\model;
  3. use think\Model;
  4. class OutCode extends Model
  5. {
  6. // 设置字段信息
  7. protected $schema = [
  8. 'id' => 'int',
  9. 'code' => 'string',
  10. 'status' => 'int',
  11. 'userid' => 'int',
  12. 'money' => 'float',
  13. 'create_time' => 'int',
  14. 'use_time' => 'int',
  15. 'workerid' => 'int',
  16. 'agentid' => 'int',
  17. ];
  18. // 设置字段自动转换类型
  19. protected $type = [
  20. 'create_time' => 'timestamp:Y-m-d H:i:s',
  21. 'use_time' => 'timestamp:Y-m-d H:i:s',
  22. ];
  23. }