Created
October 20, 2021 14:38
-
-
Save mosheeshel/97b2874f169690d5ddb076e1782055e3 to your computer and use it in GitHub Desktop.
A thought about a model for a Feature Flag system (really basic)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
erDiagram | |
Project ||..|{ Environment :has | |
Project ||..|{ FeatureFlag :has | |
Environment ||..|{ Segment :has | |
Environment ||..|{ EnvironmentFeatureFlag : has | |
FeatureFlag ||..|{ EnvironmentFeatureFlag : has | |
EnvironmentFeatureFlag ||..|{ UserTargeting : has | |
Segment ||..|{ UserTargeting : has | |
Audit | |
Workflow | |
Users ||..|{ UserPermissions : has | |
Audit { | |
uuid id | |
uuid entity_id | |
timestamp change_date | |
blob change | |
} | |
Users { | |
uuid id | |
string username | |
} | |
EnvironmentFeatureFlag { | |
uuid id | |
uuid environment_id | |
uuid feature_flag_id | |
string defaultValue | |
} | |
UserTargeting { | |
uuid id | |
uuid environment_feature_flag_id | |
string target | |
} | |
FeatureFlag { | |
uuid id | |
uuid project_id | |
string name | |
string description | |
int type | |
string defaultValueOn | |
string defaultValueOff | |
} | |
Project { | |
uuid id | |
string name | |
string description | |
} | |
Environment { | |
uuid id | |
uuid project_id | |
string name | |
string description | |
} | |
Segment { | |
uuid id | |
uuid environment_id | |
string name | |
string description | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This Markdown syntax is supported by https://mermaid-js.github.io/ project

https://mermaid-js.github.io/mermaid-live-editor/
This is the visual representation
Feel free to comment on this with your thoughts as to how to push ahead