CloudInventoryLevel.php 995 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. /**
  9. * Class User
  10. * @package app\modules\common\models
  11. *
  12. * @property integer $id
  13. * @property integer $level
  14. * @property string $name
  15. * @property integer $is_delete
  16. * @property integer $created_at
  17. */
  18. class CloudInventoryLevel extends \yii\db\ActiveRecord
  19. {
  20. /**
  21. * 是否删除
  22. */
  23. CONST IS_DELETE = 1;
  24. CONST NOT_DELETE = 0;
  25. /**
  26. * @return string
  27. */
  28. public static function tableName()
  29. {
  30. return '{{%cloud_inventory_level}}';
  31. }
  32. public function rules()
  33. {
  34. return [
  35. [['id', 'level', 'is_delete','created_at'],'integer'],
  36. [['name'], 'string']
  37. ];
  38. }
  39. public function attributeLabels()
  40. {
  41. return [
  42. 'id' => 'ID',
  43. 'level' => '等级',
  44. 'name' => '等级名称'
  45. ];
  46. }
  47. }