This repository has been archived on 2022-08-26. You can view files and clone it, but cannot push or open issues or pull requests.
gosocial/pkg/models/profile.go
Noah Petherbridge 4533c15747 User Photo Gallery & Management
* Add the user photo gallery for profile pages. Paginated, grid or full (blog
  style) view options. In grid view clicking a photo opens a large modal to
  see it; full view already shows large photos.
* Edit page: can also re-crop and set an existing pic to be your profile pic.
* Delete page: remove photos from the DB and hard drive.
* Photos are cleaned up from disk when not needed, e.g. during a re-crop the
  old cropped photo is removed before the new one replaces it.
* Fixed bug with cropping pictures.
2022-08-12 23:11:36 -07:00

14 lines
298 B
Go

package models
import "time"
// ProfileField table for arbitrary user profile settings.
type ProfileField struct {
ID uint64 `gorm:"primaryKey"`
UserID uint64 `gorm:"index"`
Name string `gorm:"index"`
Value string `gorm:"index"`
CreatedAt time.Time
UpdatedAt time.Time
}