first commit with existing project files
This commit is contained in:
42
models/User.js
Normal file
42
models/User.js
Normal file
@@ -0,0 +1,42 @@
|
||||
export class User {
|
||||
constructor(id, name, username, email, address, phone, website, company) {
|
||||
this._id = id;
|
||||
this._name = name;
|
||||
this._username = username;
|
||||
this._email = email;
|
||||
this._address = address;
|
||||
this._phone = phone;
|
||||
this._website = website;
|
||||
this._company = company;
|
||||
}
|
||||
|
||||
get id() {return this._id;}
|
||||
|
||||
get name() {return this._name;}
|
||||
|
||||
get username() {return this._username;}
|
||||
|
||||
get email() {return this._email;}
|
||||
|
||||
get address() {return this._address;}
|
||||
|
||||
get phone() {return this._phone;}
|
||||
|
||||
get website() {return this._website;}
|
||||
|
||||
get company() {return this._company;}
|
||||
|
||||
set name(name) {this._name = name;}
|
||||
|
||||
set username(username) {this._username = username;}
|
||||
|
||||
set email(email) {this._email = email;}
|
||||
|
||||
set address(address) {this._address = address;}
|
||||
|
||||
set phone(phone) {this._phone = phone;}
|
||||
|
||||
set website(website) {this._website = website;}
|
||||
|
||||
set company(company) {this._company = company;}
|
||||
}
|
||||
Reference in New Issue
Block a user