repositories: fixed error in ddl