content: /* 
   * SnapAdmin - An automatically generated CRUD admin UI for Spring Boot apps
  
   * Copyright (C) 2023 Ailef (http://ailef.tech)
   * 
  
   */
  
  
  package tech.ailef.snapadmin.internal.model;
  
  import java.time.LocalDateTime;
  
  import org.hibernate.annotations.UuidGenerator;
  
  import jakarta.persistence.Entity;
  import jakarta.persistence.Id;
  import jakarta.persistence.Lob;
  
  @Entity
  public class ConsoleQuery {
  	@Id
  	@UuidGenerator
  	private String id;
  	
  	@Lob
  	private String sql;
  	
  	private String title;
  	
  	private LocalDateTime createdAt;
  
  	private LocalDateTime updatedAt;
  	
  	public ConsoleQuery() {
  		this.title = "Untitled Query";
  		this.createdAt = LocalDateTime.now();
  		this.updatedAt = LocalDateTime.now();
  	}
  	
  	public String getId() {
  		return id;
  	}
  
  	public void setId(String id) {
  		this.id = id;
  	}
  
  	public String getSql() {
  		return sql;
  	}
  
  	public void setSql(String sql) {
  		this.sql = sql;
  	}
  
  	public String getTitle() {
  		return title;
  	}
  
  	public void setTitle(String title) {
  		this.title = title;
  	}
  
  	public LocalDateTime getCreatedAt() {
  		return createdAt;
  	}
  
  	public void setCreatedAt(LocalDateTime createdAt) {
  		this.createdAt = createdAt;
  	}
  
  	public LocalDateTime getUpdatedAt() {
  		return updatedAt;
  	}
  
  	public void setUpdatedAt(LocalDateTime updatedAt) {
  		this.updatedAt = updatedAt;
  	}
  
  	@Override
  	public String toString() {
  		return "ConsoleQuery [id=" + id + ", sql=" + sql + ", title=" + title + ", createdAt=" + createdAt
  				+ ", updatedAt=" + updatedAt + "]";
  	}
  	
  	
  }
  