Skip to content

Commit

Permalink
added blog model
Browse files Browse the repository at this point in the history
  • Loading branch information
miguel-merlin committed Oct 5, 2024
1 parent aaa89d7 commit a895eb2
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/main/java/com/sitblueprint/admin/model/blogs/Blog.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package com.sitblueprint.admin.model.blogs;

import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Entity
@Table(name = "blogs")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Blog {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private long id;

private String author;
private String title;

@Column(nullable = false)
private LocalDateTime dateCreated;
}

0 comments on commit a895eb2

Please sign in to comment.