daily pastebin goal
52%
SHARE
TWEET

Untitled

a guest Oct 2nd, 2017 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (enviroment) tzmi@vps401688:~/exampass$ ./manage.py inspectdb
  2. # This is an auto-generated Django model module.
  3. # You'll have to do the following manually to clean this up:
  4. #   * Rearrange models' order
  5. #   * Make sure each model has one field with primary_key=True
  6. #   * Make sure each ForeignKey has `on_delete` set to the desired behavior.
  7. #   * Remove `managed = False` lines if you wish to allow Django to create, modify, and delete the table
  8. # Feel free to rename the models, but don't rename db_table values or field names.
  9. from __future__ import unicode_literals
  10.  
  11. from django.db import models
  12.  
  13.  
  14. class AuthGroup(models.Model):
  15.     name = models.CharField(unique=True, max_length=80)
  16.  
  17.     class Meta:
  18.         managed = False
  19.         db_table = 'auth_group'
  20.  
  21.  
  22. class AuthGroupPermissions(models.Model):
  23.     group = models.ForeignKey(AuthGroup, models.DO_NOTHING)
  24.     permission = models.ForeignKey('AuthPermission', models.DO_NOTHING)
  25.  
  26.     class Meta:
  27.         managed = False
  28.         db_table = 'auth_group_permissions'
  29.         unique_together = (('group', 'permission'),)
  30.  
  31.  
  32. class AuthPermission(models.Model):
  33.     name = models.CharField(max_length=255)
  34.     content_type = models.ForeignKey('DjangoContentType', models.DO_NOTHING)
  35.     codename = models.CharField(max_length=100)
  36.  
  37.     class Meta:
  38.         managed = False
  39.         db_table = 'auth_permission'
  40.         unique_together = (('content_type', 'codename'),)
  41.  
  42.  
  43. class AuthUser(models.Model):
  44.     password = models.CharField(max_length=128)
  45.     last_login = models.DateTimeField(blank=True, null=True)
  46.     is_superuser = models.BooleanField()
  47.     username = models.CharField(unique=True, max_length=150)
  48.     first_name = models.CharField(max_length=30)
  49.     last_name = models.CharField(max_length=30)
  50.     email = models.CharField(max_length=254)
  51.     is_staff = models.BooleanField()
  52.     is_active = models.BooleanField()
  53.     date_joined = models.DateTimeField()
  54.  
  55.     class Meta:
  56.         managed = False
  57.         db_table = 'auth_user'
  58.  
  59.  
  60. class AuthUserGroups(models.Model):
  61.     user = models.ForeignKey(AuthUser, models.DO_NOTHING)
  62.     group = models.ForeignKey(AuthGroup, models.DO_NOTHING)
  63.  
  64.     class Meta:
  65.         managed = False
  66.         db_table = 'auth_user_groups'
  67.         unique_together = (('user', 'group'),)
  68.  
  69.  
  70. class AuthUserUserPermissions(models.Model):
  71.     user = models.ForeignKey(AuthUser, models.DO_NOTHING)
  72.     permission = models.ForeignKey(AuthPermission, models.DO_NOTHING)
  73.  
  74.     class Meta:
  75.         managed = False
  76.         db_table = 'auth_user_user_permissions'
  77.         unique_together = (('user', 'permission'),)
  78.  
  79.  
  80. class CoreCategory(models.Model):
  81.     name = models.CharField(max_length=200, blank=True, null=True)
  82.     description = models.TextField()
  83.     icon_path = models.CharField(max_length=255, blank=True, null=True)
  84.     avg_elo = models.DecimalField(max_digits=20, decimal_places=8, blank=True, null=True)
  85.     parent = models.ForeignKey('self', models.DO_NOTHING, blank=True, null=True)
  86.  
  87.     class Meta:
  88.         managed = False
  89.         db_table = 'core_category'
  90.  
  91.  
  92. class CoreContact(models.Model):
  93.     email = models.CharField(max_length=64, blank=True, null=True)
  94.     topic = models.CharField(max_length=256, blank=True, null=True)
  95.     description = models.TextField(blank=True, null=True)
  96.  
  97.     class Meta:
  98.         managed = False
  99.         db_table = 'core_contact'
  100.  
  101.  
  102. class CoreMeta(models.Model):
  103.     json = models.TextField()  # This field type is a guess.
  104.  
  105.     class Meta:
  106.         managed = False
  107.         db_table = 'core_meta'
  108.  
  109.  
  110. class DjangoAdminLog(models.Model):
  111.     action_time = models.DateTimeField()
  112.     object_id = models.TextField(blank=True, null=True)
  113.     object_repr = models.CharField(max_length=200)
  114.     action_flag = models.SmallIntegerField()
  115.     change_message = models.TextField()
  116.     content_type = models.ForeignKey('DjangoContentType', models.DO_NOTHING, blank=True, null=True)
  117.     user = models.ForeignKey(AuthUser, models.DO_NOTHING)
  118.  
  119.     class Meta:
  120.         managed = False
  121.         db_table = 'django_admin_log'
  122.  
  123.  
  124. class DjangoContentType(models.Model):
  125.     app_label = models.CharField(max_length=100)
  126.     model = models.CharField(max_length=100)
  127.  
  128.     class Meta:
  129.         managed = False
  130.         db_table = 'django_content_type'
  131.         unique_together = (('app_label', 'model'),)
  132.  
  133.  
  134. class DjangoMigrations(models.Model):
  135.     app = models.CharField(max_length=255)
  136.     name = models.CharField(max_length=255)
  137.     applied = models.DateTimeField()
  138.  
  139.     class Meta:
  140.         managed = False
  141.         db_table = 'django_migrations'
  142.  
  143.  
  144. class DjangoSession(models.Model):
  145.     session_key = models.CharField(primary_key=True, max_length=40)
  146.     session_data = models.TextField()
  147.     expire_date = models.DateTimeField()
  148.  
  149.     class Meta:
  150.         managed = False
  151.         db_table = 'django_session'
  152.  
  153.  
  154. class LearnAnswer(models.Model):
  155.     created = models.DateTimeField()
  156.     description = models.TextField()
  157.     is_correct = models.BooleanField()
  158.     is_verified = models.BooleanField()
  159.     owner = models.ForeignKey(AuthUser, models.DO_NOTHING)
  160.  
  161.     class Meta:
  162.         managed = False
  163.         db_table = 'learn_answer'
  164.  
  165.  
  166. class LearnAnswerHelps(models.Model):
  167.     answer = models.ForeignKey(LearnAnswer, models.DO_NOTHING)
  168.     user = models.ForeignKey(AuthUser, models.DO_NOTHING)
  169.  
  170.     class Meta:
  171.         managed = False
  172.         db_table = 'learn_answer_helps'
  173.         unique_together = (('answer', 'user'),)
  174.  
  175.  
  176. class LearnGroup(models.Model):
  177.     created = models.DateTimeField()
  178.     title = models.CharField(max_length=256, blank=True, null=True)
  179.     description = models.TextField(blank=True, null=True)
  180.     owner = models.ForeignKey(AuthUser, models.DO_NOTHING)
  181.  
  182.     class Meta:
  183.         managed = False
  184.         db_table = 'learn_group'
  185.  
  186.  
  187. class LearnGroupCategories(models.Model):
  188.     group = models.ForeignKey(LearnGroup, models.DO_NOTHING)
  189.     category = models.ForeignKey(CoreCategory, models.DO_NOTHING)
  190.  
  191.     class Meta:
  192.         managed = False
  193.         db_table = 'learn_group_categories'
  194.         unique_together = (('group', 'category'),)
  195.  
  196.  
  197. class LearnGroupQuestions(models.Model):
  198.     group = models.ForeignKey(LearnGroup, models.DO_NOTHING)
  199.     question = models.ForeignKey('LearnQuestion', models.DO_NOTHING)
  200.  
  201.     class Meta:
  202.         managed = False
  203.         db_table = 'learn_group_questions'
  204.         unique_together = (('group', 'question'),)
  205.  
  206.  
  207. class LearnLesson(models.Model):
  208.     created = models.DateTimeField()
  209.     description = models.TextField()
  210.     additional = models.TextField()
  211.     title = models.CharField(max_length=256)
  212.     order = models.IntegerField(blank=True, null=True)
  213.     owner = models.ForeignKey(AuthUser, models.DO_NOTHING)
  214.  
  215.     class Meta:
  216.         managed = False
  217.         db_table = 'learn_lesson'
  218.  
  219.  
  220. class LearnLessonCategories(models.Model):
  221.     lesson = models.ForeignKey(LearnLesson, models.DO_NOTHING)
  222.     category = models.ForeignKey(CoreCategory, models.DO_NOTHING)
  223.  
  224.     class Meta:
  225.         managed = False
  226.         db_table = 'learn_lesson_categories'
  227.         unique_together = (('lesson', 'category'),)
  228.  
  229.  
  230. class LearnLessonQuestions(models.Model):
  231.     lesson = models.ForeignKey(LearnLesson, models.DO_NOTHING)
  232.     question = models.ForeignKey('LearnQuestion', models.DO_NOTHING)
  233.  
  234.     class Meta:
  235.         managed = False
  236.         db_table = 'learn_lesson_questions'
  237.         unique_together = (('lesson', 'question'),)
  238.  
  239.  
  240. class LearnQuestion(models.Model):
  241.     created = models.DateTimeField()
  242.     description = models.TextField()
  243.     additional = models.TextField(blank=True, null=True)
  244.     elo = models.DecimalField(max_digits=20, decimal_places=8)
  245.     is_verified = models.BooleanField()
  246.     is_finish = models.BooleanField()
  247.     is_open = models.BooleanField()
  248.     has_answers = models.BooleanField()
  249.     owner = models.ForeignKey(AuthUser, models.DO_NOTHING)
  250.  
  251.     class Meta:
  252.         managed = False
  253.         db_table = 'learn_question'
  254.  
  255.  
  256. class LearnQuestionAnswers(models.Model):
  257.     question = models.ForeignKey(LearnQuestion, models.DO_NOTHING)
  258.     answer = models.ForeignKey(LearnAnswer, models.DO_NOTHING)
  259.  
  260.     class Meta:
  261.         managed = False
  262.         db_table = 'learn_question_answers'
  263.         unique_together = (('question', 'answer'),)
  264.  
  265.  
  266. class LearnQuestionCategories(models.Model):
  267.     question = models.ForeignKey(LearnQuestion, models.DO_NOTHING)
  268.     category = models.ForeignKey(CoreCategory, models.DO_NOTHING)
  269.  
  270.     class Meta:
  271.         managed = False
  272.         db_table = 'learn_question_categories'
  273.         unique_together = (('question', 'category'),)
  274.  
  275.  
  276. class LearnResult(models.Model):
  277.     created = models.DateTimeField()
  278.     correct = models.BooleanField()
  279.     group = models.ForeignKey(LearnGroup, models.DO_NOTHING, blank=True, null=True)
  280.     owner = models.ForeignKey(AuthUser, models.DO_NOTHING)
  281.     question = models.ForeignKey(LearnQuestion, models.DO_NOTHING)
  282.  
  283.     class Meta:
  284.         managed = False
  285.         db_table = 'learn_result'
  286.  
  287.  
  288. class LearnResultAnswers(models.Model):
  289.     result = models.ForeignKey(LearnResult, models.DO_NOTHING)
  290.     answer = models.ForeignKey(LearnAnswer, models.DO_NOTHING)
  291.  
  292.     class Meta:
  293.         managed = False
  294.         db_table = 'learn_result_answers'
  295.         unique_together = (('result', 'answer'),)
  296.  
  297.  
  298. class UsersExtend(models.Model):
  299.     is_admin = models.BooleanField()
  300.     is_active = models.BooleanField()
  301.     type = models.CharField(max_length=255)
  302.     last_visit = models.DateTimeField()
  303.     elo = models.DecimalField(max_digits=20, decimal_places=8)
  304.     avatar = models.CharField(max_length=255, blank=True, null=True)
  305.     info = models.TextField(blank=True, null=True)
  306.     short_info = models.TextField(blank=True, null=True)
  307.     ref = models.IntegerField()
  308.     help = models.IntegerField()
  309.     user = models.ForeignKey(AuthUser, models.DO_NOTHING, unique=True)
  310.  
  311.     class Meta:
  312.         managed = False
  313.         db_table = 'users_extend'
  314.  
  315.  
  316. class UsersExtendFriends(models.Model):
  317.     extend = models.ForeignKey(UsersExtend, models.DO_NOTHING)
  318.     user = models.ForeignKey(AuthUser, models.DO_NOTHING)
  319.  
  320.     class Meta:
  321.         managed = False
  322.         db_table = 'users_extend_friends'
  323.         unique_together = (('extend', 'user'),)
  324.  
  325.  
  326. class UsersPasswordtokens(models.Model):
  327.     token = models.UUIDField()
  328.     user = models.ForeignKey(AuthUser, models.DO_NOTHING, unique=True)
  329.  
  330.     class Meta:
  331.         managed = False
  332.         db_table = 'users_passwordtokens'
  333.  
  334.  
  335. class UsersRegistertokens(models.Model):
  336.     token = models.UUIDField()
  337.     user = models.ForeignKey(AuthUser, models.DO_NOTHING, unique=True)
  338.  
  339.     class Meta:
  340.         managed = False
  341.         db_table = 'users_registertokens'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top