chore: initial import for test contour

This commit is contained in:
sova-bootstrap
2026-05-27 19:36:32 +03:00
commit 166cdb148e
282 changed files with 84872 additions and 0 deletions
+405
View File
@@ -0,0 +1,405 @@
<?php
namespace App\Entity;
use App\Entity\Behavior\UpdateTimestampTrait;
use App\Repository\DiseaseRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
#[ORM\Entity(repositoryClass: DiseaseRepository::class)]
#[ORM\Table(name: 'disease')]
#[ORM\Index(name: 'idx_disease_region_id', columns: ['region_id'])]
#[ORM\Index(name: 'idx_disease_active', columns: ['active'])]
#[ORM\HasLifecycleCallbacks]
class Disease
{
use UpdateTimestampTrait;
#[Groups(['disease:read'])]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: "IDENTITY")]
#[ORM\Column(type: Types::INTEGER)]
private ?int $id = null;
#[Groups(['disease:read', 'disease:write'])]
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $name = null;
#[Groups(['disease:read', 'disease:write'])]
#[ORM\Column(name: 'preview_picture', type: Types::TEXT, nullable: true)]
private ?string $previewPicture = null;
#[Groups(['disease:read', 'disease:write'])]
#[ORM\Column(type: Types::BOOLEAN, nullable: true)]
private ?bool $active = null;
#[Groups(['disease:read', 'disease:write'])]
#[ORM\Column(name: 'region_id', type: Types::INTEGER, nullable: true)]
private ?int $regionId = null;
#[Groups(['disease:read', 'disease:write'])]
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $alias = null;
#[Groups(['disease:read', 'disease:write'])]
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $anons = null;
#[Groups(['disease:read'])]
#[ORM\Column(name: 'update_at', type: Types::DATETIME_IMMUTABLE, nullable: true)]
private ?\DateTimeInterface $updateAt = null;
#[Groups(['disease:read', 'disease:write'])]
#[ORM\Column(name: 'hide_picture', type: Types::BOOLEAN, nullable: true)]
private ?bool $hidePicture = null;
#[Groups(['disease:read', 'disease:write'])]
#[ORM\Column(name: 'read_time', type: Types::TEXT, nullable: true)]
private ?string $readTime = null;
#[Groups(['disease:read', 'disease:write'])]
#[ORM\Column(name: 'diseases_name', type: Types::TEXT, nullable: true)]
private ?string $diseasesName = null;
#[Groups(['disease:read', 'disease:write'])]
#[ORM\Column(name: 'tags_important', type: 'jsonb', nullable: true)]
private ?array $tagsImportant = null;
#[Groups(['disease:read', 'disease:write'])]
#[ORM\Column(type: 'jsonb', nullable: true)]
private ?array $tags = null;
#[Groups(['disease:read', 'disease:write'])]
#[ORM\Column(name: 'diseases_other_name', type: Types::TEXT, nullable: true)]
private ?string $diseasesOtherName = null;
#[Groups(['disease:read', 'disease:write'])]
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $symptom = null;
#[Groups(['disease:read', 'disease:write'])]
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $staff = null;
#[Groups(['disease:read', 'disease:write'])]
#[ORM\Column(name: 'link_services', type: 'jsonb', nullable: true)]
private ?array $linkServices = null;
#[Groups(['disease:read', 'disease:write'])]
#[ORM\Column(name: 'staff_list', type: 'jsonb', nullable: true)]
private ?array $staffList = null;
#[Groups(['disease:read', 'disease:write'])]
#[ORM\Column(name: 'staff_post', type: 'jsonb', nullable: true)]
private ?array $staffPost = null;
#[Groups(['disease:read', 'disease:write'])]
#[ORM\Column(name: 'staff_post_exclude', type: 'jsonb', nullable: true)]
private ?array $staffPostExclude = null;
#[Groups(['disease:read', 'disease:write'])]
#[ORM\Column(name: 'link_faq', type: 'jsonb', nullable: true)]
private ?array $linkFaq = null;
#[Groups(['disease:read', 'disease:write'])]
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $bibliography = null;
#[Groups(['disease:read', 'disease:write'])]
#[ORM\Column(name: 'staff_check', type: 'jsonb', nullable: true)]
private ?array $staffCheck = null;
#[Groups(['disease:read', 'disease:write'])]
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $content = null;
public function getId(): ?int
{
return $this->id;
}
public function setId(?int $id): static
{
$this->id = $id;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(?string $name): static
{
$this->name = $name;
return $this;
}
public function getPreviewPicture(): ?string
{
return $this->previewPicture;
}
public function setPreviewPicture(?string $previewPicture): static
{
$this->previewPicture = $previewPicture;
return $this;
}
public function getActive(): ?bool
{
return $this->active;
}
public function setActive(?bool $active): static
{
$this->active = $active;
return $this;
}
public function getRegionId(): ?int
{
return $this->regionId;
}
public function setRegionId(?int $regionId): static
{
$this->regionId = $regionId;
return $this;
}
public function getAlias(): ?string
{
return $this->alias;
}
public function setAlias(?string $alias): static
{
$this->alias = $alias;
return $this;
}
public function getAnons(): ?string
{
return $this->anons;
}
public function setAnons(?string $anons): static
{
$this->anons = $anons;
return $this;
}
public function getUpdateAt(): ?\DateTimeInterface
{
return $this->updateAt;
}
public function setUpdateAt(?\DateTimeInterface $updateAt): static
{
$this->updateAt = $updateAt;
return $this;
}
public function getHidePicture(): ?bool
{
return $this->hidePicture;
}
public function setHidePicture(?bool $hidePicture): static
{
$this->hidePicture = $hidePicture;
return $this;
}
public function getReadTime(): ?string
{
return $this->readTime;
}
public function setReadTime(?string $readTime): static
{
$this->readTime = $readTime;
return $this;
}
public function getDiseasesName(): ?string
{
return $this->diseasesName;
}
public function setDiseasesName(?string $diseasesName): static
{
$this->diseasesName = $diseasesName;
return $this;
}
public function getTagsImportant(): ?array
{
return $this->tagsImportant;
}
public function setTagsImportant(?array $tagsImportant): static
{
$this->tagsImportant = $tagsImportant;
return $this;
}
public function getTags(): ?array
{
return $this->tags;
}
public function setTags(?array $tags): static
{
$this->tags = $tags;
return $this;
}
public function getDiseasesOtherName(): ?string
{
return $this->diseasesOtherName;
}
public function setDiseasesOtherName(?string $diseasesOtherName): static
{
$this->diseasesOtherName = $diseasesOtherName;
return $this;
}
public function getSymptom(): ?string
{
return $this->symptom;
}
public function setSymptom(?string $symptom): static
{
$this->symptom = $symptom;
return $this;
}
public function getStaff(): ?string
{
return $this->staff;
}
public function setStaff(?string $staff): static
{
$this->staff = $staff;
return $this;
}
public function getLinkServices(): ?array
{
return $this->linkServices;
}
public function setLinkServices(?array $linkServices): static
{
$this->linkServices = $linkServices;
return $this;
}
public function getStaffList(): ?array
{
return $this->staffList;
}
public function setStaffList(?array $staffList): static
{
$this->staffList = $staffList;
return $this;
}
public function getStaffPost(): ?array
{
return $this->staffPost;
}
public function setStaffPost(?array $staffPost): static
{
$this->staffPost = $staffPost;
return $this;
}
public function getStaffPostExclude(): ?array
{
return $this->staffPostExclude;
}
public function setStaffPostExclude(?array $staffPostExclude): static
{
$this->staffPostExclude = $staffPostExclude;
return $this;
}
public function getLinkFaq(): ?array
{
return $this->linkFaq;
}
public function setLinkFaq(?array $linkFaq): static
{
$this->linkFaq = $linkFaq;
return $this;
}
public function getBibliography(): ?string
{
return $this->bibliography;
}
public function setBibliography(?string $bibliography): static
{
$this->bibliography = $bibliography;
return $this;
}
public function getStaffCheck(): ?array
{
return $this->staffCheck;
}
public function setStaffCheck(?array $staffCheck): static
{
$this->staffCheck = $staffCheck;
return $this;
}
public function getContent(): ?string
{
return $this->content;
}
public function setContent(?string $content): static
{
$this->content = $content;
return $this;
}
}