> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFLeaderboardsLeaderboardDefinition

> Reference for the PFLeaderboardsLeaderboardDefinition struct in the PlayFab Services C API, listing a leaderboard's columns, entity type, and versioning.

PFLeaderboardsLeaderboardDefinition data model.

## Syntax

```cpp theme={null}
typedef struct PFLeaderboardsLeaderboardDefinition {  
    PFLeaderboardsLeaderboardColumn const* columns;  
    uint32_t columnsCount;  
    time_t created;  
    const char* entityType;  
    PFLeaderboardsLeaderboardEventEmissionConfig const* eventEmissionConfig;  
    time_t const* lastResetTime;  
    const char* name;  
    int32_t sizeLimit;  
    uint32_t version;  
    PFVersionConfiguration const* versionConfiguration;  
} PFLeaderboardsLeaderboardDefinition;  
```

### Members

**`columns`**   [PFLeaderboardsLeaderboardColumn](/services/playfab/api-references/c/pfleaderboardstypes/structs/pfleaderboardsleaderboardcolumn) const\*

Sort direction of the leaderboard columns, cannot be changed after creation.

**`columnsCount`**   uint32\_t

Count of columns

**`created`**   time\_t

Created time, in UTC.

**`entityType`**   const char\*<br />*is null-terminated*

The entity type being represented on the leaderboard. If it doesn't correspond to the PlayFab entity types, use 'external' as the type.

**`eventEmissionConfig`**   [PFLeaderboardsLeaderboardEventEmissionConfig](/services/playfab/api-references/c/pfleaderboardstypes/structs/pfleaderboardsleaderboardeventemissionconfig) const\*<br />*may be nullptr*

(Optional) \[In Preview]: The configuration for the events emitted by this leaderboard. If not specified, no events will be emitted.

**`lastResetTime`**   time\_t const\*<br />*may be nullptr*

(Optional) Last time, in UTC, leaderboard version was incremented.

**`name`**   const char\*<br />*is null-terminated*

A name for the leaderboard, unique per title.

**`sizeLimit`**   int32\_t

Maximum number of entries on this leaderboard.

**`version`**   uint32\_t

Latest Leaderboard version.

**`versionConfiguration`**   PFVersionConfiguration const\*

The version reset configuration for the leaderboard definition.

## Requirements

**Header:** PFLeaderboardsTypes.h

## See also

[PFLeaderboardsTypes members](/services/playfab/api-references/c/pfleaderboardstypes/pfleaderboardstypes_members)


## Related topics

- [PFLeaderboardsListLeaderboardDefinitionsResponse](/services/playfab/api-references/c/pfleaderboardstypes/structs/pfleaderboardslistleaderboarddefinitionsresponse.md)
- [Services C API overview - PFLeaderboardsTypes.h](/services/playfab/api-references/c/pfleaderboardstypes/pfleaderboardstypes_members.md)
- [PFLeaderboardsDeleteLeaderboardDefinitionRequest](/services/playfab/api-references/c/pfleaderboardstypes/structs/pfleaderboardsdeleteleaderboarddefinitionrequest.md)
- [PFLeaderboardsUpdateLeaderboardDefinitionAsync](/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsupdateleaderboarddefinitionasync.md)
- [PFLeaderboardsDeleteLeaderboardDefinitionAsync](/services/playfab/api-references/c/pfleaderboards/functions/pfleaderboardsdeleteleaderboarddefinitionasync.md)
