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 select serial integers as a data type for a column #9035

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

Comments

@akshaysasidrn
Copy link
Collaborator

akshaysasidrn commented Mar 8, 2024

Is your proposal related to a problem?

Serially generated integers are only part of the id column and can't be picked up by the user for any other columns

Describe the solution you'd like

PRD: link
ADR: link
Design: link

A user should able to select serial datatype along with all the other data types.

With the release of the custom primary key, it becomes necessary to make "Serial Type" available as a data type. Since Serial type is an auto-generated auto-incremented field, it will have the following properties

  • It cannot have a default value. Therefore upon selecting "Serial" field type, the default value input field for the column will become disabled.
  • It has NOT NULL and UNIQUE constraints by design in Postgres. Therefore, upon selecting "Serial" field type, these constraints will also reflect on UI.

Copywriting for serial datatype: Serially generated integers

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