PrintHistory.php 822 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. namespace app\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%print_history}}".
  6. */
  7. class PrintHistory extends \yii\db\ActiveRecord
  8. {
  9. /**
  10. * @inheritdoc
  11. */
  12. public static function tableName()
  13. {
  14. return '{{%print_history}}';
  15. }
  16. /**
  17. * @inheritdoc
  18. */
  19. public function rules()
  20. {
  21. return [
  22. [['store_id', 'data', 'user_name', 'num', 'created_at','mch_id'], 'required'],
  23. ];
  24. }
  25. /**
  26. * @inheritdoc
  27. */
  28. public function attributeLabels()
  29. {
  30. return [
  31. 'id' => 'ID',
  32. 'store_id' => 'Store ID',
  33. 'data' => '打印订单',
  34. 'user_name' => '打印用户',
  35. 'num' => '打印订单数',
  36. 'created_at' => '创建时间',
  37. ];
  38. }
  39. }