* wip * IAM: Create Service Account * Add dual writer * Update openapi_test.go * Add integration tests * Add sql tests * Add Role to SA spec, add validation, add DBTime, add tests * Format, update test * Fixes * Add check for External * Address feedback * Update tests * Address feedback * make gen-go * Simplify a bit * Fixes * make update-workspace * Update pkg/registry/apis/iam/serviceaccount/store.go Co-authored-by: Ryan McKinley <ryantxu@gmail.com> * Address feedback, add test for generateName --------- Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
8 lines
512 B
SQL
8 lines
512 B
SQL
INSERT INTO {{ .Ident .UserTable }}
|
|
(uid, version, login, email, name, org_id, is_admin, is_disabled, email_verified,
|
|
is_provisioned, is_service_account, salt, rands, created, updated, last_seen_at)
|
|
VALUES
|
|
({{ .Arg .Command.UID }}, 0, {{ .Arg .Command.Login }}, {{ .Arg .Command.Email }}, {{ .Arg .Command.Name }},
|
|
{{ .Arg .Command.OrgID }}, false, {{ .Arg .Command.IsDisabled }}, false,
|
|
false, true, '', '', {{ .Arg .Command.Created }}, {{ .Arg .Command.Updated }}, {{ .Arg .Command.LastSeenAt }})
|