UserPerfUpdate.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%USER_PERF_UPDATE}}".
  6. *
  7. * @property string $USER_ID 会员ID
  8. * @property int $PERIOD_NUM 更新时的期数
  9. * @property string $P_CALC_MONTH 更新时的结算月
  10. * @property int $CREATED_AT 创建时间
  11. */
  12. class UserPerfUpdate extends \common\components\ActiveRecord
  13. {
  14. /**
  15. * @inheritdoc
  16. */
  17. public static function tableName()
  18. {
  19. return '{{%USER_PERF_UPDATE}}';
  20. }
  21. /**
  22. * @inheritdoc
  23. */
  24. public function rules()
  25. {
  26. return [
  27. [['USER_ID', 'P_CALC_MONTH', 'CREATED_AT'], 'required'],
  28. [['PERIOD_NUM', 'CREATED_AT'], 'integer'],
  29. [['USER_ID'], 'string', 'max' => 32],
  30. [['USER_ID'], 'unique'],
  31. ];
  32. }
  33. /**
  34. * @inheritdoc
  35. */
  36. public function attributeLabels()
  37. {
  38. return [
  39. 'USER_ID' => '会员ID',
  40. 'PERIOD_NUM' => '更新时的期数',
  41. 'P_CALC_MONTH' => '更新时的结算月',
  42. 'CREATED_AT' => '创建时间',
  43. ];
  44. }
  45. }