MchVisitLog.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use Yii;
  9. /**
  10. * This is the model class for table "{{%mch_visit_log}}".
  11. *
  12. * @property string $id
  13. * @property integer $user_id
  14. * @property integer $mch_id
  15. * @property integer $addtime
  16. * @property string $visit_date
  17. */
  18. class MchVisitLog extends \yii\db\ActiveRecord
  19. {
  20. /**
  21. * @inheritdoc
  22. */
  23. public static function tableName()
  24. {
  25. return '{{%mch_visit_log}}';
  26. }
  27. /**
  28. * @inheritdoc
  29. */
  30. public function rules()
  31. {
  32. return [
  33. [['user_id', 'mch_id', 'addtime', 'visit_date'], 'required'],
  34. [['user_id', 'mch_id', 'addtime'], 'integer'],
  35. [['visit_date'], 'safe'],
  36. ];
  37. }
  38. /**
  39. * @inheritdoc
  40. */
  41. public function attributeLabels()
  42. {
  43. return [
  44. 'id' => 'ID',
  45. 'user_id' => 'User ID',
  46. 'mch_id' => 'Mch ID',
  47. 'addtime' => 'Addtime',
  48. 'visit_date' => 'Visit Date',
  49. ];
  50. }
  51. }