diff --git a/server/apps/vod/models.py b/server/apps/vod/models.py index 1b5ac88..3bb9165 100644 --- a/server/apps/vod/models.py +++ b/server/apps/vod/models.py @@ -1,10 +1,14 @@ from django.db import models from utils.model import BaseModel -from apps.system.models import User, CommonAModel +from apps.system.models import User, CommonAModel, Dict # Create your models here. class Video(CommonAModel): - pass + + name = models.CharField(verbose_name='视频名称', max_length=100) + category = models.ForeignKey(Dict, verbose_name='视频分类') + description = models.TextField(verbose_name='视频描述') + class WatchRecord(BaseModel):