feat(api): rename track type to library
Related to #1922 - rename library model fields
This commit is contained in:
parent
e5cb21c0e2
commit
05ca410453
14 changed files with 289 additions and 274 deletions
21
api/libretime_api/storage/models/library.py
Normal file
21
api/libretime_api/storage/models/library.py
Normal file
|
@ -0,0 +1,21 @@
|
|||
from django.db import models
|
||||
|
||||
|
||||
class Library(models.Model):
|
||||
name = models.CharField(
|
||||
max_length=255,
|
||||
blank=True,
|
||||
null=True,
|
||||
db_column="type_name",
|
||||
)
|
||||
code = models.CharField(max_length=16, unique=True)
|
||||
description = models.CharField(max_length=255, blank=True, null=True)
|
||||
visible = models.BooleanField(
|
||||
blank=True,
|
||||
default=True,
|
||||
db_column="visibility",
|
||||
)
|
||||
|
||||
class Meta:
|
||||
managed = False
|
||||
db_table = "cc_track_types"
|
Loading…
Add table
Add a link
Reference in a new issue