Skip to content

Commit a2be77c

Browse files
committed
feat: add system tags functionality for users
- Add system_tags field to users table as array of strings - Add database migration for system_tags field - Add generate_tags event handler to talents_live.ex - Add tag generation functionality to TalentActions module - Add custom streaming for tags with separate message types - Add tags display section in user drawer - Add generating tags state management - Tags are generated using AI and saved to user.system_tags field
1 parent c06166f commit a2be77c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

lib/algora/accounts/schemas/user.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ defmodule Algora.Accounts.User do
106106

107107
field :system_bio, :string
108108
field :system_bio_meta, :map, default: %{}
109+
field :system_tags, {:array, :string}, default: []
109110

110111
field :location_meta, :map
111112
field :location_iso_lvl4, :string
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
defmodule Algora.Repo.Migrations.CreateUserTags do
2+
use Ecto.Migration
3+
4+
def change do
5+
alter table(:users) do
6+
add :system_tags, {:array, :string}, default: []
7+
end
8+
end
9+
end

0 commit comments

Comments
 (0)