Skip to content

brainstorming: Is a good UI for editing join tables possible? #55

@cldellow

Description

@cldellow

Imagine:

CREATE TABLE post(
  id integer primary key,
  title text
);

CREATE TABLE tag(
  id integer primary key,
  title text
);

CREATE TABLE post_tag(
  post_id integer references post(id),
  tag_id integer references tag(id),
  primary key(post_id, tag_id)
);

Or:

CREATE TABLE post(
  id integer primary key,
  title text
);

CREATE TABLE post_tag(
  post_id integer not null references post(id),
  tag text not null,
  primary key(post_id, tag)
);

Is there a way this can fit into the editing model such that the user sees a list of tags when looking at /db/post/1 ?

The currently proposal would have the user go to /db/post to create the post, go to /db/tag to create the tags, then go to /db/post_tag and create new records. It works, but is very clunky.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions