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

Database design #4

Closed
kratsg opened this issue Jul 3, 2017 · 6 comments
Closed

Database design #4

kratsg opened this issue Jul 3, 2017 · 6 comments
Assignees

Comments

@kratsg
Copy link
Contributor

kratsg commented Jul 3, 2017

We should design and flesh out our databases carefully. SX uses the following: https://meta.stackexchange.com/questions/2677/database-schema-documentation-for-the-public-data-dump-and-sede/2678#2678

@kratsg
Copy link
Contributor Author

kratsg commented Jul 3, 2017

Do we want to use a graph database like neo4j?

@meltedspork
Copy link
Contributor

meltedspork commented Oct 19, 2017

Lets keep it simple for now

Basic schema

Author

  • id {int}
  • email {String}
  • username {String}
  • AuthO id?

Sign

  • id {int}
  • name {String}
  • author id {int}
  • description {Text}
  • terminologies {Array}
    -- id {int}
  • categories {Array}
    -- id {int}
  • introspects {Array}
    -- id {int}
  • path {String}

Category

  • id {id}
  • name {String}
  • description {Text}

Introspect

  • id {id}
  • name {String}
  • description {Text}

Terminology

  • id {id}
  • name {String}
  • description {Text}

@kratsg kratsg self-assigned this Oct 19, 2017
@kratsg
Copy link
Contributor Author

kratsg commented Oct 19, 2017

Using #6 - I'll write up this schema in sequelize.

@meltedspork
Copy link
Contributor

Is this done?

@kratsg
Copy link
Contributor Author

kratsg commented Jan 30, 2018

For now. We need to migrate to remove a users table. But that's a new issue.

@meltedspork
Copy link
Contributor

#17 has been created for removing users table.

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

2 participants