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

define DB Schema #19

Open
rbonifacio opened this issue Nov 24, 2016 · 1 comment
Open

define DB Schema #19

rbonifacio opened this issue Nov 24, 2016 · 1 comment
Assignees

Comments

@rbonifacio
Copy link
Contributor

When creating a new DB, Victor would like to specify a database schema. Including:

a) description
b) JSON Schema

In this case, we should save a new document (schema) into the database.

{
"description" : "favorite songs" ,
"json_schema" : <JSON_SCHEMA>
}

Neither description nor schema are mandatory.

Take a look at: https://github.com/travelping/jesse

Sample:

{
"$schema": "http://json-schema.org/draft-03/schema",
"id": "http://jsonschema.net",
"required": false,
"type": "object" ,
"properties": {
[-] "album" : {
"id": "http://jsonschema.net/album",
"required": false,
"type": "string"
},
[-] "author" : {
"id": "http://jsonschema.net/author",
"required": false,
"type": "string"
},
[-] "title" : {
"id": "http://jsonschema.net/title",
"required": false,
"type": "string"
},
[-] "year" : {
"id": "http://jsonschema.net/year",
"required": false,
"type": "string"
}
}
}

@rbonifacio
Copy link
Contributor Author

Actually, the schema should persist in the meta database

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants