diff options
Diffstat (limited to 'src/Model/Vote.php')
-rw-r--r-- | src/Model/Vote.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/Model/Vote.php b/src/Model/Vote.php new file mode 100644 index 0000000..c5415aa --- /dev/null +++ b/src/Model/Vote.php @@ -0,0 +1,30 @@ +<?php + +namespace Elements\Model; + +use Doctrine\DBAL\Schema\Column; +use Doctrine\DBAL\Schema\Table; +use Doctrine\ORM\Mapping\Entity; +use Doctrine\ORM\Mapping\GeneratedValue; +use Doctrine\ORM\Mapping\Id; +use Doctrine\ORM\Mapping\ManyToOne; + +class Vote +{ + #[Id] + #[Column(type: 'integer')] + #[GeneratedValue] + /** + * @Id + * @Column(type="integer") + * @GeneratedValue + */ + public int $id; + + #[Column(type: 'integer')] + /** + * @Column(type="integer") + */ + public int $value; +} + |