Access.php 981 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. namespace app\agent\model\auth;
  3. use app\common\model\BaseModel;
  4. class Access extends BaseModel
  5. {
  6. /**
  7. * @var string
  8. */
  9. protected $name = 'agent_system_permissions_access';
  10. /**
  11. * @var bool 自模型关闭软删除
  12. */
  13. protected $deleteTime = false;
  14. /**
  15. * @var array
  16. */
  17. protected $auto = [];
  18. /**
  19. * @var array
  20. */
  21. protected $type = [
  22. 'id' => 'integer',
  23. 'ptype' => 'string',
  24. 'v0' => 'string',
  25. 'v1' => 'string',
  26. 'v2' => 'string',
  27. 'v3' => 'string',
  28. 'v4' => 'string',
  29. 'v5' => 'string',
  30. ];
  31. /**
  32. * 模型事件定义
  33. *
  34. * @author 许祖兴 < zuxing.xu@lettered.cn>
  35. *
  36. * @return void
  37. * @date 2020/3/26 20:54
  38. *
  39. */
  40. public static function init()
  41. {
  42. self::event('before_insert', function ($before) {
  43. });
  44. }
  45. }