Created
May 23, 2024 17:52
-
-
Save zachdaniel/568f921193cb70597726a794a485f07c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```elixir | |
def macro uuidv7_primary(name , opts \\ []) do | |
quote do | |
attribute unquote(name), :uuid, Keyword.merge(unquote(opts), [...your_defaults]) | |
end | |
end | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment