UserPerformanceLogs.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. namespace common\models;
  3. /**
  4. * This is the model class for table "{{%USER_PERFORMANCE_LOGS}}".
  5. *
  6. * @property string $ID
  7. * @property string $USER_ID
  8. * @property string $CASH
  9. * @property integer $UPDATED_AT
  10. * @property integer $CLEAR_BY_CLOSED_AT
  11. * @property User $user
  12. */
  13. class UserPerformanceLogs extends \common\components\ActiveRecord
  14. {
  15. /**
  16. * {@inheritdoc}
  17. */
  18. public static function tableName()
  19. {
  20. return '{{%USER_PERFORMANCE_LOGS}}';
  21. }
  22. /**
  23. * @inheritdoc
  24. */
  25. public function rules()
  26. {
  27. return [
  28. [['USER_PERFORMANCE_ID'], 'required'],
  29. [['AMOUNTS'], 'number'],
  30. [['UPDATED_AT', 'PERIOD_NUM'], 'integer'],
  31. [['ID','USER_ID'], 'string', 'max' => 32],
  32. ];
  33. }
  34. /**
  35. * @inheritdoc
  36. */
  37. public function attributeLabels()
  38. {
  39. return [
  40. 'ID' => 'ID',
  41. 'USER_ID' => '用户id',
  42. 'AMOUNTS' => '消耗金额',
  43. 'CREATED_AT' => '修改时间',
  44. ];
  45. }
  46. }