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

Recursive Codes #10

Open
jankapunkt opened this issue Apr 30, 2024 · 1 comment
Open

Recursive Codes #10

jankapunkt opened this issue Apr 30, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request REFI UI/UX

Comments

@jankapunkt
Copy link
Member

We need to support recursive codes to a (theoretically) infinite level of nesting.

@jankapunkt jankapunkt added enhancement New feature or request REFI UI/UX labels Apr 30, 2024
@jankapunkt jankapunkt added this to the Pre-Release milestone Apr 30, 2024
@alessandrobelli
Copy link
Contributor

Database-wise it's already possible. I will link the docs as soon as they're online, but this is the code model, where the parent_id is creating the recursion.

erDiagram
    CODEBOOK ||--o{ CODES : "contains many"
    CODES {
        char id PK "char(36), Not Null, Default 'uuid()', DEFAULT_GENERATED"
        varchar name "varchar(255), Not Null"
        varchar color "varchar(255), Not Null"
        bigint codebook_id FK "bigint unsigned, Not Null, MUL"
        text description "text, Nullable"
        char parent_id FK "char(36), Nullable, MUL"
    }

    CODES ||--o{ CODES : "can have one parent"
    CODEBOOK {
        bigint id PK "bigint unsigned, Not Null"
    }


Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request REFI UI/UX
Projects
None yet
Development

No branches or pull requests

2 participants