package domain import "time" type Bookmark struct { ID uint `gorm:"primarykey" json:"id"` UserID uint `gorm:"not null;index" json:"userId"` Title string `gorm:"not null" json:"title"` URL string `gorm:"not null" json:"url"` Description string `json:"description"` Icon string `json:"icon"` Category string `gorm:"default:'默认'" json:"category"` SortOrder int `gorm:"default:0" json:"sortOrder"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }