package com.magistr.app.config.tenant;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * Модель конфигурации тенанта (университета).
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class TenantConfig {

    private String name;      // "ЮЗГУ", "МГУ"
    private String domain;    // "swsu", "mgu" (поддомен)
    private String url;       // "jdbc:postgresql://192.168.1.50:5432/magistr_db"
    private String username;
    private String password;

    public TenantConfig() {}

    public TenantConfig(String name, String domain, String url, String username, String password) {
        this.name = name;
        this.domain = domain;
        this.url = url;
        this.username = username;
        this.password = password;
    }

    public String getName() { return name; }
    public void setName(String name) { this.name = name; }

    public String getDomain() { return domain; }
    public void setDomain(String domain) { this.domain = domain; }

    public String getUrl() { return url; }
    public void setUrl(String url) { this.url = url; }

    public String getUsername() { return username; }
    public void setUsername(String username) { this.username = username; }

    public String getPassword() { return password; }
    public void setPassword(String password) { this.password = password; }
}
