DeductReconsume.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. namespace common\models;
  3. /**
  4. * This is the model class for table "{{%DEDUCT_RECONSUME}}".
  5. *
  6. * @property string $ID
  7. * @property int $USER_ID 用户ID
  8. * @property int $CALC_MONTH 所在结算月
  9. * @property int $RECONSUME_POINTS_SUM 此结算月累计已扣除的复消积分
  10. * @property int $CREATED_AT 创建时间
  11. */
  12. class DeductReconsume extends \common\components\ActiveRecord
  13. {
  14. public function init()
  15. {
  16. parent::init();
  17. }
  18. /**
  19. * @inheritdoc
  20. */
  21. public static function tableName()
  22. {
  23. return '{{%DEDUCT_RECONSUME}}';
  24. }
  25. /**
  26. * @inheritdoc
  27. */
  28. public function rules()
  29. {
  30. return [
  31. [['CALC_MONTH', 'USER_ID'], 'required'],
  32. [['CALC_MONTH', 'CREATED_AT'], 'integer'],
  33. [['ID'], 'unique'],
  34. ];
  35. }
  36. /**
  37. * @inheritdoc
  38. */
  39. public function attributeLabels()
  40. {
  41. return [
  42. 'ID' => 'ID',
  43. 'CALC_MONTH' => '所在结算月',
  44. 'RECONSUME_POINTS_SUM' => '此结算月累计已扣除的复消积分',
  45. 'CREATED_AT' => '创建时间',
  46. ];
  47. }
  48. }