UserPerfMonthUpdate.php 973 B

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