Skip to content

file_downloads

Column NameTypeCommentDefaultNullRemark
idbigint UNSIGNEDPrimary Key IDNOAuto Increment
file_idbigint UNSIGNEDFile IDNORelated field files->id
file_typetinyint UNSIGNEDFile Type1NO1.Image / 2.Video / 3.Audio / 4.Document
account_idbigint UNSIGNEDDownloader Account IDNORelated field accounts->id
user_idbigint UNSIGNEDDownloader User IDYESRelated field users->id
app_fskeyvarchar(64)Downloader PluginYESRelated field apps->fskey
If downloaded in a plugin, then it is that plugin's fskey
target_typetinyint UNSIGNEDDownload Source Type1NOContent Type
target_idbigint UNSIGNEDSource Target Primary Key IDNO
created_attimestampDownload TimeuseCurrentNOFor example, MySQL defaults to CURRENT_TIMESTAMP
updated_attimestampUpdate TimeYES
deleted_attimestampDelete TimeYES

Released under the Apache-2.0 License