mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
490 B
17 lines
490 B
from django.db import models
|
|
|
|
from juser.models import User
|
|
from jasset.models import Asset
|
|
|
|
|
|
class Log(models.Model):
|
|
user = models.ForeignKey(User)
|
|
asset = models.ForeignKey(Asset)
|
|
log_path = models.CharField(max_length=100)
|
|
start_time = models.IntegerField()
|
|
pid = models.IntegerField(max_length=10)
|
|
is_finished = models.BooleanField(default=False)
|
|
end_time = models.IntegerField(blank=True, null=True)
|
|
|
|
def __unicode__(self):
|
|
return self.log_path |