add entity and controller for templates admin create
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package ru.soune.nocopy.adminpanel.entity;
|
||||
|
||||
import jakarta.persistence.*;
|
||||
import lombok.*;
|
||||
|
||||
@Entity
|
||||
@Table(name = "admin_create_template")
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
public class AdminCreateTemplate {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
|
||||
@Column(name = "permission", columnDefinition = "TEXT")
|
||||
String permission;
|
||||
|
||||
@Column(name = "change_password")
|
||||
Boolean changePassword;
|
||||
}
|
||||
@@ -66,7 +66,7 @@ public class AdminSectionPermission {
|
||||
|
||||
@CreatedDate
|
||||
@Column(name = "created_at", updatable = false)
|
||||
private LocalDateTime createdAt;
|
||||
private LocalDateTime createdAt = LocalDateTime.now();
|
||||
|
||||
@LastModifiedDate
|
||||
@Column(name = "updated_at")
|
||||
|
||||
Reference in New Issue
Block a user