- Migrated Entity's file into attributes
This commit is contained in:
1 parent
fa8adcace1
commit
43880eb428
4 files changed
+77
-191
No files matched your search
@@ -4,45 +4,32 @@ namespace Ulmus\Entity\Sqlite;
|
||||
|
||||
use Ulmus\EntityCollection;
|
||||
|
||||
/**
|
||||
* @Table
|
||||
*/
|
||||
use Ulmus\{Attribute\Obj\Table};
|
||||
use Ulmus\Attribute\Property\{Field, Filter, FilterJoin, Relation, Join, Virtual, Where};
|
||||
|
||||
#[Table]
|
||||
class Column
|
||||
{
|
||||
use \Ulmus\EntityTrait;
|
||||
|
||||
/**
|
||||
* @Id
|
||||
*/
|
||||
#[Id]
|
||||
public int $cid;
|
||||
|
||||
/**
|
||||
* @Field
|
||||
*/
|
||||
#[Field]
|
||||
public string $type;
|
||||
|
||||
/**
|
||||
* @Field
|
||||
*/
|
||||
#[Field]
|
||||
public string $name;
|
||||
|
||||
/**
|
||||
* @Virtual
|
||||
*/
|
||||
#[Virtual]
|
||||
public string $tableName;
|
||||
|
||||
/**
|
||||
* @Field('name' => "notnull")
|
||||
*/
|
||||
#[Field(name: "notnull")]
|
||||
public bool $notNull;
|
||||
|
||||
/**
|
||||
* @Field('name' => 'dflt_value')
|
||||
*/
|
||||
#[Field(name: "dflt_value")]
|
||||
public ? string $defaultValue;
|
||||
|
||||
/**
|
||||
* @Field('name' => "pk")
|
||||
*/
|
||||
#[Field(name: "pk")]
|
||||
public bool $primaryKey;
|
||||
}
|
||||
Reference in new issue
Block a user