package com.magistr.app.model;

import jakarta.persistence.*;

@Entity
@Table(name = "time_slot_scopes")
public class TimeSlotScope {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(nullable = false, unique = true, length = 50)
    private String code;

    @Column(nullable = false, length = 120)
    private String name;

    @Column(name = "apply_mode", nullable = false, length = 20)
    private String applyMode;

    @Column(name = "day_of_week")
    private Integer dayOfWeek;

    @Column(name = "system_scope", nullable = false)
    private Boolean systemScope = false;

    @Column(name = "display_order", nullable = false)
    private Integer displayOrder = 100;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

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

    public String getApplyMode() {
        return applyMode;
    }

    public void setApplyMode(String applyMode) {
        this.applyMode = applyMode;
    }

    public Integer getDayOfWeek() {
        return dayOfWeek;
    }

    public void setDayOfWeek(Integer dayOfWeek) {
        this.dayOfWeek = dayOfWeek;
    }

    public Boolean getSystemScope() {
        return systemScope;
    }

    public void setSystemScope(Boolean systemScope) {
        this.systemScope = systemScope;
    }

    public Integer getDisplayOrder() {
        return displayOrder;
    }

    public void setDisplayOrder(Integer displayOrder) {
        this.displayOrder = displayOrder;
    }
}
