mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-30 07:56:05 +00:00
43 lines
885 B
PHP
43 lines
885 B
PHP
<?php
|
|
|
|
namespace tests\unit\testData\Entities;
|
|
|
|
use Espo\ORM\Entity;
|
|
use Espo\ORM\BaseEntity;
|
|
|
|
class Test extends BaseEntity
|
|
{
|
|
public $fields = array(
|
|
'id' => array(
|
|
'type' => Entity::ID,
|
|
),
|
|
'name' => array(
|
|
'type' => Entity::VARCHAR,
|
|
'len' => 255,
|
|
),
|
|
'date' => array(
|
|
'type' => Entity::DATE
|
|
),
|
|
'dateTime' => array(
|
|
'type' => Entity::DATETIME
|
|
),
|
|
'int' => array(
|
|
'type' => Entity::INT
|
|
),
|
|
'float' => array(
|
|
'type' => Entity::FLOAT
|
|
),
|
|
'list' => array(
|
|
'type' => Entity::JSON_ARRAY
|
|
),
|
|
'object' => array(
|
|
'type' => Entity::JSON_OBJECT
|
|
),
|
|
'deleted' => array(
|
|
'type' => Entity::BOOL,
|
|
'default' => 0,
|
|
)
|
|
);
|
|
}
|
|
|