Test.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%TEST}}".
  6. *
  7. * @property string $ID
  8. * @property string $USER_ID 会员ID
  9. * @property string $PV_PERSON_LS 个人零售隐藏分区
  10. * @property string $PV_PCS_ZC 个人消费注册单业绩
  11. * @property int $PERIOD_NUM 期数
  12. * @property int $CALC_MONTH 结算月
  13. * @property string $P_DAY 分区表划分
  14. * @property int $CREATED_AT 创建时间
  15. */
  16. class Test extends \common\components\ActiveRecord
  17. {
  18. /**
  19. * @inheritdoc
  20. */
  21. public static function tableName()
  22. {
  23. return '{{%TEST}}';
  24. }
  25. /**
  26. * @inheritdoc
  27. */
  28. public function rules()
  29. {
  30. return [
  31. [['USER_ID', 'PERIOD_NUM', 'CALC_MONTH', 'CREATED_AT'], 'required'],
  32. [['PV_PERSON_LS', 'PV_PCS_ZC'], 'number'],
  33. [['PERIOD_NUM', 'CALC_MONTH', 'CREATED_AT'], 'integer'],
  34. [['ID', 'USER_ID'], 'string', 'max' => 32],
  35. [['ID'], 'unique'],
  36. ];
  37. }
  38. /**
  39. * @inheritdoc
  40. */
  41. public function attributeLabels()
  42. {
  43. return [
  44. 'ID' => 'ID',
  45. 'USER_ID' => '会员ID',
  46. 'PV_PERSON_LS' => '个人零售隐藏分区',
  47. 'PV_PCS_ZC' => '个人消费注册单业绩',
  48. 'PERIOD_NUM' => '期数',
  49. 'CALC_MONTH' => '结算月',
  50. 'P_DAY' => '分区表划分',
  51. 'CREATED_AT' => '创建时间',
  52. ];
  53. }
  54. }