feat(api): rename track type to library

Related to #1922

- rename library model fields
This commit is contained in:
jo 2022-06-28 09:20:11 +02:00 committed by Kyle Robbertze
parent e5cb21c0e2
commit 05ca410453
14 changed files with 289 additions and 274 deletions

View 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"