| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- namespace addons\RandomRedPacket\common\models;
- use Yii;
- /**
- * This is the model class for table "qimall_addons_random_red_packet_relation".
- *
- * @property int $id
- * @property int $mall_id 商城id
- * @property int $goods_id 商品id
- * @property int $packet_id 随机红包表id
- * @property int $created_at 创建时间
- * @property int $updated_at 修改时间
- */
- class RandomRedPacketRelation extends \common\models\base\BaseActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return 'qimall_addons_random_red_packet_relation';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['mall_id', 'goods_id', 'packet_id'], 'required'],
- [['mall_id', 'goods_id', 'packet_id', 'created_at', 'updated_at'], 'integer'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'mall_id' => 'Mall ID',
- 'goods_id' => 'Goods ID',
- 'packet_id' => 'Packet ID',
- 'created_at' => 'Created At',
- 'updated_at' => 'Updated At',
- ];
- }
- }
|