Server Side Swift with Vapor - Part 8: Models And | Ray Wenderlich

hi, why do you use class instead of struct? and the other sections of the user and category are also like this.

@0xtim Can you please help with this when you get a chance? Thank you - much appreciated! :]

From a semantics point of view using a class makes a bit more sense for a model, compared to a struct. However it does entirely depend on your use case and you are free to use structs if you wish!