message: Extract common gorm data types
diff: @@ -3,6 +3,10 @@ package database
  import (
  "database/sql/driver"
  "encoding/json"
  + "time"
  +
  + "github.com/gofrs/uuid"
  + "gorm.io/gorm"
  )
  type JSONB map[string]interface{}
  @@ -18,3 +22,13 @@ func (j *JSONB) Scan(value interface{}) error {
  }
  return nil
  }
  +
  +type PrimaryKeyUUID struct {
  + ID uuid.UUID `gorm:"primaryKey;type:uuid;default:gen_random_uuid()"`
  +}
  +
  +type TimeFields struct {
  + CreatedAt time.Time `json:"createdAt"`
  + UpdatedAt time.Time `json:"updatedAt"`
  + DeletedAt gorm.DeletedAt `gorm:"index" json:"deletedAt"`
  +}
  