17 lines
527 B
JavaScript
17 lines
527 B
JavaScript
class UserResource {
|
|
constructor(user) {
|
|
this.id = user?.id ?? null
|
|
this.name = user?.name ?? null
|
|
this.email = user?.email ?? null
|
|
this.phone = user?.phone ?? null
|
|
//this.role = user?.role ?? null
|
|
this.via = user?.login_via ?? null
|
|
this.google_id = user?.google_id ?? null
|
|
this.last_login = user?.last_login ?? null
|
|
this.created_at = user?.created_at ?? null
|
|
this.updated_at = user?.updated_at ?? null
|
|
}
|
|
|
|
}
|
|
|
|
module.exports = UserResource |