amaterasERD, 
New ER Diagram, 
User : ID is PK
Book : Barcode is PK, ID is FK