; First load the JDBC driver and open a database.
d jdbc.idbDriver;
o jdbc:idb=db/sample.prp;

; Create the table and its index
e DROP TABLE Pizza;
e CREATE TABLE Pizza (
	 id long primary key,
   name varchar(255),
   basePrice decimal(8,2),
   size varchar(20) );
e DROP TABLE Ingredient;
e CREATE TABLE Ingredient (
	 id long primary key,
   name varchar(255),
   price decimal(8,2));
e DROP TABLE Order;
e CREATE TABLE Order (
	 id long primary key,
  firstname varchar(30),
  lastname varchar(30),
  address1 varchar(50),
  address1 varchar(50),
  town varchar(50),
	zip varchar(10),
	mail varchar(80));
e DROP TABLE PersonalPizza;
e CREATE TABLE PersonalPizza (
	 orderId long,
   name varchar(255),
   basePrice decimal(8,2),
   size varchar(20) );
e DROP TABLE PersonalIngredient;
e CREATE TABLE PersonalIngredient (
   name varchar(255),
   price decimal(8,2),
   	orderId long);
   
c close;
