Skip to content

Conversation

@innocenzi
Copy link
Member

Closes #619

This pull request adds support for generating UUID v7 primary keys during insertion. Note that since IsDatabaseModel provides a id property, which cannot be extended to receive the #[Uuid] attribute, this feature is technically not compatible with IsDatabaseModel.

final class User
{
    #[Uuid]
    public PrimaryKey $id;

    public function __construct(
        public string $name,
    ) {}
}

@innocenzi innocenzi marked this pull request as draft December 11, 2025 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants