OriginDecPv.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%ORIGIN_DEC_PV}}".
  6. *
  7. * @property string $ID
  8. * @property string $USER_ID 会员ID
  9. * @property int $TYPE 报单类型
  10. * @property string $INSERT_USER_ID 首购会员ID
  11. * @property string $DEC_AMOUNT 报单金额
  12. * @property string $DEC_PV 报单PV
  13. * @property int $PERIOD_NUM 报单期数
  14. * @property int $STATUS 状态
  15. * @property int $CREATED_AT 创建时间
  16. */
  17. class OriginDecPv extends \common\components\ActiveRecord
  18. {
  19. /**
  20. * @inheritdoc
  21. */
  22. public static function tableName()
  23. {
  24. return '{{%ORIGIN_DEC_PV}}';
  25. }
  26. /**
  27. * @inheritdoc
  28. */
  29. public function rules()
  30. {
  31. return [
  32. [['USER_ID', 'DEC_PV', 'ACTION_TYPE'], 'required'],
  33. [['ID'], 'unique'],
  34. ];
  35. }
  36. /**
  37. * @inheritdoc
  38. */
  39. public function attributeLabels()
  40. {
  41. return [
  42. 'ID' => 'ID',
  43. 'DEC_PV' => '报单PV值',
  44. 'ACTION_TYPE' => '操作类型默认0无操作 1为增加 2为减少',
  45. ];
  46. }
  47. }