mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 12:30:41 +01:00
feat(be): add user id for access key
This commit is contained in:
parent
ebc42a208b
commit
991979041f
@ -43,6 +43,7 @@ type AccessKey struct {
|
||||
OverrideSecret bool `db:"-" json:"override_secret"`
|
||||
|
||||
EnvironmentID *int `db:"environment_id" json:"-"`
|
||||
UserID *int `db:"user_id" json:"-"`
|
||||
}
|
||||
|
||||
type LoginPassword struct {
|
||||
|
@ -1 +1,2 @@
|
||||
alter table `access_key` add `environment_id` int null references project__environment(`id`) on delete set null;
|
||||
alter table `access_key` add `environment_id` int null references project__environment(`id`) on delete cascade;
|
||||
alter table `access_key` add `user_id` int null references user(`id`) on delete cascade;
|
Loading…
Reference in New Issue
Block a user