moonstream-to / api

Building blocks for your blockchain economy
https://moonstream.to
Apache License 2.0
135 stars 49 forks source link

User RDS database schema. With tables synchronize possiblity. #1001

Open Andrei-Dolgolev opened 7 months ago

Andrei-Dolgolev commented 7 months ago

Current suggestion:

Create RDS like /models.py (maybe go)

Left database structure.

<blockchain>_blocks
<blockchain>_transactions
<blockchain>_labels

Worker must be able to add new blockchain tables(migrations alembic).

Command RDS-tables-synchronize take latest structure and apply migrations. (Can be done overs standart alembic)

User have only read permission.