By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
CREATE TABLE
INSERT 0 1
| id | to |
|---|---|
| 1 | [{"type": "employee", "assignment": {"something": "..."}}, {"type": "external", "email": "mailbox@foobar.com"}] |
SELECT 1
| id | new_to |
|---|---|
| 1 | [{"type": "employee", "assignment": {"something": "..."}}, {"type": "external", "email": "mailbox@foobar.com.SBX"}] |
SELECT 1
UPDATE 1
| id | to |
|---|---|
| 1 | [{"type": "employee", "assignment": {"something": "..."}}, {"type": "external", "email": "mailbox@foobar.com.SBX"}] |
SELECT 1