ErpInventoryLog.php 811 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use Yii;
  9. use yii\behaviors\TimestampBehavior;
  10. use yii\db\ActiveRecord;
  11. /**
  12. * This is the model class for table "{{%erp_inventory_log}}".
  13. *
  14. * @property integer $id
  15. */
  16. class ErpInventoryLog extends \yii\db\ActiveRecord
  17. {
  18. const LOG_TYPE_ORDER = 0; //订单
  19. const LOG_TYPE_PURCHASEIN = 1; //入库
  20. const LOG_TYPE_PURCHASEOUT = 2; //出库
  21. /**
  22. * @inheritdoc
  23. */
  24. public static function tableName()
  25. {
  26. return '{{%erp_inventory_log}}';
  27. }
  28. public function behaviors()
  29. {
  30. return [
  31. [
  32. 'class' => TimestampBehavior::class,
  33. ]
  34. ];
  35. }
  36. }