- Begin work on firewall
This commit is contained in:
1 parent
e78ee3a458
commit
55f5071475
4 files changed
+28
-6
No files matched your search
@@ -4,10 +4,13 @@ namespace Lean\Console\Entity\Firewall;
|
||||
|
||||
use Ulmus\Attribute\Obj\Table;
|
||||
use Ulmus\Attribute\Property\Field;
|
||||
use Ulmus\Entity\Field\Datetime;
|
||||
|
||||
#[Table(adapter: "lean.console")]
|
||||
class Connection
|
||||
#[Table(name:"firewall_connections", adapter: "lean.console")]
|
||||
class Connection implements \JsonSerializable
|
||||
{
|
||||
use \Ulmus\EntityTrait;
|
||||
|
||||
#[Field\Id]
|
||||
public string $id;
|
||||
|
||||
@@ -18,7 +21,11 @@ class Connection
|
||||
public string $ipv6;
|
||||
|
||||
#[Field]
|
||||
public int $connectionTry = 0;
|
||||
public bool $success;
|
||||
|
||||
#[Field(length: 255)]
|
||||
public ? string $errorMessage;
|
||||
|
||||
#[Field\Datetime]
|
||||
public Datetime $createdAt;
|
||||
}
|
||||
Reference in new issue
Block a user