Commit 5d658fb5 authored by Tobias Kallauke's avatar Tobias Kallauke
Browse files

Add prototype api db schema

parent 99f31f66
classDiagram
class User {
id: int
login: string
}
class Group {
id: int
name: string
created_at: timestamp
parent_id: int
manager_id: int
}
class Capability {
id: int
name: string
consumer_id: int
}
class Consumer {
id: int
name: string
}
class Permission {
id: int
user_id: int
group_id: int
permission: int
}
class GroupMember {
membership_id: int
group_id: int
user_id: int
capability_id: int
}
class ConfigParameterType {
<<enumeration>>
String
Bool
}
class ConfigValue {
id: int
value: string
group_id: int
parameter_id: int
created_at: timestamp
valid_until: timestamp
}
class ConfigParameter {
id: int
name: string
type: ConfigParameterType
format: string
default: string
consumer_id: int
}
Group -- ConfigValue
ConfigValue -- ConfigParameter
ConfigParameter -- Consumer
ConfigParameter .. ConfigParameterType
Capability -- Consumer
GroupMember -- User
GroupMember -- Group
GroupMember -- Capability
Permission -- Group
Permission -- User
Group -- Group : Parent
Group -- User : Manager
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment