By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
id | user_id | content_type | order_id_expected | order_id |
---|---|---|---|---|
1 | 1 | 0 | 0 | 0 |
2 | 1 | 0 | 1 | 1 |
3 | 1 | 1 | 0 | 0 |
4 | 1 | 1 | 1 | 1 |
5 | 1 | 1 | 2 | 2 |
6 | 2 | 0 | 0 | 0 |
7 | 2 | 1 | 0 | 0 |
8 | 3 | 0 | 0 | 0 |
9 | 4 | 1 | 0 | 0 |