SystemUser.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. namespace app\model\system;
  3. use app\extra\basic\Model;
  4. /**
  5. * @property integer $id (主键)
  6. * @property integer $agent_id 代理ID
  7. * @property string $username 用户名
  8. * @property string $truename 真实姓名
  9. * @property string $password 密码
  10. * @property mixed $salt 密钥串
  11. * @property string $contact_name
  12. * @property string $contact_mobile
  13. * @property integer $status 状态
  14. * @property integer $type 1管理员2代理子账号3店铺账号
  15. * @property integer $is_deleted 删除状态
  16. * @property integer $is_super
  17. * @property string $remark 备注
  18. * @property string $login_ip 登录IP
  19. * @property mixed $login_at 登录时间
  20. * @property integer $login_num
  21. * @property string $create_ip
  22. * @property mixed $updated_at 更新时间
  23. * @property mixed $create_at 创建时间
  24. */
  25. class SystemUser extends Model
  26. {
  27. /**
  28. * The connection name for the model.
  29. *
  30. * @var string|null
  31. */
  32. protected $connection = 'mysql';
  33. /**
  34. * The table associated with the model.
  35. *
  36. * @var string
  37. */
  38. protected string $table = "system_user";
  39. /**
  40. * The primary key associated with the table.
  41. *
  42. * @var string
  43. */
  44. protected string $primaryKey = "id";
  45. /**
  46. * Indicates if the model should be timestamped.
  47. *
  48. * @var bool
  49. */
  50. public bool $timestamps = false;
  51. }