Better support for Object Validation Rules in Site Initializers

What is the problem you are trying to solve?

Currently, Site Initializers allow developers to declare Object Definitions, fields, and relationships as source configuration. However, there is no supported way to define Object Validation Rules for relationship field rules (such as composite key checks) within the initializer files. Because these type of validation rules cannot be declared in the codebase, administrators must manually recreate them through the Liferay Control Panel after every site deployment, which defeats the purpose of automated Infrastructure-as-Code.

What is your project about? (e. g. Intranet, Partner Portal, Enterprise Website, etc)

This is for all type of projects using Site Initializers

What is your proposed solution? (optional)

Introduce a standardized folder structure (e.g., object-validation-rules/) in Site Initializers.

Ensure validations can reference relationship fields to enforce composite business rules (e.g., Student A cannot register for Session B more than once).

Clue (by AI):
Validations often depend on relationship fields. In the current import flow, relationships are created after definitions, so having a dedicated validation import stage that executes after relationships are established would prevent reference errors.