mirror of
https://github.com/xhongc/music-tag-web.git
synced 2026-05-05 14:53:00 +08:00
12 lines
365 B
Python
12 lines
365 B
Python
from django.db import models
|
|
from django.contrib.auth.models import User
|
|
|
|
|
|
class UserProfile(models.Model):
|
|
user = models.OneToOneField(User, related_name="profile", on_delete=models.CASCADE)
|
|
subsonic_api_token = models.CharField(blank=True, null=True, max_length=255)
|
|
|
|
class Meta:
|
|
verbose_name = "用户"
|
|
verbose_name_plural = "用户"
|