You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users will want to store data that represents money. We should allow them to do so and provide an intuitive user experience for them.
Proposed solution
We need a design for the following functionality for the money data type:
Displaying columns of this type in tables
Creating a new column with this data type
Changing an existing column to this data type (including error states)
Showing non-technical users a friendly name for this data type. (The underlying Postgres data type will be a custom type).
Columns of this type can be either our custom MATHESAR_MONEY type (which has more functionality) or the default MONEY type in the database. Most of the functionality will remain the same, but we cannot change the currency or decimal precision for the default MONEY type.
Options
Columns of this type will have the following options:
Specific to this Type
Currency
Decimal precision
(Both of these should have pre-filled options)
Common to all Types
Default value (this will be the default value of the column if the user doesn't enter anything)
Allow empty values (whether the column is nullable)
Unique (whether the values in the column have to be unique, validated at the DB level)
Problem
Users will want to store data that represents money. We should allow them to do so and provide an intuitive user experience for them.
Proposed solution
We need a design for the following functionality for the money data type:
Columns of this type can be either our custom
MATHESAR_MONEY
type (which has more functionality) or the defaultMONEY
type in the database. Most of the functionality will remain the same, but we cannot change the currency or decimal precision for the defaultMONEY
type.Options
Columns of this type will have the following options:
Specific to this Type
(Both of these should have pre-filled options)
Common to all Types
Grouping
Columns of this type will be able to grouped by:
Please see #238 for notes about ranges.
Filtering
Columns of this type will support the following filters:
Additional Context
The text was updated successfully, but these errors were encountered: