Move project files to root directory
This commit is contained in:
parent
2fd7bf3041
commit
ace2fa6eb9
223 changed files with 7 additions and 7 deletions
15
dal/models.py
Normal file
15
dal/models.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
from django.db import models
|
||||
|
||||
# Basic DB to correlate tokens, users and creation time
|
||||
|
||||
class ResetToken(models.Model):
|
||||
|
||||
# users wouldn't use usernames >100 chars
|
||||
user = models.CharField(max_length=100)
|
||||
# Not so sure about tokens, better make it big
|
||||
# should be <100, but big usernames make bigger tokens
|
||||
# if I read that correctly
|
||||
token = models.CharField(max_length=255)
|
||||
# creation time in epoch (UTC)
|
||||
# BigInt just so we are save for the next few decades ;)
|
||||
creation = models.BigIntegerField()
|
||||
Loading…
Add table
Add a link
Reference in a new issue