mirror of https://github.com/jumpserver/jumpserver
17 lines
802 B
Python
17 lines
802 B
Python
|
import uuid
|
||
|
|
||
|
from django.db import models
|
||
|
from django.utils.translation import ugettext_lazy as _
|
||
|
|
||
|
|
||
|
class FTPLog(models.Model):
|
||
|
id = models.UUIDField(default=uuid.uuid4, primary_key=True)
|
||
|
user = models.CharField(max_length=128, verbose_name=_('User'))
|
||
|
remote_addr = models.CharField(max_length=15, verbose_name=_("Remote addr"), blank=True, null=True)
|
||
|
asset = models.CharField(max_length=1024, verbose_name=_("Asset"))
|
||
|
system_user = models.CharField(max_length=128, verbose_name=_("System user"))
|
||
|
operate = models.CharField(max_length=16, verbose_name=_("Operate"))
|
||
|
filename = models.CharField(max_length=1024, verbose_name=_("Filename"))
|
||
|
is_success = models.BooleanField(default=True, verbose_name=_("Success"))
|
||
|
date_start = models.DateTimeField(auto_now_add=True)
|