| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <?php
- namespace common\models;
- use Yii;
- /**
- * This is the model class for table "{{%EMPLOY_LEVEL_LOG}}".
- *
- * @property string $ID
- * @property string $USER_ID 会员ID
- * @property string $FROM_ID 变动前的级别
- * @property string $TO_ID 变动后的级别
- * @property int $PERIOD_NUM 变动时的期数
- * @property int $CALC_MONTH 变动时的结算月
- * @property string $P_CALC_MONTH 表分区标识
- * @property string $REMARK 备注
- * @property int $CREATED_AT 创建时间
- */
- class EmployLevelLog extends \common\components\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%EMPLOY_LEVEL_LOG}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['USER_ID', 'FROM_ID', 'TO_ID', 'PERIOD_NUM', 'CALC_MONTH', 'P_CALC_MONTH', 'CREATED_AT'], 'required'],
- [['PERIOD_NUM', 'CALC_MONTH', 'CREATED_AT'], 'integer'],
- [['ID', 'USER_ID', 'FROM_ID', 'TO_ID'], 'string', 'max' => 32],
- [['P_CALC_MONTH'], 'safe'],
- [['REMARK'], 'string', 'max' => 4000],
- [['ID'], 'unique'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'ID' => 'ID',
- 'USER_ID' => '会员ID',
- 'FROM_ID' => '变动前的级别',
- 'TO_ID' => '变动后的级别',
- 'PERIOD_NUM' => '变动时的期数',
- 'CALC_MONTH' => '变动时的结算月',
- 'P_CALC_MONTH' => '表分区标识',
- 'REMARK' => '备注',
- 'CREATED_AT' => '创建时间',
- ];
- }
- }
|