|
- <?php
-
- namespace common\models;
-
- use Yii;
-
- /**
- * This is the model class for table "base_main_corporation".
- *
- * @property integer $id
- * @property string $corporation_name
- * @property string $full_name
- * @property integer $cancel_flag
- */
- class BaseMainCorporation extends \yii\db\ActiveRecord
- {
- const CORP_CS = 1;
- const CORP_FO = 2;
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'base_main_corporation';
- }
-
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['cancel_flag'], 'integer'],
- [['corporation_name'], 'string', 'max' => 20],
- [['full_name'], 'string', 'max' => 100],
- ];
- }
-
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => '主键ID',
- 'corporation_name' => '运营主体名称',
- 'full_name' => '运营主体全名',
- 'cancel_flag' => 'Cancel Flag',
- ];
- }
- }
|