group BusinessAccountTag;

getTagsForAccount(account_key) ::=<<
select
  account_key
, name
from bac_tags
where account_key = :account_key
;
>>

addTag(account_key, name) ::=<<
insert into bac_tags (
  account_key
, name
) values (
  :account_key
, :name
);
>>

removeTag(account_key, name) ::= <<
delete from bac_tags where account_key = :account_key and name = :name;
>>

test() ::= <<
select 1 from bac_tags;
>>