| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <?php
- namespace addons\BusinessCard\common\models;
- use common\models\goods\Goods;
- use Yii;
- /**
- * This is the model class for table "qimall_addons_business_card_buried_point".
- *
- * @property int $id
- * @property int $mall_id
- * @property int $user_id
- * @property int $item_id 对象ID
- * @property int $log_type 101首页,102商品详情
- * @property int $status 状态[1启用 0禁用 -1删除]
- * @property int $created_at 创建时间
- * @property int $updated_at 更新事件
- * @property int $object_id 更新事件
- * @property array|null $ext_data
- */
- class BusinessCardBuriedPoint extends \common\models\base\BaseActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return 'qimall_addons_business_card_buried_point';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['mall_id', 'user_id', 'item_id', 'log_type', 'status', 'created_at', 'updated_at', 'object_id'], 'integer'],
- [['ext_data'], 'safe'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'mall_id' => 'Mall ID',
- 'user_id' => 'User ID',
- 'item_id' => 'Item ID',
- 'log_type' => 'Log Type',
- 'status' => 'Status',
- 'created_at' => 'Created At',
- 'updated_at' => 'Updated At',
- 'ext_data' => 'Ext Data',
- ];
- }
- public function getGoods()
- {
- return $this->hasOne(Goods::class, ['id' => 'object_id']);
- }
- }
|