LiveAnchor.php 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.com
  5. * Copyright (c) 2023 赤店商城 All rights reserved.
  6. */
  7. namespace app\models;
  8. use Yii;
  9. use yii\behaviors\TimestampBehavior;
  10. use yii\db\ActiveRecord;
  11. /**
  12. * This is the model class for table "{{%live_anchor}}".
  13. *
  14. * @property $id int(11) NOT NULL AUTO_INCREMENT,
  15. * @property $store_id int(11) NOT NULL DEFAULT '0',
  16. * @property $user_id int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
  17. * @property $is_push int(1) NOT NULL DEFAULT '0' COMMENT '是否在推流',
  18. * @property $name varchar(255) NOT NULL COMMENT '主播名称',
  19. * @property $desc varchar(255) NOT NULL COMMENT '主播简介',
  20. * @property $status tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态:1.审核通过,0.待审核,2.审核未通过',
  21. * @property $follow_num int(11) NOT NULL DEFAULT '0' COMMENT '关注人数',
  22. * @property $price decimal(10,2) DEFAULT NULL COMMENT '主播收益',
  23. * @property $cat_id int(11) NOT NULL COMMENT '主播类型',
  24. * @property $is_open tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否打开直播 1,打开 0,关闭',
  25. * @property $is_recommen tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否推荐',
  26. * @property $is_delete tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否删除',
  27. * @property $realname varchar(255) DEFAULT NULL COMMENT '真实姓名',
  28. * @property $mobile varchar(255) DEFAULT NULL COMMENT '联系电话',
  29. * @property $add_time int(11) DEFAULT NULL COMMENT '添加时间',
  30. * @property $status_desc varchar(255) DEFAULT NULL COMMENT '未通过备注',
  31. * @property $created_at int(11) NULL DEFAULT 0 ,
  32. * @property $updated_at int(11) NULL DEFAULT 0 ,
  33. */
  34. class LiveAnchor extends \yii\db\ActiveRecord
  35. {
  36. /**
  37. * @inheritdoc
  38. */
  39. public static function tableName()
  40. {
  41. return '{{%live_anchor}}';
  42. }
  43. public function behaviors()
  44. {
  45. return [
  46. [
  47. // 自动更新创建和更新时间
  48. 'class' => TimestampBehavior::class,
  49. ]
  50. ];
  51. }
  52. }