03 02 標籤 電影 上映預告資料模型設計

2021-10-08 17:30:06 字數 1885 閱讀 9628

標籤/電影/上映預告資料模型設計

# 標籤  電影型別模型

class tag(db.model):

__tablename__ = "tag"

id = db.column(db.biginteger, primary_key=true) # 編號

name = db.column(db.string(100), unique=true) # 標題

addtime = db.column(db.datetime, index=true, default=datetime.utcnow) # 新增時間

movies = db.relationship("movie", backref="tag") # 外來鍵關聯

def __repr__(self):

return '' % self.name

# 電影

class movie(db.model):

__tablename__ = "movie"

id = db.column(db.integer, primary_key=true) # 編號

title = db.column(db.string(255), unique=true) # 標題

url = db.column(db.string(255), unique=true) # 電影鏈結

info = db.column(db.text) # 簡介

logo = db.column(db.string(255), unique=true) # 電影封面

star = db.column(db.smallinteger) # 電影星級

tag_id = db.column(db.integer, db.foreignkey("tag.id")) # 所屬標籤

area = db.column(db.string(255)) # 地區

release_time = db.column(db.date) # 發布時間

addtime = db.column(db.datetime, index=true, default=datetime.utcnow) # 新增時間

def __repr__(self):

return '' % self.title

# 上映預告模型

class preview(db.model):

__tablename__ = "preview"

id = db.column(db.integer, primary_key=true) # 編號

title = db.column(db.string(255), unique=true) # 標題

logo = db.column(db.string(255), unique=true) # 電影封面

addtime = db.column(db.datetime, index=true, default=datetime.utcnow) # 新增時間

def __repr__(self):

return '' % self.title

Pr剪輯上分攻略 動漫電影混剪

pr學習 動漫電影混剪 常用思路 視素材幀速率選擇對應幀速率,此處使用 25 幀 秒,幀大小 1920 x 1080,方形畫素 1.0 無場 逐行掃瞄 選中時間軸面板,快捷鍵ctrl t,雙擊新建文字圖層,修改文字,當過多文字被遮蓋時,設定向量運動的位置引數進行設定,選擇無版權可商用字型,如阿里巴巴...

TFS上分支和標籤的用法

什麼時候用分支 例如為某個客戶定製的專用版本,和主幹的特性有很大差別.不具通用性的需求.大的版本修改,例如2.0 到3.0 加了很多特性,但2.0 還有維護.改bug 什麼時候用標籤 小版本的發布,如2.1.1到2.1.2.分支的優點 清晰,容易操作,程式設計師只要get latest checki...

如何在自己機器上架設電影伺服器

寬頻時代的來臨,把人們從單純的瀏覽網頁收發mail帶到了乙個全新的多 時代.但是頻寬發展卻總是不能跟上各種 的宣傳,造勢.這已經是乙個長久以來的尷尬話題.1,不需要高頻cpu.2,高穩定性.中國網管聯盟www bitscn com 3.儲存子系統.7200轉硬碟長時間執行發熱量太大,且其高於5400...