DeductReconsume.php 1.2 KB

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