EmployLevelLog.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%EMPLOY_LEVEL_LOG}}".
  6. *
  7. * @property string $ID
  8. * @property string $USER_ID 会员ID
  9. * @property string $FROM_ID 变动前的级别
  10. * @property string $TO_ID 变动后的级别
  11. * @property int $PERIOD_NUM 变动时的期数
  12. * @property int $CALC_MONTH 变动时的结算月
  13. * @property string $P_CALC_MONTH 表分区标识
  14. * @property string $REMARK 备注
  15. * @property int $CREATED_AT 创建时间
  16. */
  17. class EmployLevelLog extends \common\components\ActiveRecord
  18. {
  19. /**
  20. * {@inheritdoc}
  21. */
  22. public static function tableName()
  23. {
  24. return '{{%EMPLOY_LEVEL_LOG}}';
  25. }
  26. /**
  27. * {@inheritdoc}
  28. */
  29. public function rules()
  30. {
  31. return [
  32. [['USER_ID', 'FROM_ID', 'TO_ID', 'PERIOD_NUM', 'CALC_MONTH', 'P_CALC_MONTH', 'CREATED_AT'], 'required'],
  33. [['PERIOD_NUM', 'CALC_MONTH', 'CREATED_AT'], 'integer'],
  34. [['ID', 'USER_ID', 'FROM_ID', 'TO_ID'], 'string', 'max' => 32],
  35. [['P_CALC_MONTH'], 'safe'],
  36. [['REMARK'], 'string', 'max' => 4000],
  37. [['ID'], 'unique'],
  38. ];
  39. }
  40. /**
  41. * {@inheritdoc}
  42. */
  43. public function attributeLabels()
  44. {
  45. return [
  46. 'ID' => 'ID',
  47. 'USER_ID' => '会员ID',
  48. 'FROM_ID' => '变动前的级别',
  49. 'TO_ID' => '变动后的级别',
  50. 'PERIOD_NUM' => '变动时的期数',
  51. 'CALC_MONTH' => '变动时的结算月',
  52. 'P_CALC_MONTH' => '表分区标识',
  53. 'REMARK' => '备注',
  54. 'CREATED_AT' => '创建时间',
  55. ];
  56. }
  57. }