TmcStatus.php 757 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php /** Created by Anton on 29.01.2020. */
  2. namespace app\models\entity;
  3. /**
  4. * This is the model class for table "tmc_status".
  5. *
  6. * @property int $id
  7. * @property string $title
  8. */
  9. class TmcStatus extends \yii\db\ActiveRecord
  10. {
  11. const TMC_STATUS_ISSUED = 1;
  12. const TMC_STATUS_IN_STORAGE = 2;
  13. const TMC_STATUS_REPAIR = 3;
  14. const TMC_STATUS_TRANSFERRED = 4;
  15. const TMC_STATUS_DECOMMISSION = 5;
  16. const TMC_STATUS_IN_CHARGE = 6;
  17. /**
  18. * {@inheritdoc}
  19. */
  20. public static function tableName()
  21. {
  22. return 'tmc_status';
  23. }
  24. /**
  25. * {@inheritdoc}
  26. */
  27. public function rules()
  28. {
  29. return [
  30. [['title'], 'string', 'max' => 255],
  31. ];
  32. }
  33. }