Add responsiveness to file page and use correct file icons based on file type

This commit is contained in:
2024-09-16 11:02:25 +07:00
parent b246d85fac
commit dd8d0c0f4f
21 changed files with 797 additions and 590 deletions

View File

@ -19,6 +19,7 @@ type File struct {
StartHash string `gorm:"type:text;not null"`
EndHash string `gorm:"type:text;not null"`
IsPrivate bool `gorm:"not null;default:true"`
Type string `gorm:"type:varchar(5);not null;default:'doc'"`
Downloaded uint64 `gorm:"not null;default:0"`
Owner *User `gorm:"foreignKey:OwnerID;constraint:OnDelete:CASCADE;"`
}