feat: add basic blog features
This commit is contained in:
16
entities/post/Post.model.js
Normal file
16
entities/post/Post.model.js
Normal file
@@ -0,0 +1,16 @@
|
||||
export default class Post {
|
||||
id;
|
||||
title;
|
||||
content;
|
||||
created_at;
|
||||
updated_at;
|
||||
|
||||
constructor(data) {
|
||||
this.title = data.title;
|
||||
this.content = data.content;
|
||||
|
||||
this.id = data.id || undefined;
|
||||
this.created_at = data.created_at || undefined;
|
||||
this.updated_at = data.updated_at || undefined;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user