Open geovlazar opened 8 months ago
During the process of changing 'autoIncPK' to 'ulidPrimaryKey()' for the key-value pair of enum tables, we encountered an issue with the insertDML, resulting in the error:
Type '{ code: string; value: string; }' is not assignable to type 'InsertableRecord'.
Property 'id' is missing in type '{ code: string; value: string; }' but required in type 'Omit<Omit<EntireRecord, never>, never>'.deno-ts(2322)
As discussed previously, we have decided to temporarily ignore changing 'autoIncPK' to 'ulidPrimaryKey' for the following enum tables due to this issue.
Infra Assurance model uses autoIncPK which causes duplication while merging with other databases.
Infra Assurances model is designed in a way to use autoinfrement primary key for all its tables and it generates data without any issues. but when we think about we are using the same with multiple
Generalize the primary with the ULID model which supports merging and combining different models
Update all models by replacing
autoIncPK
toulidPrimaryKey()
to support our tables with multiple systems