hunk.code_window:     "mongo-port": 19422,
       "mongo-databaseName": "admin",
       "mongo-username": "cypress-test",
       "mongo-password": "RaopEmky505xYV4p",
       "mongo-authenticationAuthtype": "SCRAM-SHA-1",
       "mongo-sslAuthtype": "No SSL",
       "postgres-host": "postgres-test-db.cz8diybf9wdj.ap-south-1.rds.amazonaws.com",
       "postgres-port": 5432,
       "postgres-databaseName": "fakeapi",
       "postgres-username": "postgres",
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep
hunk.file_path: app/client/cypress/fixtures/datasources.json
hunk.type: replace
file: package com.appsmith.server.domains;
  
  import com.appsmith.external.models.BaseDomain;
  import com.appsmith.server.constants.Url;
  import com.fasterxml.jackson.annotation.JsonIgnore;
  import lombok.Getter;
  import lombok.NoArgsConstructor;
  import lombok.Setter;
  import lombok.ToString;
  import org.springframework.data.mongodb.core.mapping.Document;
  
  import javax.validation.constraints.NotBlank;
  import java.util.List;
  
  
  @Getter
  @Setter
  @ToString
  @NoArgsConstructor
  @Document
  public class Organization extends BaseDomain {
  
      private String domain;
  
      @NotBlank(message = "Name is mandatory")
      private String name;
  
      private String website;
  
      private String email;
  
      private List<OrganizationPlugin> plugins;
  
      private String slug;
  
      @JsonIgnore
      private List<UserRole> userRoles;
  
      @JsonIgnore
      private String logoAssetId;
  
      public String makeSlug() {
          return toSlug(name);
      }
  
      public static String toSlug(String text) {
          return text == null ? null : text.replaceAll("[^\\w\\d]+", "-").toLowerCase();
      }
  
      public String getLogoUrl() {
          return Url.ASSET_URL + "/" + logoAssetId;
      }
  
  }
  