Skip to content

Implementation Schema Repository #1

Description

@eneshoxha

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

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions