ValetOrderGoods.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. namespace addons\ValetOrder\common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "qimall_addons_valet_order_goods".
  6. *
  7. * @property int $id ID
  8. * @property int $mall_id 商城ID
  9. * @property int $status 状态[1启用 0禁用 -1删除]
  10. * @property int $created_at 创建时间
  11. * @property int $updated_at 更新事件
  12. * @property int $goods_id 商品ID
  13. */
  14. class ValetOrderGoods extends \common\models\base\BaseActiveRecord
  15. {
  16. /**
  17. * {@inheritdoc}
  18. */
  19. public static function tableName()
  20. {
  21. return 'qimall_addons_valet_order_goods';
  22. }
  23. /**
  24. * {@inheritdoc}
  25. */
  26. public function rules()
  27. {
  28. return [
  29. [['mall_id', 'status', 'created_at', 'updated_at', 'goods_id'], 'integer'],
  30. ];
  31. }
  32. /**
  33. * {@inheritdoc}
  34. */
  35. public function attributeLabels()
  36. {
  37. return [
  38. 'id' => 'ID',
  39. 'mall_id' => 'Mall ID',
  40. 'status' => 'Status',
  41. 'created_at' => 'Created At',
  42. 'updated_at' => 'Updated At',
  43. 'goods_id' => 'Goods ID',
  44. ];
  45. }
  46. }