Update schema.sql

bugfix foreign key errno 150 due to data type