change table creation script to include constants in the check condition