collection-crud/src/Entity/Camera.php

23 lines
576 B
PHP

<?php declare(strict_types=1);
namespace App\Entity;
use App\Repository\CameraRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* Camera
*/
#[ORM\Table(name: 'camera', schema: 'camera')]
#[ORM\Index(columns: ['type_id'], name: 'IDX_747C826FC54C8C93')]
#[ORM\Entity(repositoryClass: CameraRepository::class)]
class Camera
{
use CameraTrait;
#[ORM\Column(name: 'id', type: 'integer', nullable: false)]
#[ORM\Id]
#[ORM\GeneratedValue(strategy: 'IDENTITY')]
#[ORM\SequenceGenerator(sequenceName: 'camera__id_seq', allocationSize: 1, initialValue: 1)]
private int $id;
}