diff --git a/media-store/app-src/src/components/Router.jsx b/media-store/app-src/src/components/Router.jsx index 0877250a..e0cf5d4f 100644 --- a/media-store/app-src/src/components/Router.jsx +++ b/media-store/app-src/src/components/Router.jsx @@ -12,15 +12,6 @@ import Login from './Login'; import { withRestrictions } from '../hocs/withRestrictions'; import { requireEmployee } from '../util/constants'; -// const TracksContainer = React.lazy(() => import('./TracksPage')); -// const Header = React.lazy(() => import('./Header')); -// const PersonPage = React.lazy(() => import('./PersonPage')); -// const ErrorPage = React.lazy(() => import('./ErrorPage')); -// const InvoicePage = React.lazy(() => import('./InvoicePage')); -// const ManageStore = React.lazy(() => import('./ManageStore')); -// const MyInvoicesPage = React.lazy(() => import('./MyInvoicesPage')); -// const Login = React.lazy(() => import('./Login')); - const RestrictedLogin = withRestrictions(Login, ({ user }) => !user); const RestrictedInvoicePage = withRestrictions( InvoicePage, @@ -36,7 +27,7 @@ const MyRouter = () => {
Loading...
}> - + diff --git a/media-store/db/schema.cds b/media-store/db/schema.cds index ec53024d..e4b186b2 100644 --- a/media-store/db/schema.cds +++ b/media-store/db/schema.cds @@ -42,12 +42,10 @@ entity Albums { } entity Employees : Person { - reportsTo : Association to Employees; - title : String(20); - birthDate : DateTime; - hireDate : DateTime; - subordinates : Association to many Employees - on subordinates.reportsTo = $self; + reportsTo : Association to Employees; + title : String(20); + birthDate : DateTime; + hireDate : DateTime; } entity Customers : Person {