| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use yii\behaviors\TimestampBehavior;
- use yii\db\ActiveRecord;
- /**
- * This is the model class for table "{{%pt_activity_order_detail}}".
- *
- * @property integer $id
- * @property integer $order_id
- * @property integer $goods_id
- * @property string $goods_name
- * @property integer $num
- * @property float $total_price
- * @property integer $created_at
- * @property integer $is_delete
- * @property string $attr
- * @property string $pic
- * @property string $goods_info
- * @property integer $delivery_type
- * @property string $integral
- * @property integer $is_level
- * @property float $profit
- * @property integer $activity_id
- */
- class PtActivityOrderDetail extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%pt_activity_order_detail}}';
- }
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::class,
- 'attributes' => [
- ActiveRecord::EVENT_BEFORE_INSERT => ['created_at']
- ]
- ]
- ];
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [["id", "order_id", "goods_id", "num", "created_at", "is_delete", "delivery_type", "is_level", "activity_id"], 'integer'],
- [["total_price", "profit", 'integral', 'integral_price'], 'number'],
- [["goods_name", "attr", "pic", "goods_info"], 'string']
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- "id" => "",
- "order_id" => "",
- "goods_id" => "",
- "goods_name" => "商品名称",
- "num" => "商品数量",
- "total_price" => "此商品的总价",
- "created_at" => "",
- "is_delete" => "",
- "attr" => "商品规格",
- "pic" => "商品规格图片",
- "goods_info" => "商品快照",
- "delivery_type" => "0:快递,1:自提, 2:同城配送",
- "is_level" => "是否是会员支付",
- "profit" => "分红",
- "activity_id" => "活动ID"
- ];
- }
- }
|