[ENTITY][Actor] Set default null values
This commit is contained in:
parent
d37f38a1ea
commit
4df80be095
@ -60,16 +60,16 @@ class Actor extends Entity
|
|||||||
// @codeCoverageIgnoreStart
|
// @codeCoverageIgnoreStart
|
||||||
private int $id;
|
private int $id;
|
||||||
private string $nickname;
|
private string $nickname;
|
||||||
private ?string $fullname;
|
private ?string $fullname = null;
|
||||||
private int $roles;
|
private int $roles;
|
||||||
private int $type;
|
private int $type;
|
||||||
private ?string $homepage;
|
private ?string $homepage = null;
|
||||||
private ?string $bio;
|
private ?string $bio = null;
|
||||||
private ?string $location;
|
private ?string $location = null;
|
||||||
private ?float $lat;
|
private ?float $lat = null;
|
||||||
private ?float $lon;
|
private ?float $lon = null;
|
||||||
private ?int $location_id;
|
private ?int $location_id = null;
|
||||||
private ?int $location_service;
|
private ?int $location_service = null;
|
||||||
private bool $is_local;
|
private bool $is_local;
|
||||||
private \DateTimeInterface $created;
|
private \DateTimeInterface $created;
|
||||||
private \DateTimeInterface $modified;
|
private \DateTimeInterface $modified;
|
||||||
@ -596,16 +596,16 @@ class Actor extends Entity
|
|||||||
'fields' => [
|
'fields' => [
|
||||||
'id' => ['type' => 'serial', 'not null' => true, 'description' => 'unique identifier'],
|
'id' => ['type' => 'serial', 'not null' => true, 'description' => 'unique identifier'],
|
||||||
'nickname' => ['type' => 'varchar', 'length' => 64, 'not null' => true, 'description' => 'nickname or username'],
|
'nickname' => ['type' => 'varchar', 'length' => 64, 'not null' => true, 'description' => 'nickname or username'],
|
||||||
'fullname' => ['type' => 'text', 'description' => 'display name'],
|
'fullname' => ['type' => 'text', 'description' => 'display name', 'default' => null],
|
||||||
'roles' => ['type' => 'int', 'not null' => true, 'description' => 'Bitmap of permissions this actor has'],
|
'roles' => ['type' => 'int', 'not null' => true, 'description' => 'Bitmap of permissions this actor has'],
|
||||||
'type' => ['type' => 'int', 'not null' => true, 'description' => 'The type of actor (person, group, bot, etc)'],
|
'type' => ['type' => 'int', 'not null' => true, 'description' => 'The type of actor (person, group, bot, etc)'],
|
||||||
'homepage' => ['type' => 'text', 'description' => 'identifying URL'],
|
'homepage' => ['type' => 'text', 'description' => 'identifying URL', 'default' => null],
|
||||||
'bio' => ['type' => 'text', 'description' => 'descriptive biography'],
|
'bio' => ['type' => 'text', 'description' => 'descriptive biography', 'default' => null],
|
||||||
'location' => ['type' => 'text', 'description' => 'physical location'],
|
'location' => ['type' => 'text', 'description' => 'physical location', 'default' => null],
|
||||||
'lat' => ['type' => 'numeric', 'precision' => 10, 'scale' => 7, 'description' => 'latitude'],
|
'lat' => ['type' => 'numeric', 'precision' => 10, 'scale' => 7, 'description' => 'latitude', 'default' => null],
|
||||||
'lon' => ['type' => 'numeric', 'precision' => 10, 'scale' => 7, 'description' => 'longitude'],
|
'lon' => ['type' => 'numeric', 'precision' => 10, 'scale' => 7, 'description' => 'longitude', 'default' => null],
|
||||||
'location_id' => ['type' => 'int', 'description' => 'location id if possible'],
|
'location_id' => ['type' => 'int', 'description' => 'location id if possible', 'default' => null],
|
||||||
'location_service' => ['type' => 'int', 'description' => 'service used to obtain location id'],
|
'location_service' => ['type' => 'int', 'description' => 'service used to obtain location id', 'default' => null],
|
||||||
'is_local' => ['type' => 'bool', 'not null' => true, 'description' => 'Does this actor have a LocalUser associated'],
|
'is_local' => ['type' => 'bool', 'not null' => true, 'description' => 'Does this actor have a LocalUser associated'],
|
||||||
'created' => ['type' => 'datetime', 'not null' => true, 'default' => 'CURRENT_TIMESTAMP', 'description' => 'date this record was created'],
|
'created' => ['type' => 'datetime', 'not null' => true, 'default' => 'CURRENT_TIMESTAMP', 'description' => 'date this record was created'],
|
||||||
'modified' => ['type' => 'timestamp', 'not null' => true, 'default' => 'CURRENT_TIMESTAMP', 'description' => 'date this record was modified'],
|
'modified' => ['type' => 'timestamp', 'not null' => true, 'default' => 'CURRENT_TIMESTAMP', 'description' => 'date this record was modified'],
|
||||||
|
Loading…
Reference in New Issue
Block a user