1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-01 20:19:30 +00:00

Added Parent constructor and creator

This commit is contained in:
2022-02-25 11:26:02 +00:00
parent 66a40cffce
commit 6c843731d1

View File

@@ -3,16 +3,23 @@
const User = require('./User');
class Parent extends User {
constructor() {
constructor(id) {
super('parent', id);
}
get children() {
}
static createParent() {
static async createParent(fname, oname, lname, email, password) {
return await super.createUser(
'parent',
fname,
oname,
lname,
email,
password
);
}
}