                 K.API.MediaDuration : Type.String,
                 K.API.GUID : Type.String,
                 K.API.PublishDate : Type.String,
-                K.API.CreatedBy : Type.Int,
-                K.API.Metadata : Type.Int
-            ])
-        
-    
-        var podcast = Podcast(title: params.string[K.API.Title] ?? "",
-                              author: params.string[K.API.Author] ?? "",
-                              subtitle: params.string[K.API.Subtitle] ?? "",
-                              summary: params.string[K.API.Summary] ?? "",
-                              imageURL: params.string[K.API.ImageURL] ?? "",
-                              mediaURL: params.string[K.API.MediaURL] ?? "",
-                              mediaLength: params.int[K.API.MediaLength] ?? -1,
-                              mediaType: params.string[K.API.MediaType] ?? "",
-                              mediaDuration: params.string[K.API.MediaDuration] ?? "",
-                              GUID: params.string[K.API.GUID] ?? "",
-                              publishDate: params.string[K.API.PublishDate] ?? "",
-                              createdBy: params.int[K.API.CreatedBy] ?? -1,
-                              metadata: params.int[K.API.Metadata] ?? -1)
-        
-        try podcast.save()
-        return podcast
-    }
-    
-    func show(request: Request, podcast: Podcast) throws -> ResponseRepresentable {
-        return podcast
-    }
-    
-    func delete(request: Request, podcast: Podcast) throws -> ResponseRepresentable {
-        try podcast.delete()
-        return JSON([:])
-    }
-    
-    func clear(request: Request) throws -> ResponseRepresentable {
-        try Podcast.query().delete()
-        return JSON([])
-    }
-    
-    func update(request: Request, podcast: Podcast) throws -> ResponseRepresentable {
-        let params = try Validator.validate(req: request, expected:
-            [
-                K.API.Title : Type.String,
-                K.API.Subtitle : Type.String,
-                K.API.Author : Type.String,
-                K.API.Summary : Type.String,
-                K.API.ImageURL : Type.String,
-                K.API.MediaURL : Type.String,
-                K.API.MediaLength : Type.Int,
-                K.API.MediaType : Type.String,
-                K.API.MediaDuration : Type.String,
-                K.API.GUID : Type.String,
-                K.API.PublishDate : Type.String,
-                K.API.CreatedBy : Type.Int,
-                K.API.Metadata : Type.Int
             ])
         
         

            clear: clear
        )
    }

}

    }
    
    func create(request: Request) throws -> ResponseRepresentable {
        let user = try requireAuth(req: request)
        let metadata = try Metadata.all().first
        
        let params = try Validator.validate(req: request, expected:
            [
                K.API.Title : Type.String,
