OrderPeriodAdjust.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. namespace common\models;
  3. /**
  4. * This is the model class for table "{{%ORDER_PERIOD_ADJUST}}".
  5. *
  6. * @property string $ID
  7. * @property string $ORDER_SN 订单号
  8. * @property int $ORIGIN_PERIOD 调整前期数
  9. * @property int $MODERN_PERIOD 调整后期数
  10. * @property string $ADMIN_ID 创建人
  11. * @property int $CREATED_AT 创建时间
  12. */
  13. class OrderPeriodAdjust extends \common\components\ActiveRecord
  14. {
  15. /**
  16. * {@inheritdoc}
  17. */
  18. public static function tableName()
  19. {
  20. return '{{%ORDER_PERIOD_ADJUST}}';
  21. }
  22. /**
  23. * {@inheritdoc}
  24. */
  25. public function rules()
  26. {
  27. return [
  28. [['ORDER_SN', 'ORIGIN_PERIOD', 'MODERN_PERIOD'], 'required'],
  29. ];
  30. }
  31. /**
  32. * {@inheritdoc}
  33. */
  34. public function attributeLabels()
  35. {
  36. return [
  37. 'ID' => 'ID',
  38. 'ORDER_SN' => '订单号',
  39. 'ORIGIN_PERIOD' => '调整前期数',
  40. 'MODERN_PERIOD' => '调整后期数',
  41. 'ADMIN_ID' => '创建人',
  42. 'CREATED_AT' => '创建时间',
  43. ];
  44. }
  45. }