Skip to content

Mark primary keys in many-2-many tables as not null #7

Description

@sverhoeven

Most primary keys are marked as NOT NULL, but when they are used in many-2-many table as foreign keys they are not.

The docs says its mandatory like experiment_setup table must have measurement_pk and condition_pk.

Could NOT NULL be added to places where they are mandatory?

This will help my ORM generate correct Typescript types. Now I have to check if a pk value is null, while it never can be.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions