codeflash-internal/django/aiservice/authapp/models.py
Saurabh Misra b42c270f9a Ruff reformat and fix all the python files
Set minimum libcst version to be 1.0.1
move the stub files to dev dependencies
2024-10-25 15:45:44 -07:00

33 lines
1.1 KiB
Python

from django.db import models
# Create your models here.
class PrismaMigrations(models.Model):
id = models.CharField(primary_key=True, max_length=36)
checksum = models.CharField(max_length=64)
finished_at = models.DateTimeField(blank=True, null=True)
migration_name = models.CharField(max_length=255)
logs = models.TextField(blank=True, null=True)
rolled_back_at = models.DateTimeField(blank=True, null=True)
started_at = models.DateTimeField()
applied_steps_count = models.IntegerField()
class Meta:
managed = False
db_table = "_prisma_migrations"
class CFAPIKeys(models.Model):
id = models.AutoField(primary_key=True)
key = models.CharField(max_length=255, unique=True)
suffix = models.CharField(max_length=4)
name = models.CharField(max_length=255)
created_at = models.DateTimeField(auto_now_add=True)
last_used = models.DateTimeField(null=True, blank=True)
user_id = models.TextField(null=True, blank=True)
tier = models.TextField(null=True, blank=True)
class Meta:
managed = False
db_table = "cf_api_keys"