Advertisement
Guest User

Model VideoG

a guest
Mar 30th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. exports.definition = {
  2.     config: {
  3.         columns: {
  4.             "idVideo": "INTEGER PRIMARY KEY AUTOINCREMENT",
  5.             "idGaleria": "integer",
  6.             "tit": "text",
  7.             "video": "text",
  8.             "videoFile": "text",
  9.             "autor": "text",
  10.             "publ": 'integer',
  11.             "embed": 'integer',
  12.             "chunk": "integer",
  13.             "url": 'text',
  14.             "bytes": 'integer'
  15.         },
  16.         adapter: {
  17.             type: "sql",
  18.             collection_name: "VideoG",
  19.             idAttribute: "idVideo"
  20.         }
  21.     },
  22.     extendModel: function(Model) {
  23.        
  24.         _.extend(Model.prototype, {
  25.             // extended functions and properties go here
  26.            
  27.  
  28.         return Model;
  29.         });
  30.     },
  31.     extendCollection: function(Collection) {
  32.         _.extend(Collection.prototype, {
  33.             // extended functions and properties go here
  34.            
  35.         });
  36.  
  37.         return Collection;
  38.     }
  39. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement