Files
WerkoutAPI/video/models.py
Trey t c5b577fc1b WIP
2023-07-14 14:55:15 -05:00

19 lines
490 B
Python

from django.db import models
# Create your models here.
VIDEO_GENDER = (
(1, "male"),
(2, "female"),
(3, "both"),
)
class Video(models.Model):
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
video_file = models.FileField(upload_to='videos/', null=True, verbose_name="")
gender = models.PositiveSmallIntegerField(
choices=VIDEO_GENDER
)
def __str__(self):
return str(self.video_file)