mini\Database\Attributes\CreatedAt
class
Documentation
Marks property as a creation timestamp
Query: Parsed internally by Dehydrator — never use ReflectionClass directly.
During dehydration, if the property value is null or uninitialized, it will be set to the current datetime.
Works with DateTimeImmutable, DateTime, and string properties.
Example:
#[CreatedAt]
public ?\DateTimeImmutable $created_at = null;
#[CreatedAt]
public string $created_at;