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

Implementation Schema Repository #1

Open
eneshoxha opened this issue Jul 17, 2022 · 0 comments
Open

Implementation Schema Repository #1

eneshoxha opened this issue Jul 17, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request v3.x.x
Milestone

Comments

@eneshoxha
Copy link
Contributor

eneshoxha commented Jul 17, 2022

In this issue is described the repository inside schemahub that will contain and store metadatas for schemas. The schema records will be versionized and will be store for each tenant. Also, there tags will be supported.

As the schemas will be stored inside the service, it will be used SQLite.

There will be two data stores, one for tenant and the other is for schema,
physical paths to these stores is

~/data/store/tenants_store.andx
~/data/store/schemas/schemas_store.andx

TenantRepository

tenants_store.andx

will contain a table Tenants and will contain these fields:

id tenant_name status updated_date created_date
10001 default active 2022-08-14 2022-08-14
10002 public active 2022-08-14 2022-08-14

SchemaRepository

schemas_store.andx

will contain two tabes one "Schemas" and "Tags"

Schemas table contains

id tenant domain name (unique for domain) version schema (or schema_location) status schema_type updated_date created_date updated_by created_by
001 default Customers private_individuals 0.0.1 {json_schema} draft JSON 2022-08-14 2022-08-14 SYSTEM SYSTEM
@eneshoxha eneshoxha added enhancement New feature or request v3.x.x labels Jul 17, 2022
@eneshoxha eneshoxha added this to the v3.0 milestone Jul 17, 2022
@eneshoxha eneshoxha self-assigned this Jul 17, 2022
@eneshoxha eneshoxha changed the title Implementation Rest Endpoint Structure Implementation Schema Repository Aug 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v3.x.x
Projects
None yet
Development

No branches or pull requests

2 participants