Update: Models
This commit is contained in:
parent
70ca726122
commit
002f79851a
10 changed files with 55 additions and 71 deletions
10
app-backend/models/objects/image.model.js
Normal file
10
app-backend/models/objects/image.model.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
class Image {
|
||||
constructor(base64, url, description, type){
|
||||
this.base64 = base64;
|
||||
this.url = url;
|
||||
this.description = description;
|
||||
this.type = type;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Image;
|
||||
10
app-backend/models/objects/token.model.js
Normal file
10
app-backend/models/objects/token.model.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
class Token {
|
||||
constructor(id, email, profileImageUrl, role){
|
||||
this.id = id;
|
||||
this.email = email;
|
||||
this.profileImageUrl = profileImageUrl;
|
||||
this.role = role;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Token;
|
||||
Reference in a new issue