mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Added database migration for new entities.
This commit is contained in:
parent
7826e3d2ad
commit
408d98c6e1
25 changed files with 246 additions and 99 deletions
|
@ -32,7 +32,9 @@
|
|||
namespace App\Entity\Parts;
|
||||
|
||||
|
||||
use App\Entity\Base\DBElement;
|
||||
use App\Entity\Base\NamedDBElement;
|
||||
use App\Entity\Base\TimestampTrait;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Symfony\Component\Validator\Constraints as Assert;
|
||||
|
||||
|
@ -42,10 +44,13 @@ use Symfony\Component\Validator\Constraints as Assert;
|
|||
* @package App\Entity\Parts
|
||||
* @ORM\Entity()
|
||||
* @ORM\Table(name="part_lots")
|
||||
* @ORM\HasLifecycleCallbacks()
|
||||
*/
|
||||
class PartLot extends NamedDBElement
|
||||
class PartLot extends DBElement
|
||||
{
|
||||
|
||||
use TimestampTrait;
|
||||
|
||||
/**
|
||||
* @var string A short description about this lot, shown in table
|
||||
* @ORM\Column(type="text")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue