You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

52 lines
1.0 KiB

  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "base_main_corporation".
  6. *
  7. * @property integer $id
  8. * @property string $corporation_name
  9. * @property string $full_name
  10. * @property integer $cancel_flag
  11. */
  12. class BaseMainCorporation extends \yii\db\ActiveRecord
  13. {
  14. const CORP_CS = 1;
  15. const CORP_FO = 2;
  16. /**
  17. * @inheritdoc
  18. */
  19. public static function tableName()
  20. {
  21. return 'base_main_corporation';
  22. }
  23. /**
  24. * @inheritdoc
  25. */
  26. public function rules()
  27. {
  28. return [
  29. [['cancel_flag'], 'integer'],
  30. [['corporation_name'], 'string', 'max' => 20],
  31. [['full_name'], 'string', 'max' => 100],
  32. ];
  33. }
  34. /**
  35. * @inheritdoc
  36. */
  37. public function attributeLabels()
  38. {
  39. return [
  40. 'id' => '主键ID',
  41. 'corporation_name' => '运营主体名称',
  42. 'full_name' => '运营主体全名',
  43. 'cancel_flag' => 'Cancel Flag',
  44. ];
  45. }
  46. }