UserShareLog.php 982 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 "{{%user_share_log}}".
  11. *
  12. * @property integer $id
  13. * @property integer $user_id
  14. * @property integer $parent_id
  15. * @property integer $created_at
  16. */
  17. class UserShareLog extends \yii\db\ActiveRecord
  18. {
  19. /**
  20. * @inheritdoc
  21. */
  22. public static function tableName()
  23. {
  24. return '{{%user_share_log}}';
  25. }
  26. /**
  27. * @inheritdoc
  28. */
  29. public function rules()
  30. {
  31. return [
  32. [['created_at', 'parent_id', 'created_at'], 'integer'],
  33. ];
  34. }
  35. /**
  36. * @inheritdoc
  37. */
  38. public function attributeLabels()
  39. {
  40. return [
  41. 'id' => 'ID',
  42. 'user_id' => '用户id',
  43. 'parent_id' => '分享的上级id',
  44. 'created_at' => '分享时间',
  45. ];
  46. }
  47. }