package models import ( "time" "gorm.io/gorm" ) type Bookmark struct { ID int64 `json:"id" gorm:"primaryKey;autoIncrement"` ExternalID int64 `json:"external_id" gorm:"uniqueIndex;not null"` Name string `json:"name" gorm:"not null;index;size:255"` Link *string `json:"link" gorm:"type:url"` Detail *string `json:"detail" gorm:"type:text"` Description *string `json:"description" gorm:"type:text"` CreatedAt time.Time `json:"created_at" gorm:"autoCreateTime"` UpdatedAt time.Time `json:"updated_at" gorm:"autoUpdateTime"` DeletedAt gorm.DeletedAt `json:"deleted_at" gorm:"index"` }