mirror of https://github.com/bvn13/VoidForum.git
31 lines
580 B
Java
31 lines
580 B
Java
package ru.bvn13.voidforum.models;
|
|
|
|
import lombok.Getter;
|
|
import lombok.Setter;
|
|
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.Table;
|
|
|
|
@Entity
|
|
@Table(name = "seo_robots_agents")
|
|
@Getter
|
|
@Setter
|
|
public class SeoRobotAgent extends BaseModel {
|
|
|
|
@Column(nullable = false)
|
|
private String userAgent;
|
|
|
|
@Column(nullable = false, columnDefinition = "boolean default false")
|
|
private Boolean isRegexp;
|
|
|
|
public SeoRobotAgent() {
|
|
|
|
}
|
|
|
|
public SeoRobotAgent(String userAgent) {
|
|
this.userAgent = userAgent;
|
|
}
|
|
|
|
}
|