Skip to content

Instantly share code, notes, and snippets.

@nix1947
Created September 23, 2021 01:51
Show Gist options
  • Select an option

  • Save nix1947/56e66d1b9d9043e7366ec5f452f64baf to your computer and use it in GitHub Desktop.

Select an option

Save nix1947/56e66d1b9d9043e7366ec5f452f64baf to your computer and use it in GitHub Desktop.

Revisions

  1. nix1947 created this gist Sep 23, 2021.
    3 changes: 3 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@

    -- One to one relation between user_order and shipping_address table.
    create table user_order ADD UNIQUE index("id", "shipping_address_id");