Compare commits

..

No commits in common. "4664a8779a59a4abe766123de22a8e14fa0adf48" and "cef536caa5037b375c2e676a8a31f466b506a143" have entirely different histories.

View File

@ -4,53 +4,81 @@ namespace Ulmus\User\Entity;
use Ulmus\Entity\Field\Datetime; use Ulmus\Entity\Field\Datetime;
use Ulmus\Attribute\Property\Field;
class User { class User {
#[Field\Id(readonly: true)] /**
* @Id('readonly' => true)
*/
public int $id; public int $id;
#[Field(length: 35, name: "first_name")] /**
* @Field("length" => 35, "name" => "first_name")
*/
public ? string $firstName; public ? string $firstName;
#[Field(length: 35, name: "last_name")] /**
* @Field("length" => 35, "name" => "last_name")
*/
public ? string $lastName; public ? string $lastName;
#[Field(length: 150)] /**
* @Field("length" => 255)
*/
public string $email; public string $email;
#[Field(length: 150)] /**
* @Field("length" => 150)
*/
public ? string $address; public ? string $address;
#[Field(length: 15, name: "zip_code")] /**
* @Field("length" => 15, 'name' => "zip_code")
*/
public ? string $zipCode; public ? string $zipCode;
#[Field(length: 45)] /**
* @Field("length" => 45)
*/
public ? string $province; public ? string $province;
#[Field(length: 3)] /**
* @Field("length" => 3)
*/
public ? string $country; public ? string $country;
#[Field(length: 15)] /**
* @Field("length" => 15)
*/
public ? string $phone; public ? string $phone;
#[Field(length: 15)] /**
* @Field("length" => 15)
*/
public ? string $ext; public ? string $ext;
#[Field(length: 15)] /**
* @Field("length" => 15)
*/
public ? string $mobile; public ? string $mobile;
#[Field(length: 255)] /**
* @Field("length" => 255)
*/
public ? string $username; public ? string $username;
#[Field] /**
* @Field
*/
public string $password; public string $password;
#[Field\UpdatedAt(readonly: true, name: "updated_at")] /**
* @UpdatedAt('readonly' => true, 'name' => "updated_at")
*/
public ? Datetime $updatedAt; public ? Datetime $updatedAt;
#[Field\CreatedAt(readonly: true, name: "created_at")] /**
* @CreatedAt('readonly' => true, 'name' => "created_at")
*/
public Datetime $createdAt; public Datetime $createdAt;
public bool $logged = false; public bool $logged = false;