Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TJDB: As a user I should be able to create primary key on table creation #9034

Closed
akshaysasidrn opened this issue Mar 8, 2024 · 0 comments
Closed

Comments

@akshaysasidrn
Copy link
Collaborator

akshaysasidrn commented Mar 8, 2024

Is your proposal related to a problem?

  • The user is unable to change the data type of ID field
  • The user is unable to add a custom Primary Key (single and composite)

Describe the solution you'd like

PRD: link
ADR: link

Changes:

  • New interface for Table schema (repositioning and pinning of columns are skipped)
  • Primary key column is always created with Id for column name of type serial on create table drawer open
  • Primary key selection from single to composite is done with checkboxes
  • Primary key selection will enable not null constraint for the specific column
  • New icon for primary key

Constraints to note:

  • Not-Null: Primary Key Fields by default become NOT NULL
  • Uniqueness: Upon data entry, Primary Key Fields have to be checked for uniqueness
  • Data Type Compatibility: Primary Key Fields must have compatible data types
  • Immutable Data Types: Once set, primary key values can not be edited
  • Composite Key Limitation: Data length for composite key will depend upon underlying data length of fields selected to be primary key

image

@akshaysasidrn akshaysasidrn added this to the Database 1.1 milestone Mar 8, 2024
@akshaysasidrn akshaysasidrn changed the title TJDB: As a user I should be able to define primary key on table creation TJDB: As a user I should be able to create primary key on table creation Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants