iam roles (#116)

This commit is contained in:
Jim authored and GitHub committed 2020-06-15 12:42:08 -04:00
1 parent 1637403624
commit ffddf24f86
14 files changed
+1671 -2

No files matched your search

@@ -0,0 +1,38 @@
syntax = "proto3";
package controller.storage.iam.store.v1;
option go_package = "github.com/hashicorp/watchtower/internal/iam/store;store";
import "controller/storage/timestamp/v1/timestamp.proto";
import "controller/storage/iam/store/v1/scope.proto";
message Role {
// public_id is used to access the Role via an API
// @inject_tag: gorm:"primary_key"
string public_id = 1;
// create_time from the RDBMS
// @inject_tag: `gorm:"default:current_timestamp"`
timestamp.v1.Timestamp create_time = 2;
// update_time from the RDBMS
// @inject_tag: `gorm:"default:current_timestamp"`
timestamp.v1.Timestamp update_time = 3;
// name is the optional friendly name used to
// access the Role via an API
// @inject_tag: `gorm:"default:null"`
string name = 5;
// description of the role
// @inject_tag: `gorm:"default:null"`
string description = 6;
// scope id for the role
// @inject_tag: `gorm:"default:null"`
string scope_id = 7;
// disabled is by default false and allows a Role to be marked disabled.
// @inject_tag: `gorm:"default:null"`
bool disabled = 9;
}