ImportScore.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%IMPORT_SCORE}}".
  6. *
  7. * @property string $ID ID
  8. * @property string $USER_ID 会员ID
  9. * @property string $USER_NAME 会员编号
  10. * @property string $REAL_NAME
  11. * @property string $LEVEL_NAME
  12. * @property string $EMP_LEVEL_NAME
  13. * @property string $BONUS_TOTAL
  14. * @property string $ORI_BONUS_TOTAL
  15. * @property string $BASE_SCORE 基础分数
  16. * @property string $LEVEL_SCORE 级别分数
  17. * @property string $UPGRADE_SCORE 升级分数
  18. * @property string $TOTAL_SCORE 总分数
  19. */
  20. class ImportScore extends \common\components\ActiveRecord
  21. {
  22. /**
  23. * {@inheritdoc}
  24. */
  25. public static function tableName()
  26. {
  27. return '{{%IMPORT_SCORE}}';
  28. }
  29. /**
  30. * {@inheritdoc}
  31. */
  32. public function rules()
  33. {
  34. return [
  35. [['ID', 'USER_ID', 'USER_NAME', 'REAL_NAME', 'LEVEL_NAME', 'EMP_LEVEL_NAME'], 'required'],
  36. [['BONUS_TOTAL', 'ORI_BONUS_TOTAL', 'BASE_SCORE', 'LEVEL_SCORE', 'UPGRADE_SCORE', 'TOTAL_SCORE'], 'number'],
  37. [['ID', 'USER_ID', 'USER_NAME', 'REAL_NAME', 'LEVEL_NAME', 'EMP_LEVEL_NAME'], 'string', 'max' => 32],
  38. [['ID'], 'unique'],
  39. ];
  40. }
  41. /**
  42. * {@inheritdoc}
  43. */
  44. public function attributeLabels()
  45. {
  46. return [
  47. 'ID' => 'ID',
  48. 'USER_ID' => '会员ID',
  49. 'USER_NAME' => '会员编号',
  50. 'REAL_NAME' => 'Real Name',
  51. 'LEVEL_NAME' => 'Level Name',
  52. 'EMP_LEVEL_NAME' => 'Emp Level Name',
  53. 'BONUS_TOTAL' => 'Bonus Total',
  54. 'ORI_BONUS_TOTAL' => 'Ori Bonus Total',
  55. 'BASE_SCORE' => '基础分数',
  56. 'LEVEL_SCORE' => '级别分数',
  57. 'UPGRADE_SCORE' => '升级分数',
  58. 'TOTAL_SCORE' => '总分数',
  59. ];
  60. }
  61. }