LocalDeliveryCourierCommentExt.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. use yii\helpers\Json;
  10. use yii\db\ActiveRecord;
  11. use yii\behaviors\TimestampBehavior;
  12. /**
  13. * This is the model class for table "{{%local_delivery_courier_comment}}".
  14. *
  15. * @property integer $id
  16. * @property integer $comment_id
  17. * @property integer $tag_id
  18. * @property integer $rider_id
  19. * @property integer $is_delete
  20. * @property integer $created_at
  21. * @property integer $updated_at
  22. */
  23. class LocalDeliveryCourierCommentExt extends \yii\db\ActiveRecord
  24. {
  25. const IS_DELETE_YES = 1;//已删除
  26. const IS_DELETE_NO = 0;//未删除
  27. /**
  28. * @inheritdoc
  29. */
  30. public static function tableName()
  31. {
  32. return '{{%local_delivery_courier_comment_ext}}';
  33. }
  34. public function behaviors()
  35. {
  36. return [
  37. [
  38. 'class' => TimestampBehavior::class
  39. ]
  40. ];
  41. }
  42. /**
  43. * @inheritdoc
  44. */
  45. public function rules()
  46. {
  47. return [
  48. [['id', 'comment_id', 'tag_id', 'rider_id', 'is_delete', 'created_at', 'updated_at'], 'integer']
  49. ];
  50. }
  51. /**
  52. * @inheritdoc
  53. */
  54. public function attributeLabels()
  55. {
  56. return [
  57. 'id' => '',
  58. 'comment_id' => '评价id',
  59. 'tag_id' => '标签id',
  60. 'rider_id' => '骑手id',
  61. 'is_delete' => '',
  62. 'created_at' => '创建时间',
  63. 'updated_at' => '修改时间',
  64. ];
  65. }
  66. }