jumpserver/jlog/models.py

15 lines
516 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)
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