Replies: 7 comments 8 replies
-
Database DesignThe database structure of the table would be:
The setup of this table for every tenant looks like the query below. This query adds the default types we support out of the box today
API
|
Beta Was this translation helpful? Give feedback.
-
I feel we should the same semantics as functions here. The name of the type itself should be the id - better to have types that have unique names than allowing for name clashes. Few more questions to address:
|
Beta Was this translation helpful? Give feedback.
-
Sure @knutties , will do this.
Both tables have a schema column, we should copy the schema - if users want to update the type they can manually |
Beta Was this translation helpful? Give feedback.
-
Difference between |
Beta Was this translation helpful? Give feedback.
-
@Datron Why have we created index for created_at ? |
Beta Was this translation helpful? Give feedback.
-
Let us also not depend on database primitives for ids.
Let us send it from the app itself. In this case we can use the name itself as the id and restrict it to alphanumeric string. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Allow users to store custom types for forms where type is a dropdown. You can reuse the jsonschema validations, or customize some of the default types to fit the tenant's requirements. For eg, if teams want nullable default types, they can edit the type and allow null values (which is not allowed in Superposition today)
Beta Was this translation helpful? Give feedback.
All reactions