Class TermsOfService

java.lang.Object
com.raphaelsalles.backend.domain.model.TermsOfService

@Entity public class TermsOfService extends Object
Representa os Termos de Serviço da Plataforma.

Papel na Arquitetura: Entidade legal que define as regras de uso. Permite versionamento de contratos.

Responsabilidades:
  • Armazenar o texto legal (content).
  • Controlar a versão (ex: v1.0, v2.0).
  • Indicar qual termo está ativo no momento.
  • Field Details

    • id

      private Long id
    • version

      private String version
    • content

      private String content
    • isActive

      private boolean isActive
    • createdAt

      private LocalDateTime createdAt
  • Constructor Details

    • TermsOfService

      public TermsOfService()
    • TermsOfService

      public TermsOfService(Long id, String version, String content, boolean isActive, LocalDateTime createdAt)
  • Method Details

    • onCreate

      protected void onCreate()
    • builder

      public static TermsOfService.TermsOfServiceBuilder builder()
    • getId

      public Long getId()
    • getVersion

      public String getVersion()
    • getContent

      public String getContent()
    • isActive

      public boolean isActive()
    • getCreatedAt

      public LocalDateTime getCreatedAt()
    • setActive

      public void setActive(boolean isActive)