   `idOrder` INT NOT NULL AUTO_INCREMENT ,
   `startDate` DATETIME NOT NULL ,
   `endDate` DATETIME NOT NULL ,
-  `owner` INT NOT NULL ,
+  `owner` INT ,
   PRIMARY KEY (`idOrder`) ,
   UNIQUE INDEX `owner_idx` (`owner` ASC) ,
   CONSTRAINT `owner`

  `idMenuItem` INT NOT NULL AUTO_INCREMENT ,
  `date` DATETIME NOT NULL ,
  `isPaid` TINYINT(1) NOT NULL ,
  `idOrder` INT NOT NULL ,
  PRIMARY KEY (`idMenuItem`) ,
  UNIQUE INDEX `idMenuItem_UNIQUE` (`idMenuItem` ASC) ,
  CONSTRAINT `idOrder`

	CONSTRAINT `actedUserId`
		FOREIGN KEY (`actedUserId`)
		REFERENCES `borsch`.`User`(`idUser`) ,
	CONSTRAINT `idMenuItem`
		FOREIGN KEY (`idMenuItem`)
		REFERENCES `borsch`.`MenuItem`(`idMenuItem`)
);

