blob: c5d73438f95f4ffc3e7e23683b03b1d2a04a6fa7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
from django.db import models
class OldUsers(models.Model):
uid = models.IntegerField(primary_key=True)
name = models.CharField(unique=True, max_length=60)
pass_field = models.CharField(db_column='pass', max_length=32) # Field renamed because it was a Python reserved word.
mail = models.CharField(max_length=64, blank=True)
mode = models.IntegerField()
sort = models.IntegerField(blank=True, null=True)
threshold = models.IntegerField(blank=True, null=True)
theme = models.CharField(max_length=255)
signature = models.CharField(max_length=255)
signature_format = models.IntegerField()
created = models.IntegerField()
access = models.IntegerField()
login = models.IntegerField()
status = models.IntegerField()
timezone = models.CharField(max_length=8, blank=True)
language = models.CharField(max_length=12)
picture = models.CharField(max_length=255)
init = models.CharField(max_length=64, blank=True)
data = models.TextField(blank=True)
last_login = models.DateTimeField(blank=True, null=True)
class Meta:
db_table = 'users'
|