agent enrollment store implementation (#967)

This commit is contained in:
Michael Quigley
2025-05-30 14:10:54 -04:00
parent 8a4e535dfb
commit ca88575782
3 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,14 @@
-- +migrate Up
create table agent_enrollments (
id serial primary key,
environment_id integer not null references environments(id),
token varchar(32) not null unique,
created_at timestamptz not null default(current_timestamp),
updated_at timestamptz not null default(current_timestamp),
deleted boolean not null default(false)
);
create index agent_enrollments_environment_id_idx on agent_enrollments(environment_id);