change database to postgresql
mysql can't use CHECK. So I change the database to postgresql.
CHECK can working now.