forked from Hithomelabs/CFTunnels
30 lines
681 B
Java
30 lines
681 B
Java
package com.hithomelabs.CFTunnels.Entity;
|
|
|
|
import jakarta.persistence.*;
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.Getter;
|
|
import lombok.NoArgsConstructor;
|
|
import lombok.Setter;
|
|
|
|
import java.util.UUID;
|
|
|
|
@Entity
|
|
@Getter
|
|
@Setter
|
|
@NoArgsConstructor
|
|
@AllArgsConstructor
|
|
@Table(name="tunnels")
|
|
public class Tunnel {
|
|
|
|
@Id
|
|
@GeneratedValue
|
|
@Column(columnDefinition = "uuid", insertable = false, updatable = false, nullable = false)
|
|
private UUID id;
|
|
|
|
@Column(length = 10, unique = true, nullable = false)
|
|
private String environment;
|
|
|
|
@Column(name = "cf_tunnel_id", columnDefinition = "uuid", unique = true, nullable = false)
|
|
private UUID cfTunnelId;
|
|
}
|