INSERT INTO  `jsfiles` (
`id` ,
`plugin` ,
`jsfile` ,
`jsmodule` ,
`jsfunction`
)
VALUES (
NULL , NULL ,  'profile',  'Profile',  'init'
);

INSERT INTO  `items_jsfiles` (
`id` ,
`jsfile_id` ,
`item_id` ,
`flag_main`
)
VALUES (
NULL ,  '15',  '8',  '1'
);

CREATE TABLE  `categories_users` (
`id` INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`user_id` INT( 11 ) NOT NULL ,
`category_id` INT( 11 ) NOT NULL ,
INDEX (  `user_id` )
) ENGINE = INNODB;

ALTER TABLE  `categories_users` ADD INDEX (  `category_id` );

ALTER TABLE  `categories_users` ADD FOREIGN KEY (  `user_id` ) REFERENCES  `users` (
`id`
) ON DELETE CASCADE ON UPDATE CASCADE ;

ALTER TABLE  `categories_users` ADD FOREIGN KEY (  `category_id` ) REFERENCES `categories` (
`id`
) ON DELETE CASCADE ON UPDATE CASCADE ;

INSERT INTO  `permissions` (
`id` ,
`module` ,
`controller` ,
`action` ,
`row` ,
`flag_exclusive` ,
`level` ,
`created` ,
`modified`
)
VALUES (
NULL ,  'Base',  'Users',  'changePassword',  'base:users:changepassword',  '0',  '50', NOW( ) , NOW( )
), (
NULL ,  'Base',  'Users',  'getNewsletter',  'base:users:getnewsletter',  '0',  '50', NOW( ) , NOW( )
);

INSERT INTO  `permissions` (
`id` ,
`module` ,
`controller` ,
`action` ,
`row` ,
`flag_exclusive` ,
`level` ,
`created` ,
`modified`
)
VALUES (
NULL ,  'Base',  'Users',  'saveNewsletter',  'base:users:savenewsletter',  '0',  '50', NOW( ) , NOW( )
);

INSERT INTO  `permissions` (
`id` ,
`module` ,
`controller` ,
`action` ,
`row` ,
`flag_exclusive` ,
`level` ,
`created` ,
`modified`
)
VALUES (
NULL ,  'Base',  'Users',  'sendNewsletter',  'base:users:sendnewsletter',  '0',  '70', NOW( ) , NOW( )
);

/*** FATTO ***/
