package database type Dispensa struct { Id string `db:"id"` Title string `db:"title"` Description string `db:"description"` } type Tag struct { DispensaId string `db:"dispensa_id"` Tag string `db:"tag"` } type UploadedContent struct { Id string `db:"id"` Hash string `db:"hash"` } type HashApproval struct { Id string `db:"id"` Hash string `db:"hash"` } type HashRejection struct { Id string `db:"id"` Hash string `db:"hash"` } // Relations type Owner struct { OwnerId string `db:"owner_id"` OwnedId string `db:"owned_id"` } type Author struct { UserId string `db:"user_id"` DispensaId string `db:"dispensa_id"` } type CreationTime struct { EntityId string `db:"entity_id"` CreatedAt string `db:"created_at"` }