16 lines
583 B
Python
16 lines
583 B
Python
import uuid
|
|
from django.db import models
|
|
from . import odysee
|
|
|
|
class OdyseeChannel(models.Model):
|
|
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
|
|
name = models.CharField(max_length=1024)
|
|
handle = models.CharField(max_length=1024)
|
|
|
|
class OdyseeRelease(models.Model):
|
|
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
|
|
channel = models.ForeignKey(OdyseeChannel, on_delete=models.CASCADE)
|
|
name = models.CharField(max_length=1024)
|
|
description = models.TextField()
|
|
url = models.URLField(max_length=512)
|