RandomRedPacketRelation.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. namespace addons\RandomRedPacket\common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "qimall_addons_random_red_packet_relation".
  6. *
  7. * @property int $id
  8. * @property int $mall_id 商城id
  9. * @property int $goods_id 商品id
  10. * @property int $packet_id 随机红包表id
  11. * @property int $created_at 创建时间
  12. * @property int $updated_at 修改时间
  13. */
  14. class RandomRedPacketRelation extends \common\models\base\BaseActiveRecord
  15. {
  16. /**
  17. * {@inheritdoc}
  18. */
  19. public static function tableName()
  20. {
  21. return 'qimall_addons_random_red_packet_relation';
  22. }
  23. /**
  24. * {@inheritdoc}
  25. */
  26. public function rules()
  27. {
  28. return [
  29. [['mall_id', 'goods_id', 'packet_id'], 'required'],
  30. [['mall_id', 'goods_id', 'packet_id', 'created_at', 'updated_at'], 'integer'],
  31. ];
  32. }
  33. /**
  34. * {@inheritdoc}
  35. */
  36. public function attributeLabels()
  37. {
  38. return [
  39. 'id' => 'ID',
  40. 'mall_id' => 'Mall ID',
  41. 'goods_id' => 'Goods ID',
  42. 'packet_id' => 'Packet ID',
  43. 'created_at' => 'Created At',
  44. 'updated_at' => 'Updated At',
  45. ];
  46. }
  47. }