Skip to content

Commit

Permalink
Merge pull request #1680 from genesiscommunitysuccess/pk/timestamp
Browse files Browse the repository at this point in the history
Update documentation for database fields in GenesisFlake
  • Loading branch information
wjhendry authored May 23, 2024
2 parents a670859 + 56e559d commit b07bb96
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/02_database/01_fields-tables-views/04_timestamps.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ tags:
- genesisflake
---

When you generate a database on the Genesis low-code platform, every table in the database is given a TIMESTAMP field. This contains a timestamp value that is generated automatically by GenesisFlake every time a change is made to the database. The `TIMESTAMP` field in GenesisFlake represents the creation time of a record, not the last modified time.
When you generate a database on the Genesis platform, every table in the database is given a TIMESTAMP and a RECORD_ID field.

- The `TIMESTAMP` field value is generated automatically by GenesisFlake every time a change is made to the database.
- The `RECORD_ID` field is the `TIMESTAMP` value when the record is first created, it will never change.

The database generates a new `TIMESTAMP` for every modify operation, even if no other fields are changed.

To create these values, GenesisFlake generates IDs in a similar manner to Twitter’s [snowflake](https://developer.twitter.com/en/docs/basics/twitter-ids). It is able to generate these IDs without having to perform database-level synchronisation - which ensures high performance.

Expand Down

0 comments on commit b07bb96

Please sign in to comment.