Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- exports.definition = {
- config: {
- columns: {
- "idVideo": "INTEGER PRIMARY KEY AUTOINCREMENT",
- "idGaleria": "integer",
- "tit": "text",
- "video": "text",
- "videoFile": "text",
- "autor": "text",
- "publ": 'integer',
- "embed": 'integer',
- "chunk": "integer",
- "url": 'text',
- "bytes": 'integer'
- },
- adapter: {
- type: "sql",
- collection_name: "VideoG",
- idAttribute: "idVideo"
- }
- },
- extendModel: function(Model) {
- _.extend(Model.prototype, {
- // extended functions and properties go here
- return Model;
- });
- },
- extendCollection: function(Collection) {
- _.extend(Collection.prototype, {
- // extended functions and properties go here
- });
- return Collection;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement