LiveGoods.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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_goods}}".
  13. *
  14. * @property $id int(11) NOT NULL AUTO_INCREMENT,
  15. * @property $store_id int(11) NOT NULL DEFAULT '0',
  16. * @property $anchor_id int(11) NOT NULL DEFAULT 0 COMMENT '主播id' ,
  17. * @property $goods_id int(11) NOT NULL DEFAULT 0 COMMENT '商品id' ,
  18. * @property $status tinyint(1) NOT NULL DEFAULT 0 COMMENT '审核状态 0 待审核 1 审核通过 2 审核未通过' ,
  19. * @property $is_delete tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否删除' ,
  20. * @property $created_at int(11) NULL DEFAULT 0 ,
  21. * @property $updated_at int(11) NULL DEFAULT 0 ,
  22. */
  23. class LiveGoods extends \yii\db\ActiveRecord
  24. {
  25. /**
  26. * @inheritdoc
  27. */
  28. public static function tableName()
  29. {
  30. return '{{%live_goods}}';
  31. }
  32. public function behaviors()
  33. {
  34. return [
  35. [
  36. // 自动更新创建和更新时间
  37. 'class' => TimestampBehavior::class,
  38. ]
  39. ];
  40. }
  41. }