initial commit
This commit is contained in:
18
wallet_api/models.py
Normal file
18
wallet_api/models.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
|
||||
class PasswordEntry(models.Model):
|
||||
site = models.CharField(max_length=255)
|
||||
username = models.CharField(max_length=255)
|
||||
password = models.TextField()
|
||||
client_id = models.CharField(max_length=255)
|
||||
topic = models.CharField(max_length=255)
|
||||
created_at = models.DateTimeField(auto_now_add=True)
|
||||
|
||||
class Meta:
|
||||
unique_together = ('site', 'username', 'client_id')
|
||||
|
||||
class MasterHash(models.Model):
|
||||
hash = models.BinaryField()
|
||||
created_at = models.DateTimeField(auto_now_add=True)
|
||||
Reference in New Issue
Block a user