Time of creation for record in datatsore?

Is there an inbuilt way to find the time a certain record in my database / datastore was created?

I want to reward Alpha Testers for playing the game and the easiest way I can think of doing this is checking if the record was created before a certain UNIX time. Of course, I could save the time of creation to every new record but that doesn’t really help out. If anyone has any ideas, let me know :slight_smile:

If you haven’t yet released the game out of alpha, give the players a badge when they join the game, then check for that badge to know they’re an alpha tester.

2 Likes

Save the time of creation to every new record, and for every record you consider:

  • If the timestamp is not defined (nil), then they are alpha testers.
  • If the timestamp is defined and before a time X, they are alpha testers, otherwise they are not.
6 Likes

I personally prefer the badge method because its something visual on their profile that they can show off to their friends without having to show them in-game like an Alpha Tester title or tester only item but doing that is also cool too. And its one less thing you have to store in the datastore and one less thing to worry about if datastore issues happen.

Thanks for the responses guys :slight_smile:

I agree with @Dev_Ryan that it makes sense to give them a badge. However, my problem was I hadn’t got a record of all users whom had joined / played before the launch of the beta phase.

The idea @buildthomas suggested is really what I was going to move towards. It’s useful because it allows me to then allocate those users with the badge, and also allows me to then update their timestamp once they have the badge. A very helpful reply!