QueueLog.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use app\models\common\admin\log\CommonActionLog;
  9. use Yii;
  10. use yii\behaviors\TimestampBehavior;
  11. use yii\db\ActiveRecord;
  12. /**
  13. * This is the model class for table "{{%queue_log}}".
  14. *
  15. * @property integer $id
  16. * @property integer $store_id
  17. * @property integer $article_cat_id
  18. * @property string $title
  19. * @property string $content
  20. * @property integer $sort
  21. * @property integer $addtime
  22. * @property integer $is_delete
  23. * @property integer $is_show
  24. */
  25. class QueueLog extends \yii\db\ActiveRecord
  26. {
  27. public function behaviors()
  28. {
  29. return [
  30. [
  31. 'class' => TimestampBehavior::class,
  32. 'attributes' => [
  33. ActiveRecord::EVENT_BEFORE_INSERT => ['updated_at', 'created_at'],
  34. ActiveRecord::EVENT_BEFORE_UPDATE => 'updated_at'
  35. ]
  36. ]
  37. ];
  38. }
  39. /**
  40. * @inheritdoc
  41. */
  42. public static function tableName()
  43. {
  44. return '{{%queue_log}}';
  45. }
  46. /**
  47. * @inheritdoc
  48. */
  49. public function rules()
  50. {
  51. return [
  52. [['store_id', 'user_id','order_id','goods_id','sort', 'is_pay', 'created_at', 'updated_at','num','queue_id','is_send','send_time','is_meet'], 'integer'],
  53. [['returned_money','total_money','goods_price','rate','cashback_bili', 'self_bili', 'share_bili', 'integral'], 'number'],
  54. [['goods_name'], 'string'],
  55. ];
  56. }
  57. /**
  58. * @inheritdoc
  59. */
  60. public function attributeLabels()
  61. {
  62. return [
  63. 'id' => 'ID',
  64. 'store_id' => 'Store ID',
  65. 'sort' => '排序:升序',
  66. 'user_id' => '用户id',
  67. 'order_id' => '订单id',
  68. 'goods_id' => '商品id',
  69. 'is_pay' => '是否支付',
  70. 'returned_money' => '已返金额',
  71. 'total_money' => '总金额',
  72. ];
  73. }
  74. }