2015-04-20 02:12:11 +00:00
|
|
|
import datetime
|
|
|
|
|
|
|
|
from django.db import models
|
2015-09-10 14:51:42 +00:00
|
|
|
from juser.models import User, UserGroup
|
2015-09-08 16:19:17 +00:00
|
|
|
from jasset.models import Asset, AssetGroup
|
2015-04-20 02:12:11 +00:00
|
|
|
|
|
|
|
|
2015-10-12 01:58:38 +00:00
|
|
|
class PermLog(models.Model):
|
|
|
|
datetime = models.DateTimeField(auto_now_add=True)
|
2015-10-21 12:44:28 +00:00
|
|
|
action = models.CharField(max_length=100, null=True, blank=True, default='')
|
|
|
|
results = models.CharField(max_length=1000, null=True, blank=True, default='')
|
|
|
|
is_success = models.BooleanField(default=False)
|
|
|
|
is_finish = models.BooleanField(default=False)
|
2015-10-24 15:52:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
class SysUser(models.Model):
|
|
|
|
username = models.CharField(max_length=100)
|
|
|
|
password = models.CharField(max_length=100)
|
|
|
|
comment = models.CharField(max_length=100, null=True, blank=True, default='')
|
|
|
|
|
|
|
|
|