package com.smyhub.infogenie.infogeniebackendjava.entity;

import jakarta.persistence.*;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Maps to the site_60s_upstream table (singleton row id=1).
 * source_id is either "self" or "official", determining which upstream
 * 60s API base URL the backend proxies / references.
 */
@Data
@NoArgsConstructor
@Entity
@Table(name = "site_60s_upstream")
public class Site60sUpstream {

    @Id
    private Long id;

    /**
     * "self"  → https://60s.api.shumengya.top
     * "official" → https://60s.viki.moe
     */
    @Column(name = "source_id", length = 20, nullable = false)
    private String sourceId = "self";
}
