[font="Times New Roman"][size="4"]i have a model appointment, want to define rules function in model to validate these conditions before submit
[b]
start_time < end_time
end_time > start_time
start_time != end_time [/b]
Appointment-table has following fields
id(PK), title, client_name, app_date, start_time, end_time, status [/size][/font]