|
|
# This is an auto-generated Django model module.
|
|
|
# You'll have to do the following manually to clean this up:
|
|
|
# * Rearrange models' order
|
|
|
# * Make sure each model has one field with primary_key=True
|
|
|
# * Make sure each ForeignKey and OneToOneField has `on_delete` set to the desired behavior
|
|
|
# * Remove `managed = False` lines if you wish to allow Django to create, modify, and delete the table
|
|
|
# Feel free to rename the models, but don't rename db_table values or field names.
|
|
|
from django.db import models
|
|
|
|
|
|
|
|
|
class AccountsBloguser(models.Model):
|
|
|
id = models.BigAutoField(primary_key=True)
|
|
|
password = models.CharField(max_length=128)
|
|
|
last_login = models.DateTimeField(blank=True, null=True)
|
|
|
is_superuser = models.IntegerField()
|
|
|
username = models.CharField(unique=True, max_length=150)
|
|
|
first_name = models.CharField(max_length=150)
|
|
|
last_name = models.CharField(max_length=150)
|
|
|
email = models.CharField(max_length=254)
|
|
|
is_staff = models.IntegerField()
|
|
|
is_active = models.IntegerField()
|
|
|
date_joined = models.DateTimeField()
|
|
|
nickname = models.CharField(max_length=100)
|
|
|
source = models.CharField(max_length=100)
|
|
|
creation_time = models.DateTimeField()
|
|
|
last_modify_time = models.DateTimeField()
|
|
|
|
|
|
class Meta:
|
|
|
managed = False
|
|
|
db_table = 'accounts_bloguser'
|
|
|
|
|
|
|
|
|
class AccountsBloguserGroups(models.Model):
|
|
|
id = models.BigAutoField(primary_key=True)
|
|
|
bloguser = models.ForeignKey(AccountsBloguser, models.DO_NOTHING)
|
|
|
group = models.ForeignKey('AuthGroup', models.DO_NOTHING)
|
|
|
|
|
|
class Meta:
|
|
|
managed = False
|
|
|
db_table = 'accounts_bloguser_groups'
|
|
|
unique_together = (('bloguser', 'group'),)
|
|
|
|
|
|
|
|
|
class AccountsBloguserUserPermissions(models.Model):
|
|
|
id = models.BigAutoField(primary_key=True)
|
|
|
bloguser = models.ForeignKey(AccountsBloguser, models.DO_NOTHING)
|
|
|
permission = models.ForeignKey('AuthPermission', models.DO_NOTHING)
|
|
|
|
|
|
class Meta:
|
|
|
managed = False
|
|
|
db_table = 'accounts_bloguser_user_permissions'
|
|
|
unique_together = (('bloguser', 'permission'),)
|
|
|
|
|
|
|
|
|
class AuthGroup(models.Model):
|
|
|
name = models.CharField(unique=True, max_length=150)
|
|
|
|
|
|
class Meta:
|
|
|
managed = False
|
|
|
db_table = 'auth_group'
|
|
|
|
|
|
|
|
|
class AuthGroupPermissions(models.Model):
|
|
|
id = models.BigAutoField(primary_key=True)
|
|
|
group = models.ForeignKey(AuthGroup, models.DO_NOTHING)
|
|
|
permission = models.ForeignKey('AuthPermission', models.DO_NOTHING)
|
|
|
|
|
|
class Meta:
|
|
|
managed = False
|
|
|
db_table = 'auth_group_permissions'
|
|
|
unique_together = (('group', 'permission'),)
|
|
|
|
|
|
|
|
|
class AuthPermission(models.Model):
|
|
|
name = models.CharField(max_length=255)
|
|
|
content_type = models.ForeignKey('DjangoContentType', models.DO_NOTHING)
|
|
|
codename = models.CharField(max_length=100)
|
|
|
|
|
|
class Meta:
|
|
|
managed = False
|
|
|
db_table = 'auth_permission'
|
|
|
unique_together = (('content_type', 'codename'),)
|
|
|
|
|
|
|
|
|
class BlogArticle(models.Model):
|
|
|
title = models.CharField(unique=True, max_length=200)
|
|
|
body = models.TextField()
|
|
|
pub_time = models.DateTimeField()
|
|
|
status = models.CharField(max_length=1)
|
|
|
comment_status = models.CharField(max_length=1)
|
|
|
type = models.CharField(max_length=1)
|
|
|
views = models.PositiveIntegerField()
|
|
|
article_order = models.IntegerField()
|
|
|
show_toc = models.IntegerField()
|
|
|
author = models.ForeignKey(AccountsBloguser, models.DO_NOTHING)
|
|
|
category = models.ForeignKey('BlogCategory', models.DO_NOTHING)
|
|
|
creation_time = models.DateTimeField()
|
|
|
last_modify_time = models.DateTimeField()
|
|
|
|
|
|
class Meta:
|
|
|
managed = False
|
|
|
db_table = 'blog_article'
|
|
|
|
|
|
|
|
|
class BlogArticleTags(models.Model):
|
|
|
id = models.BigAutoField(primary_key=True)
|
|
|
article = models.ForeignKey(BlogArticle, models.DO_NOTHING)
|
|
|
tag = models.ForeignKey('BlogTag', models.DO_NOTHING)
|
|
|
|
|
|
class Meta:
|
|
|
managed = False
|
|
|
db_table = 'blog_article_tags'
|
|
|
unique_together = (('article', 'tag'),)
|
|
|
|
|
|
|
|
|
class BlogBlogsettings(models.Model):
|
|
|
id = models.BigAutoField(primary_key=True)
|
|
|
site_name = models.CharField(max_length=200)
|
|
|
site_description = models.TextField()
|
|
|
site_seo_description = models.TextField()
|
|
|
site_keywords = models.TextField()
|
|
|
article_sub_length = models.IntegerField()
|
|
|
sidebar_article_count = models.IntegerField()
|
|
|
sidebar_comment_count = models.IntegerField()
|
|
|
article_comment_count = models.IntegerField()
|
|
|
show_google_adsense = models.IntegerField()
|
|
|
google_adsense_codes = models.TextField(blank=True, null=True)
|
|
|
open_site_comment = models.IntegerField()
|
|
|
beian_code = models.CharField(max_length=2000, blank=True, null=True)
|
|
|
analytics_code = models.TextField()
|
|
|
show_gongan_code = models.IntegerField()
|
|
|
gongan_beiancode = models.TextField(blank=True, null=True)
|
|
|
global_footer = models.TextField(blank=True, null=True)
|
|
|
global_header = models.TextField(blank=True, null=True)
|
|
|
comment_need_review = models.IntegerField()
|
|
|
|
|
|
class Meta:
|
|
|
managed = False
|
|
|
db_table = 'blog_blogsettings'
|
|
|
|
|
|
|
|
|
class BlogCategory(models.Model):
|
|
|
name = models.CharField(unique=True, max_length=30)
|
|
|
slug = models.CharField(max_length=60)
|
|
|
index = models.IntegerField()
|
|
|
parent_category = models.ForeignKey('self', models.DO_NOTHING, blank=True, null=True)
|
|
|
creation_time = models.DateTimeField()
|
|
|
last_modify_time = models.DateTimeField()
|
|
|
|
|
|
class Meta:
|
|
|
managed = False
|
|
|
db_table = 'blog_category'
|
|
|
|
|
|
|
|
|
class BlogLinks(models.Model):
|
|
|
id = models.BigAutoField(primary_key=True)
|
|
|
name = models.CharField(unique=True, max_length=30)
|
|
|
link = models.CharField(max_length=200)
|
|
|
sequence = models.IntegerField(unique=True)
|
|
|
is_enable = models.IntegerField()
|
|
|
show_type = models.CharField(max_length=1)
|
|
|
last_mod_time = models.DateTimeField()
|
|
|
creation_time = models.DateTimeField()
|
|
|
|
|
|
class Meta:
|
|
|
managed = False
|
|
|
db_table = 'blog_links'
|
|
|
|
|
|
|
|
|
class BlogSidebar(models.Model):
|
|
|
id = models.BigAutoField(primary_key=True)
|
|
|
name = models.CharField(max_length=100)
|
|
|
content = models.TextField()
|
|
|
sequence = models.IntegerField(unique=True)
|
|
|
is_enable = models.IntegerField()
|
|
|
last_mod_time = models.DateTimeField()
|
|
|
creation_time = models.DateTimeField()
|
|
|
|
|
|
class Meta:
|
|
|
managed = False
|
|
|
db_table = 'blog_sidebar'
|
|
|
|
|
|
|
|
|
class BlogTag(models.Model):
|
|
|
name = models.CharField(unique=True, max_length=30)
|
|
|
slug = models.CharField(max_length=60)
|
|
|
creation_time = models.DateTimeField()
|
|
|
last_modify_time = models.DateTimeField()
|
|
|
|
|
|
class Meta:
|
|
|
managed = False
|
|
|
db_table = 'blog_tag'
|
|
|
|
|
|
|
|
|
class CommentsComment(models.Model):
|
|
|
id = models.BigAutoField(primary_key=True)
|
|
|
body = models.TextField()
|
|
|
is_enable = models.IntegerField()
|
|
|
article = models.ForeignKey(BlogArticle, models.DO_NOTHING)
|
|
|
author = models.ForeignKey(AccountsBloguser, models.DO_NOTHING)
|
|
|
parent_comment = models.ForeignKey('self', models.DO_NOTHING, blank=True, null=True)
|
|
|
creation_time = models.DateTimeField()
|
|
|
last_modify_time = models.DateTimeField()
|
|
|
|
|
|
class Meta:
|
|
|
managed = False
|
|
|
db_table = 'comments_comment'
|
|
|
|
|
|
|
|
|
class DjangoAdminLog(models.Model):
|
|
|
action_time = models.DateTimeField()
|
|
|
object_id = models.TextField(blank=True, null=True)
|
|
|
object_repr = models.CharField(max_length=200)
|
|
|
action_flag = models.PositiveSmallIntegerField()
|
|
|
change_message = models.TextField()
|
|
|
content_type = models.ForeignKey('DjangoContentType', models.DO_NOTHING, blank=True, null=True)
|
|
|
user = models.ForeignKey(AccountsBloguser, models.DO_NOTHING)
|
|
|
|
|
|
class Meta:
|
|
|
managed = False
|
|
|
db_table = 'django_admin_log'
|
|
|
|
|
|
|
|
|
class DjangoContentType(models.Model):
|
|
|
app_label = models.CharField(max_length=100)
|
|
|
model = models.CharField(max_length=100)
|
|
|
|
|
|
class Meta:
|
|
|
managed = False
|
|
|
db_table = 'django_content_type'
|
|
|
unique_together = (('app_label', 'model'),)
|
|
|
|
|
|
|
|
|
class DjangoMigrations(models.Model):
|
|
|
id = models.BigAutoField(primary_key=True)
|
|
|
app = models.CharField(max_length=255)
|
|
|
name = models.CharField(max_length=255)
|
|
|
applied = models.DateTimeField()
|
|
|
|
|
|
class Meta:
|
|
|
managed = False
|
|
|
db_table = 'django_migrations'
|
|
|
|
|
|
|
|
|
class DjangoSession(models.Model):
|
|
|
session_key = models.CharField(primary_key=True, max_length=40)
|
|
|
session_data = models.TextField()
|
|
|
expire_date = models.DateTimeField()
|
|
|
|
|
|
class Meta:
|
|
|
managed = False
|
|
|
db_table = 'django_session'
|
|
|
|
|
|
|
|
|
class DjangoSite(models.Model):
|
|
|
domain = models.CharField(unique=True, max_length=100)
|
|
|
name = models.CharField(max_length=50)
|
|
|
|
|
|
class Meta:
|
|
|
managed = False
|
|
|
db_table = 'django_site'
|
|
|
|
|
|
|
|
|
class OauthOauthconfig(models.Model):
|
|
|
id = models.BigAutoField(primary_key=True)
|
|
|
type = models.CharField(max_length=10)
|
|
|
appkey = models.CharField(max_length=200)
|
|
|
appsecret = models.CharField(max_length=200)
|
|
|
callback_url = models.CharField(max_length=200)
|
|
|
is_enable = models.IntegerField()
|
|
|
creation_time = models.DateTimeField()
|
|
|
last_modify_time = models.DateTimeField()
|
|
|
|
|
|
class Meta:
|
|
|
managed = False
|
|
|
db_table = 'oauth_oauthconfig'
|
|
|
|
|
|
|
|
|
class OauthOauthuser(models.Model):
|
|
|
id = models.BigAutoField(primary_key=True)
|
|
|
openid = models.CharField(max_length=50)
|
|
|
nickname = models.CharField(max_length=50)
|
|
|
token = models.CharField(max_length=150, blank=True, null=True)
|
|
|
picture = models.CharField(max_length=350, blank=True, null=True)
|
|
|
type = models.CharField(max_length=50)
|
|
|
email = models.CharField(max_length=50, blank=True, null=True)
|
|
|
metadata = models.TextField(blank=True, null=True)
|
|
|
author = models.ForeignKey(AccountsBloguser, models.DO_NOTHING, blank=True, null=True)
|
|
|
creation_time = models.DateTimeField()
|
|
|
last_modify_time = models.DateTimeField()
|
|
|
|
|
|
class Meta:
|
|
|
managed = False
|
|
|
db_table = 'oauth_oauthuser'
|
|
|
|
|
|
|
|
|
class OwntracksOwntracklog(models.Model):
|
|
|
id = models.BigAutoField(primary_key=True)
|
|
|
tid = models.CharField(max_length=100)
|
|
|
lat = models.FloatField()
|
|
|
lon = models.FloatField()
|
|
|
creation_time = models.DateTimeField()
|
|
|
|
|
|
class Meta:
|
|
|
managed = False
|
|
|
db_table = 'owntracks_owntracklog'
|
|
|
|
|
|
|
|
|
class ServermanagerCommands(models.Model):
|
|
|
id = models.BigAutoField(primary_key=True)
|
|
|
title = models.CharField(max_length=300)
|
|
|
command = models.CharField(max_length=2000)
|
|
|
describe = models.CharField(max_length=300)
|
|
|
creation_time = models.DateTimeField()
|
|
|
last_modify_time = models.DateTimeField()
|
|
|
|
|
|
class Meta:
|
|
|
managed = False
|
|
|
db_table = 'servermanager_commands'
|
|
|
|
|
|
|
|
|
class ServermanagerEmailsendlog(models.Model):
|
|
|
id = models.BigAutoField(primary_key=True)
|
|
|
emailto = models.CharField(max_length=300)
|
|
|
title = models.CharField(max_length=2000)
|
|
|
content = models.TextField()
|
|
|
send_result = models.IntegerField()
|
|
|
creation_time = models.DateTimeField()
|
|
|
|
|
|
class Meta:
|
|
|
managed = False
|
|
|
db_table = 'servermanager_emailsendlog'
|