How set switch component to save 0 when is false and 1 when is true to db

Hi i added a switch component to my form, i got a mysql db already set where value of the switch may be 1 (active) or 0 (inactive) how i can set switch component to save those values? currently is sending true or false but is not saving to my db

thank you

fixed by using {{switch1.value ? "1" : "0"}} :slight_smile: works good