    USER_SEQ             int
 );
 
-alter table USER add constraint FK_REFERENCE_8 foreign key (USER_PERMISSIONS_SEQ)
+alter table USERS add constraint FK_REFERENCE_8 foreign key (USER_PERMISSIONS_SEQ)
       references USER_PERMISSIONS (USER_PERMISSIONS_SEQ) on delete restrict on update restrict;
 
 alter table WALL_COMMENT add constraint FK_REFERENCE_6 foreign key (WALL_SEQ)

);

/*==============================================================*/
/* Table: USER                                                  */
/*==============================================================*/
create table USER
(
   USER_SEQ             int not null auto_increment,
   USER_PERMISSIONS_SEQ int,


drop table if exists FILE_HISTORY;

drop index INDEX_1 on USERS;

drop table if exists USERS;

drop table if exists USER_PERMISSIONS;

