Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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 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 AuthGroup(models.Model):
- id = models.IntegerField(primary_key=True) # AutoField?
- name = models.CharField(unique=True, max_length=80)
- class Meta:
- managed = False
- db_table = 'auth_group'
- # Unable to inspect table 'auth_group_permissions'
- # The error was: list index out of range
- class AuthPermission(models.Model):
- id = models.IntegerField(primary_key=True) # AutoField?
- content_type = models.ForeignKey('DjangoContentType', models.DO_NOTHING)
- codename = models.CharField(max_length=100)
- name = models.CharField(max_length=255)
- class Meta:
- managed = False
- db_table = 'auth_permission'
- unique_together = (('content_type', 'codename'),)
- class AuthUser(models.Model):
- id = models.IntegerField(primary_key=True) # AutoField?
- password = models.CharField(max_length=128)
- last_login = models.DateTimeField(blank=True, null=True)
- is_superuser = models.BooleanField()
- username = models.CharField(unique=True, max_length=150)
- first_name = models.CharField(max_length=30)
- email = models.CharField(max_length=254)
- is_staff = models.BooleanField()
- is_active = models.BooleanField()
- date_joined = models.DateTimeField()
- last_name = models.CharField(max_length=150)
- class Meta:
- managed = False
- db_table = 'auth_user'
- # Unable to inspect table 'auth_user_groups'
- # The error was: list index out of range
- # Unable to inspect table 'auth_user_user_permissions'
- # The error was: list index out of range
- class ClientesPerson(models.Model):
- id = models.IntegerField(primary_key=True) # AutoField?
- first_name = models.CharField(max_length=30)
- last_name = models.CharField(max_length=30)
- age = models.IntegerField()
- 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
- bio = models.TextField()
- class Meta:
- managed = False
- db_table = 'clientes_person'
- # Unable to inspect table 'django_admin_log'
- # The error was: list index out of range
- class DjangoContentType(models.Model):
- id = models.IntegerField(primary_key=True) # AutoField?
- 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.IntegerField(primary_key=True) # AutoField?
- 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'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement