     include_area_sources boolean
         CONSTRAINT include_area_sources_is_set
         CHECK(
-            ((job_type IN ('classical', 'event_based', 'disaggregation'))
+            ((job_type != 'deterministic')
              AND (include_area_sources IS NOT NULL))
             OR
             ((job_type = 'deterministic')

    id SERIAL PRIMARY KEY,
    job_type VARCHAR NOT NULL CONSTRAINT job_type_value
        CHECK(job_type IN ('classical', 'event_based', 'deterministic',
                           'disaggregation')),
    input_set_id INTEGER NOT NULL,
    region_grid_spacing float,
    min_magnitude float CONSTRAINT min_magnitude_set

    maximum_distance VARCHAR
        CONSTRAINT maximum_distance_is_set
        CHECK(
            ((job_type IN ('classical', 'disaggregation', 'uhs'))
             AND (maximum_distance IS NOT NULL))
            OR
            ((job_type IN ('deterministic', 'event_based'))
