    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)

/*==============================================================*/
/* Index: INDEX_1                                               */
/*==============================================================*/
create unique index INDEX_1 on USER
(
   USERNAME
);


drop table if exists FILE_HISTORY;

drop index INDEX_1 on USERS;

drop table if exists USERS;

drop table if exists USER_PERMISSIONS;

