2026-05-03 09:09:23 -03:00
|
|
|
### CRDT data table.
|
|
|
|
|
###
|
|
|
|
|
### This table stores only the HLC timestamp for a field. During merge, if the
|
|
|
|
|
### other HLC is greater, the actual data must be fetched from the table itself.
|
|
|
|
|
class: CrdtDataField
|
|
|
|
|
extends: BaseHlc
|
|
|
|
|
table: crdt_data_fields
|
|
|
|
|
database: all
|
|
|
|
|
fields:
|
|
|
|
|
### Row that the field belongs to.
|
|
|
|
|
row: CrdtDataRow?, relation(name=row_fields, onDelete=Cascade)
|
|
|
|
|
|
|
|
|
|
### Column that the field belongs to.
|
|
|
|
|
column: CrdtSchemaColumn?, relation(onDelete=Cascade)
|
|
|
|
|
|
|
|
|
|
### The node that updated the field.
|
|
|
|
|
node: CrdtNode?, relation
|
|
|
|
|
|
2026-06-10 17:31:05 -03:00
|
|
|
### The foreign key information for the field, if this field holds a
|
|
|
|
|
### reference to another row.
|
|
|
|
|
foreignKey: CrdtDataForeignKey?, relation(optional, name=field_foreign_key)
|
|
|
|
|
|
2026-05-03 09:09:23 -03:00
|
|
|
indexes:
|
|
|
|
|
crdt_data_fields_row_column_idx:
|
|
|
|
|
fields: rowId, columnId
|
|
|
|
|
unique: true
|