         return callback(new Error "Ajax failed with status #{res.status} for #{'destroy'} with: #{util.inspect(res.body)}") unless res.ok
         callback(null, res.body)
 
-  schema: (key) -> @model_type._schema
-  relation: (key) -> @model_type._schema.relation(key)
-
 
 module.exports = (model_type, cache) ->
   sync = new AjaxSync(model_type)


  initialize: (model) ->
    return if @is_initialized; @is_initialized = true
    @model_type._schema.initialize()

  ###################################
  # Backbone ORM - Class Extensions

    # publish methods and sync on model
    @model_type.model_name = Utils.parseUrl(@url).model_name unless @model_type.model_name # model_name can be manually set
    throw new Error('Missing model_name for model') unless @model_type.model_name
    @schema = new Schema(@model_type)
    @request = require 'superagent'

    ###################################
