mirror of
https://github.com/tanrax/python-api-frameworks-benchmark
synced 2026-01-10 07:13:37 +01:00
19 lines
543 B
Python
19 lines
543 B
Python
"""User model for Django benchmark."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from django.db import models
|
|
|
|
|
|
class BenchmarkUser(models.Model):
|
|
"""User model for benchmark tests."""
|
|
|
|
username = models.CharField(max_length=50, unique=True, db_index=True)
|
|
email = models.EmailField(unique=True, db_index=True)
|
|
first_name = models.CharField(max_length=50, default="")
|
|
last_name = models.CharField(max_length=50, default="")
|
|
is_active = models.BooleanField(default=True)
|
|
|
|
class Meta:
|
|
db_table = "benchmark_users"
|