from tortoise import fields from .system import BaseModel class Client(BaseModel): name = fields.CharField(max_length=50, null=True) host = fields.CharField(max_length=50, null=True) port = fields.IntField(default=22, null=True) user = fields.CharField(max_length=50, null=True) password = fields.CharField(max_length=50, null=True) user_id = fields.IntField(null=True) class Meta: table = "tb_client"