title: how to create models in nodejs
body: <p>I am a .net developer, trying my hands on nodejs web api development.</p>
  
  <p>I was wondering that whether we can create models in nodejs same as we create in asp.net web api.</p>
  
  <p>For example</p>
  
  <pre><code>public class BaseResponse
  {
      public bool Success { get; set; }
  
      public string ErrorMessage { get; set; }
  
  }
  
  public class MovieResponse : BaseResponse
  {
      public int MovieId { get; set; }
  
      public string MovieName { get; set; }
  }
  </code></pre>
  
  <p>This is how we do it in c#.</p>
  
  <p>How can i create such models in nodejs.</p>
  
  <p>Any npm package available?</p>