first working version

This commit is contained in:
howard
2025-10-22 20:14:31 +08:00
parent c9767b830b
commit 8dc869634e
118 changed files with 22518 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
"""
Models for user management.
"""
from django.contrib.auth.models import AbstractUser
from django.db import models
class User(AbstractUser):
"""Extended user model."""
email = models.EmailField(unique=True)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
class Meta:
db_table = 'users'
def __str__(self):
return self.username