Admin.php 855 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace plugin\admin\app\model;
  3. use plugin\admin\app\model\Base;
  4. /**
  5. * @property integer $id ID(主键)
  6. * @property string $username 用户名
  7. * @property string $nickname 昵称
  8. * @property string $password 密码
  9. * @property string $avatar 头像
  10. * @property string $email 邮箱
  11. * @property string $mobile 手机
  12. * @property string $created_at 创建时间
  13. * @property string $updated_at 更新时间
  14. * @property string $login_at 登录时间
  15. * @property string $roles 角色
  16. * @property integer $status 状态 0正常 1禁用
  17. */
  18. class Admin extends Base
  19. {
  20. /**
  21. * The table associated with the model.
  22. *
  23. * @var string
  24. */
  25. protected $table = 'wa_admins';
  26. /**
  27. * The primary key associated with the table.
  28. *
  29. * @var string
  30. */
  31. protected $primaryKey = 'id';
  32. }