daily pastebin goal
25%
SHARE
TWEET

Untitled

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