jumpserver/jlog/models.py

17 lines
613 B
Python
Raw Normal View History

2014-12-26 13:57:10 +00:00
from django.db import models
2014-12-26 14:54:37 +00:00
class Log(models.Model):
2015-02-09 11:02:25 +00:00
user = models.CharField(max_length=20, null=True)
host = models.CharField(max_length=20, null=True)
2015-03-17 05:56:43 +00:00
remote_ip = models.CharField(max_length=100)
2015-03-19 10:32:10 +00:00
dept_name = models.CharField(max_length=20)
2014-12-26 14:54:37 +00:00
log_path = models.CharField(max_length=100)
2015-01-25 14:20:07 +00:00
start_time = models.DateTimeField(null=True)
2014-12-26 14:54:37 +00:00
pid = models.IntegerField(max_length=10)
is_finished = models.BooleanField(default=False)
2015-02-09 11:02:25 +00:00
log_finished = models.BooleanField(default=False)
2015-01-25 14:20:07 +00:00
end_time = models.DateTimeField(null=True)
2014-12-26 14:54:37 +00:00
def __unicode__(self):
return self.log_path