<?xml version="1.0" encoding="UTF-8"?>
<Gen-it> 
	<Classes> 
	<Class> 
		<Class.name>Customer</Class.name> 
		<Class.stereotype/> 
		<Class.documentation>Customers from the Gen-it SampleCase Online Store.</Class.documentation> 
		<Attribute> 
			<Attribute.name>customerid</Attribute.name> 
			<Attribute.datatype>NUMERIC(10,0)</Attribute.datatype> 
			<Attribute.stereotype>PK</Attribute.stereotype> 
			<Attribute.documentation>Unique identifier, not visible for users.</Attribute.documentation> 
			<Reference> 
				<Reference.name>customerid</Reference.name> 
				<Reference.documentation>Documenation of the customerid reference.</Reference.documentation> 
				<Reference.class>OrderTotal</Reference.class> 
				<Reference.mulitplicity>0..*</Reference.mulitplicity> 
				<Reference.optional>True</Reference.optional> 
				<Reference.attribute>ordertotalid</Reference.attribute> 
			</Reference> 
		</Attribute> 
		<Attribute> 
			<Attribute.name>firstname</Attribute.name> 
			<Attribute.datatype>VARCHAR(30)</Attribute.datatype> 
			<Attribute.stereotype>NULL</Attribute.stereotype> 
			<Attribute.documentation>The first name of the customer.</Attribute.documentation> 
		</Attribute> 
		<Attribute> 
			<Attribute.name>lastname</Attribute.name> 
			<Attribute.datatype>VARCHAR(50)</Attribute.datatype> 
			<Attribute.stereotype>NULL</Attribute.stereotype> 
			<Attribute.documentation>The Lastname of the customer.</Attribute.documentation> 
		</Attribute> 
		<Attribute> 
			<Attribute.name>company</Attribute.name> 
			<Attribute.datatype>VARCHAR(60)</Attribute.datatype> 
			<Attribute.stereotype>NULL</Attribute.stereotype> 
			<Attribute.documentation>The Company name if the customer is a company.</Attribute.documentation> 
		</Attribute> 
		<Attribute> 
			<Attribute.name>address</Attribute.name> 
			<Attribute.datatype>VARCHAR(100)</Attribute.datatype> 
			<Attribute.stereotype>NOT NULL</Attribute.stereotype> 
			<Attribute.documentation>The customer address.</Attribute.documentation> 
		</Attribute> 
		<Attribute> 
			<Attribute.name>city</Attribute.name> 
			<Attribute.datatype>VARCHAR(50)</Attribute.datatype> 
			<Attribute.stereotype>NOT NULL</Attribute.stereotype> 
			<Attribute.documentation>City</Attribute.documentation> 
		</Attribute> 
		<Attribute> 
			<Attribute.name>zipcode</Attribute.name> 
			<Attribute.datatype>VARCHAR(20)</Attribute.datatype> 
			<Attribute.stereotype>NULL</Attribute.stereotype> 
			<Attribute.documentation>Zipcode</Attribute.documentation> 
		</Attribute> 
		<Attribute> 
			<Attribute.name>state</Attribute.name> 
			<Attribute.datatype>VARCHAR(2)</Attribute.datatype> 
			<Attribute.stereotype>NULL</Attribute.stereotype> 
			<Attribute.documentation>State</Attribute.documentation> 
		</Attribute> 
		<Attribute> 
			<Attribute.name>country</Attribute.name> 
			<Attribute.datatype>VARCHAR(30)</Attribute.datatype> 
			<Attribute.stereotype>NULL</Attribute.stereotype> 
			<Attribute.documentation>Country</Attribute.documentation> 
		</Attribute> 
		</Class> 
	<Class> 
		<Class.name>Orderline</Class.name> 
		<Class.stereotype/> 
		<Class.documentation>Orderlines of a order.</Class.documentation> 
		<Attribute> 
			<Attribute.name>orderlineid</Attribute.name> 
			<Attribute.datatype>NUMERIC(10,0)</Attribute.datatype> 
			<Attribute.stereotype>PK</Attribute.stereotype> 
			<Attribute.documentation>Unique identifier, not visible for users.</Attribute.documentation> 
		</Attribute> 
		<Attribute> 
			<Attribute.name>amount</Attribute.name> 
			<Attribute.datatype>NUMERIC(5,0)</Attribute.datatype> 
			<Attribute.stereotype>NOT NULL</Attribute.stereotype> 
			<Attribute.documentation/> 
		</Attribute> 
		<Attribute> 
			<Attribute.name>price</Attribute.name> 
			<Attribute.datatype>NUMERIC(9,2)</Attribute.datatype> 
			<Attribute.stereotype>NOT NULL</Attribute.stereotype> 
			<Attribute.documentation/> 
		</Attribute> 
		<Attribute> 
			<Attribute.name>productid</Attribute.name> 
			<Attribute.datatype>NUMERIC(10,0)</Attribute.datatype> 
			<Attribute.stereotype>FK</Attribute.stereotype> 
			<Attribute.documentation/> 
			<Reference> 
				<Reference.name>productid</Reference.name> 
				<Reference.documentation/> 
				<Reference.class>Product</Reference.class> 
				<Reference.mulitplicity>1..1</Reference.mulitplicity> 
				<Reference.optional>False</Reference.optional> 
				<Reference.attribute>productid</Reference.attribute> 
			</Reference> 
		</Attribute> 
		<Attribute> 
			<Attribute.name>ordertotalid</Attribute.name> 
			<Attribute.datatype>NUMERIC(10,0)</Attribute.datatype> 
			<Attribute.stereotype>FK</Attribute.stereotype> 
			<Attribute.documentation/> 
			<Reference> 
				<Reference.name>ordertotalid</Reference.name> 
				<Reference.documentation/> 
				<Reference.class>OrderTotal</Reference.class> 
				<Reference.mulitplicity>1..1</Reference.mulitplicity> 
				<Reference.optional>False</Reference.optional> 
				<Reference.attribute>ordertotalid</Reference.attribute> 
			</Reference> 
		</Attribute> 
		</Class> 
	<Class> 
		<Class.name>OrderTotal</Class.name> 
		<Class.stereotype/> 
		<Class.documentation>Orders placed</Class.documentation> 
		<Attribute> 
			<Attribute.name>ordertotalid</Attribute.name> 
			<Attribute.datatype>NUMERIC(10,0)</Attribute.datatype> 
			<Attribute.stereotype>PK</Attribute.stereotype> 
			<Attribute.documentation>Unique identifier, not visible for users.</Attribute.documentation> 
			<Reference> 
				<Reference.name>ordertotalid</Reference.name> 
				<Reference.documentation/> 
				<Reference.class>Orderline</Reference.class> 
				<Reference.mulitplicity>0..*</Reference.mulitplicity> 
				<Reference.optional>True</Reference.optional> 
				<Reference.attribute>orderlineid</Reference.attribute> 
			</Reference> 
		</Attribute> 
		<Attribute> 
			<Attribute.name>totalprice</Attribute.name> 
			<Attribute.datatype>NUMERIC(9,2)</Attribute.datatype> 
			<Attribute.stereotype>NOT NULL</Attribute.stereotype> 
			<Attribute.documentation>The total price for this order: The sum of amount * price of each orderline.</Attribute.documentation> 
		</Attribute> 
		<Attribute> 
			<Attribute.name>orderdate</Attribute.name> 
			<Attribute.datatype>DATETIME</Attribute.datatype> 
			<Attribute.stereotype>NOT NULL</Attribute.stereotype> 
			<Attribute.documentation/> 
		</Attribute> 
		<Attribute> 
			<Attribute.name>remarks</Attribute.name> 
			<Attribute.datatype>TEXT</Attribute.datatype> 
			<Attribute.stereotype>NULL</Attribute.stereotype> 
			<Attribute.documentation/> 
		</Attribute> 
		<Attribute> 
			<Attribute.name>customerid</Attribute.name> 
			<Attribute.datatype>NUMERIC(10,0)</Attribute.datatype> 
			<Attribute.stereotype>FK</Attribute.stereotype> 
			<Attribute.documentation>The customer that placed this order.</Attribute.documentation> 
			<Reference> 
				<Reference.name>customerid</Reference.name> 
				<Reference.documentation>Documenation of the customerid reference.</Reference.documentation> 
				<Reference.class>Customer</Reference.class> 
				<Reference.mulitplicity>1..1</Reference.mulitplicity> 
				<Reference.optional>False</Reference.optional> 
				<Reference.attribute>customerid</Reference.attribute> 
			</Reference> 
		</Attribute> 
		</Class> 
	<Class> 
		<Class.name>Product</Class.name> 
		<Class.stereotype/> 
		<Class.documentation>Products that are available in the Gen-it SampleCase Online Store</Class.documentation> 
		<Attribute> 
			<Attribute.name>productid</Attribute.name> 
			<Attribute.datatype>NUMERIC(10,0)</Attribute.datatype> 
			<Attribute.stereotype>PK</Attribute.stereotype> 
			<Attribute.documentation>Unique identifier, not visible for users.</Attribute.documentation> 
			<Reference> 
				<Reference.name>productid</Reference.name> 
				<Reference.documentation/> 
				<Reference.class>Orderline</Reference.class> 
				<Reference.mulitplicity>0..*</Reference.mulitplicity> 
				<Reference.optional>True</Reference.optional> 
				<Reference.attribute>orderlineid</Reference.attribute> 
			</Reference> 
		</Attribute> 
		<Attribute> 
			<Attribute.name>productname</Attribute.name> 
			<Attribute.datatype>VARCHAR(100)</Attribute.datatype> 
			<Attribute.stereotype>NOT NULL</Attribute.stereotype> 
			<Attribute.documentation/> 
		</Attribute> 
		<Attribute> 
			<Attribute.name>description</Attribute.name> 
			<Attribute.datatype>TEXT</Attribute.datatype> 
			<Attribute.stereotype>NULL</Attribute.stereotype> 
			<Attribute.documentation/> 
		</Attribute> 
		<Attribute> 
			<Attribute.name>price</Attribute.name> 
			<Attribute.datatype>NUMERIC(9,2)</Attribute.datatype> 
			<Attribute.stereotype>NOT NULL</Attribute.stereotype> 
			<Attribute.documentation/> 
		</Attribute> 
		</Class> 
	</Classes> 
</Gen-it>
