Closed isaac238 closed 11 months ago
Refactor the backend to coincide with MVC using the:
Some example models could be,
Member:
Auth:
Pin:
A static object would require passing in the pocketbase instance for the current request using a arg such as
Pin.create(pb, {dob});
while an instance class would require the pb instance to be passed into the constructor before any of the methods can be used e.g.
const pin = new Pin(locals.pb); pin.Create({dob});
Backend Refactor
Refactor the backend to coincide with MVC using the:
Some example models could be,
Member:
Auth:
Pin:
Static vs Instance
A static object would require passing in the pocketbase instance for the current request using a arg such as
while an instance class would require the pb instance to be passed into the constructor before any of the methods can be used e.g.