2022-12-17 02:04:12 -05:00
|
|
|
from django.db import models
|
|
|
|
|
|
|
|
|
|
|
|
class BookLink(models.Model):
|
2023-01-01 01:07:32 -05:00
|
|
|
old_id = models.IntegerField(unique=True)
|
2022-12-17 02:04:12 -05:00
|
|
|
new_uid = models.UUIDField()
|
|
|
|
|
|
|
|
|
|
|
|
class MovieLink(models.Model):
|
2023-01-01 01:07:32 -05:00
|
|
|
old_id = models.IntegerField(unique=True)
|
2022-12-17 02:04:12 -05:00
|
|
|
new_uid = models.UUIDField()
|
|
|
|
|
|
|
|
|
|
|
|
class AlbumLink(models.Model):
|
2023-01-01 01:07:32 -05:00
|
|
|
old_id = models.IntegerField(unique=True)
|
2022-12-17 02:04:12 -05:00
|
|
|
new_uid = models.UUIDField()
|
|
|
|
|
|
|
|
|
2022-12-29 23:49:28 -05:00
|
|
|
class SongLink(models.Model):
|
2023-01-01 01:07:32 -05:00
|
|
|
old_id = models.IntegerField(unique=True)
|
2022-12-29 23:49:28 -05:00
|
|
|
new_uid = models.UUIDField()
|
|
|
|
|
|
|
|
|
2022-12-17 02:04:12 -05:00
|
|
|
class GameLink(models.Model):
|
2023-01-01 01:07:32 -05:00
|
|
|
old_id = models.IntegerField(unique=True)
|
|
|
|
new_uid = models.UUIDField()
|
|
|
|
|
|
|
|
|
|
|
|
class CollectionLink(models.Model):
|
|
|
|
old_id = models.IntegerField(unique=True)
|
|
|
|
new_uid = models.UUIDField()
|
|
|
|
|
|
|
|
|
|
|
|
class ReviewLink(models.Model):
|
2023-01-08 18:11:24 -05:00
|
|
|
module = models.CharField(max_length=20)
|
|
|
|
old_id = models.IntegerField()
|
2022-12-17 02:04:12 -05:00
|
|
|
new_uid = models.UUIDField()
|
2023-01-08 18:11:24 -05:00
|
|
|
|
|
|
|
class Meta:
|
|
|
|
unique_together = [["module", "old_id"]]
|