Files
django_wallet/wallet_api/models.py
2025-01-06 11:49:58 +01:00

18 lines
568 B
Python

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)