StoreSyncGoodsLogs.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. namespace addons\Store\common\models;
  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 $mall_id
  10. * @property int $self_store_id 自身门店ID
  11. * @property int $source_store_id 源门店ID
  12. * @property int $goods_id 自身门店的商品id
  13. * @property int $source_goods_id 源门店的商品id
  14. * @property int $created_at
  15. * @property int $updated_at
  16. */
  17. class StoreSyncGoodsLogs extends BaseActiveRecord
  18. {
  19. /**
  20. * {@inheritdoc}
  21. */
  22. public static function tableName()
  23. {
  24. return '{{%addons_store_sync_goods_logs}}';
  25. }
  26. /**
  27. * {@inheritdoc}
  28. */
  29. public function rules()
  30. {
  31. return [
  32. [['self_store_id', 'source_store_id', 'goods_id', 'source_goods_id', 'created_at', 'updated_at'], 'integer'],
  33. ];
  34. }
  35. /**
  36. * {@inheritdoc}
  37. */
  38. public function attributeLabels()
  39. {
  40. return [
  41. 'id' => 'ID',
  42. 'self_store_id' => '自身门店ID',
  43. 'source_store_id' => '源门店ID',
  44. 'goods_id' => '自身门店的商品id',
  45. 'source_goods_id' => '源门店的商品id',
  46. 'created_at' => 'Created At',
  47. 'updated_at' => 'Updated At',
  48. ];
  49. }
  50. }