| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use app\models\common\admin\log\CommonActionLog;
- use Yii;
- use yii\behaviors\TimestampBehavior;
- use yii\db\ActiveRecord;
- /**
- * This is the model class for table "{{%queue_log}}".
- *
- * @property integer $id
- * @property integer $store_id
- * @property integer $article_cat_id
- * @property string $title
- * @property string $content
- * @property integer $sort
- * @property integer $addtime
- * @property integer $is_delete
- * @property integer $is_show
- */
- class QueueLog extends \yii\db\ActiveRecord
- {
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::class,
- 'attributes' => [
- ActiveRecord::EVENT_BEFORE_INSERT => ['updated_at', 'created_at'],
- ActiveRecord::EVENT_BEFORE_UPDATE => 'updated_at'
- ]
- ]
- ];
- }
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%queue_log}}';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['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'],
- [['returned_money','total_money','goods_price','rate','cashback_bili', 'self_bili', 'share_bili', 'integral'], 'number'],
- [['goods_name'], 'string'],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'store_id' => 'Store ID',
- 'sort' => '排序:升序',
- 'user_id' => '用户id',
- 'order_id' => '订单id',
- 'goods_id' => '商品id',
- 'is_pay' => '是否支付',
- 'returned_money' => '已返金额',
- 'total_money' => '总金额',
- ];
- }
- }
|