Advertisement
Guest User

Untitled

a guest
Dec 27th, 2018
566
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.53 KB | None | 0 0
  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 django.db import models
  9.  
  10.  
  11. class AuthGroup(models.Model):
  12. id = models.IntegerField(primary_key=True) # AutoField?
  13. name = models.CharField(unique=True, max_length=80)
  14.  
  15. class Meta:
  16. managed = False
  17. db_table = 'auth_group'
  18. # Unable to inspect table 'auth_group_permissions'
  19. # The error was: list index out of range
  20.  
  21.  
  22. class AuthPermission(models.Model):
  23. id = models.IntegerField(primary_key=True) # AutoField?
  24. content_type = models.ForeignKey('DjangoContentType', models.DO_NOTHING)
  25. codename = models.CharField(max_length=100)
  26. name = models.CharField(max_length=255)
  27.  
  28. class Meta:
  29. managed = False
  30. db_table = 'auth_permission'
  31. unique_together = (('content_type', 'codename'),)
  32.  
  33.  
  34. class AuthUser(models.Model):
  35. id = models.IntegerField(primary_key=True) # AutoField?
  36. password = models.CharField(max_length=128)
  37. last_login = models.DateTimeField(blank=True, null=True)
  38. is_superuser = models.BooleanField()
  39. username = models.CharField(unique=True, max_length=150)
  40. first_name = models.CharField(max_length=30)
  41. email = models.CharField(max_length=254)
  42. is_staff = models.BooleanField()
  43. is_active = models.BooleanField()
  44. date_joined = models.DateTimeField()
  45. last_name = models.CharField(max_length=150)
  46.  
  47. class Meta:
  48. managed = False
  49. db_table = 'auth_user'
  50. # Unable to inspect table 'auth_user_groups'
  51. # The error was: list index out of range
  52. # Unable to inspect table 'auth_user_user_permissions'
  53. # The error was: list index out of range
  54.  
  55.  
  56. class ClientesPerson(models.Model):
  57. id = models.IntegerField(primary_key=True) # AutoField?
  58. first_name = models.CharField(max_length=30)
  59. last_name = models.CharField(max_length=30)
  60. age = models.IntegerField()
  61. salary = models.DecimalField(max_digits=10, decimal_places=5) # max_digits and decimal_places have been guessed, as this database handles decimal fields as float
  62. bio = models.TextField()
  63.  
  64. class Meta:
  65. managed = False
  66. db_table = 'clientes_person'
  67. # Unable to inspect table 'django_admin_log'
  68. # The error was: list index out of range
  69.  
  70.  
  71. class DjangoContentType(models.Model):
  72. id = models.IntegerField(primary_key=True) # AutoField?
  73. app_label = models.CharField(max_length=100)
  74. model = models.CharField(max_length=100)
  75.  
  76. class Meta:
  77. managed = False
  78. db_table = 'django_content_type'
  79. unique_together = (('app_label', 'model'),)
  80.  
  81.  
  82. class DjangoMigrations(models.Model):
  83. id = models.IntegerField(primary_key=True) # AutoField?
  84. app = models.CharField(max_length=255)
  85. name = models.CharField(max_length=255)
  86. applied = models.DateTimeField()
  87.  
  88. class Meta:
  89. managed = False
  90. db_table = 'django_migrations'
  91.  
  92.  
  93. class DjangoSession(models.Model):
  94. session_key = models.CharField(primary_key=True, max_length=40)
  95. session_data = models.TextField()
  96. expire_date = models.DateTimeField()
  97.  
  98. class Meta:
  99. managed = False
  100. db_table = 'django_session'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement