47 lines
786 B
PHP
47 lines
786 B
PHP
<?php
|
|
|
|
namespace app\models;
|
|
|
|
use Yii;
|
|
|
|
/**
|
|
* This is the model class for table "cx_user_collect".
|
|
*
|
|
* @property int $id
|
|
* @property int $user_id
|
|
* @property int $goods_id 卡券id
|
|
*/
|
|
class UserCollect extends \yii\db\ActiveRecord
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function tableName()
|
|
{
|
|
return 'cx_user_collect';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
[['user_id', 'goods_id'], 'required'],
|
|
[['user_id', 'goods_id'], 'integer'],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function attributeLabels()
|
|
{
|
|
return [
|
|
'id' => 'ID',
|
|
'user_id' => 'User ID',
|
|
'goods_id' => 'Goods ID',
|
|
];
|
|
}
|
|
}
|