|
- from django.db import models
-
- # Create your models here.
- # 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 UserDeviceInformation(models.Model):
- device = models.CharField(db_column='Device', max_length=255, blank=True, null=True) # Field name made lowercase.
- browser = models.CharField(db_column='Browser', max_length=255, blank=True, null=True) # Field name made lowercase.
- date = models.CharField(db_column='Date', max_length=255, blank=True, null=True) # Field name made lowercase.
- session_id = models.CharField(db_column='Session_ID', max_length=255, blank=True, primary_key=True) # Field name made lowercase.
-
- class Meta:
- managed = False
- db_table = 'user_device_information'
- verbose_name_plural = "User Information"
- ordering = ['date']
|