SyncGoodsLogs.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. namespace common\models\goods;
  3. use common\models\base\BaseActiveRecord;
  4. use Yii;
  5. /**
  6. * This is the model class for table "qimall_sync_goods_logs".
  7. *
  8. * @property int $id
  9. * @property int $self_mall_id 自身商城ID
  10. * @property int $source_mall_id 源商城ID
  11. * @property int $goods_id 自身商城的商品id
  12. * @property int $source_goods_id 源商城的商品id
  13. * @property int $created_at
  14. * @property int $updated_at
  15. */
  16. class SyncGoodsLogs extends BaseActiveRecord
  17. {
  18. /**
  19. * {@inheritdoc}
  20. */
  21. public static function tableName()
  22. {
  23. return '{{%sync_goods_logs}}';
  24. }
  25. /**
  26. * {@inheritdoc}
  27. */
  28. public function rules()
  29. {
  30. return [
  31. [['self_mall_id', 'source_mall_id', 'goods_id', 'source_goods_id', 'created_at', 'updated_at'], 'integer'],
  32. ];
  33. }
  34. /**
  35. * {@inheritdoc}
  36. */
  37. public function attributeLabels()
  38. {
  39. return [
  40. 'id' => 'ID',
  41. 'self_mall_id' => '自身商城ID',
  42. 'source_mall_id' => '源商城ID',
  43. 'goods_id' => '自身商城的商品id',
  44. 'source_goods_id' => '源商城的商品id',
  45. 'created_at' => 'Created At',
  46. 'updated_at' => 'Updated At',
  47. ];
  48. }
  49. }