<?php

namespace NPS\Entity;

use NPS\Entity\UserEntity;
use NPS\Entity\FileEntity;
use Doctrine\ORM\Mapping as ORM;

/**
 * Error reporting query entity
 * @author Lukas Korinek
 * @ORM\Entity
 */
class ErrorReportingQueryEntity extends AbstractUserQueryEntity
{
    use TCreate;

    /**
     * @ORM\Column(type="string", name="email", length=200, nullable=true)
     * @var string
     */
    public $email;

    /**
     * @ORM\ManyToOne(targetEntity="UserEntity")
     * @ORM\JoinColumn(name="user_id", referencedColumnName="id", nullable=true)
     * @var UserEntity
     */
    public $user;

    /**
     * @ORM\ManyToOne(targetEntity="FileEntity")
     * @ORM\JoinColumn(name="file_id", referencedColumnName="id", nullable=true)
     * @var File
     */
    public $attachment;

    /**
     * @ORM\Column(type="text", name="user_history", nullable=false)
     * @var string
     */
    public $history;
    
}

