GoodsServiceRelate.php 1.1 KB

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