package com.smyhub.store.mengyastorebackendjava.entity;

import jakarta.persistence.*;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Entity
@Table(name = "site_settings")
@Getter
@Setter
@NoArgsConstructor
public class SiteSetting {

    @Id
    @Column(name = "`key`", length = 64)
    private String key;

    @Column(columnDefinition = "text")
    private String value;

    public SiteSetting(String key, String value) {
        this.key = key;
        this.value = value;
    }
}
