Skip to content

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

@sverhoeven

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions