prism-models 0.7.7__py3-none-any.whl → 0.7.8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- prism_models/agent_profile.py +2 -0
- prism_models/migration/versions/2026_02_03_1308_04c9051208cd_default_column_added_to_profile.py +32 -0
- {prism_models-0.7.7.dist-info → prism_models-0.7.8.dist-info}/METADATA +1 -1
- {prism_models-0.7.7.dist-info → prism_models-0.7.8.dist-info}/RECORD +6 -5
- {prism_models-0.7.7.dist-info → prism_models-0.7.8.dist-info}/WHEEL +0 -0
- {prism_models-0.7.7.dist-info → prism_models-0.7.8.dist-info}/top_level.txt +0 -0
prism_models/agent_profile.py
CHANGED
|
@@ -36,6 +36,8 @@ class Profile(BaseModel):
|
|
|
36
36
|
String(255), nullable=True, default="openai:gpt-4.1"
|
|
37
37
|
)
|
|
38
38
|
is_active: Mapped[bool] = mapped_column(Boolean, default=True, nullable=False)
|
|
39
|
+
|
|
40
|
+
is_default: Mapped[bool] = mapped_column(Boolean, default=False, nullable=False)
|
|
39
41
|
|
|
40
42
|
__table_args__ = (UniqueConstraint("name", name="uq_profile_name"),)
|
|
41
43
|
|
prism_models/migration/versions/2026_02_03_1308_04c9051208cd_default_column_added_to_profile.py
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"""Default column added to profile
|
|
2
|
+
|
|
3
|
+
Revision ID: 04c9051208cd
|
|
4
|
+
Revises: ed197421f25a
|
|
5
|
+
Create Date: 2026-02-03 13:08:18.193148
|
|
6
|
+
|
|
7
|
+
"""
|
|
8
|
+
from typing import Sequence, Union
|
|
9
|
+
|
|
10
|
+
from alembic import op
|
|
11
|
+
import sqlalchemy as sa
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# revision identifiers, used by Alembic.
|
|
15
|
+
revision: str = '04c9051208cd'
|
|
16
|
+
down_revision: Union[str, Sequence[str], None] = 'ed197421f25a'
|
|
17
|
+
branch_labels: Union[str, Sequence[str], None] = None
|
|
18
|
+
depends_on: Union[str, Sequence[str], None] = None
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def upgrade() -> None:
|
|
22
|
+
"""Upgrade schema."""
|
|
23
|
+
# ### commands auto generated by Alembic - please adjust! ###
|
|
24
|
+
op.add_column('profile', sa.Column('is_default', sa.Boolean(), nullable=False))
|
|
25
|
+
# ### end Alembic commands ###
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def downgrade() -> None:
|
|
29
|
+
"""Downgrade schema."""
|
|
30
|
+
# ### commands auto generated by Alembic - please adjust! ###
|
|
31
|
+
op.drop_column('profile', 'is_default')
|
|
32
|
+
# ### end Alembic commands ###
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
prism_models/__init__.py,sha256=NBynAYHnMVNrnkDdO_PZ-LlL9vnqAF1DlrTotZY-ZKM,1620
|
|
2
|
-
prism_models/agent_profile.py,sha256=
|
|
2
|
+
prism_models/agent_profile.py,sha256=g5gvkeYUO-W-eociuUWIE3X0Osu3BtOrjZKLjzet2Zs,8249
|
|
3
3
|
prism_models/base.py,sha256=Ka8zNToTiTG0jNgzqqj2goGmPXt8zxuuSMYvotnb8wY,2281
|
|
4
4
|
prism_models/chat.py,sha256=0nsp1u-zzibIYHEAvuz_lu8qzulzzVD7vOjSrwcHMjI,15205
|
|
5
5
|
prism_models/config.py,sha256=gy_6HknnG17Clv8X_EBhaXEBFBLGR1PLjvN5-SFTo5E,962
|
|
@@ -69,7 +69,8 @@ prism_models/migration/versions/2026_01_14_1742_147509a82af8_changed_user_role_e
|
|
|
69
69
|
prism_models/migration/versions/2026_01_15_1010_3b7d0b2e9f5a_add_contact_profile_table.py,sha256=5G-ZmYZGXJ4TNdZms3WDwhHKbUMVp2M94f5uBSVW-j4,2790
|
|
70
70
|
prism_models/migration/versions/2026_01_26_1648_53d6d0b55f11_feedback_changes.py,sha256=KyAE4YxXE1FY8yC5aLoA6TXI9TlI1Bk4kNsT5RCSfBw,878
|
|
71
71
|
prism_models/migration/versions/2026_01_29_1312_ed197421f25a_add_notification_tables.py,sha256=KpP6B5vc55EJedHe04grvgQbyVzMSTh9t8d9qem6wVE,5197
|
|
72
|
-
prism_models
|
|
73
|
-
prism_models-0.7.
|
|
74
|
-
prism_models-0.7.
|
|
75
|
-
prism_models-0.7.
|
|
72
|
+
prism_models/migration/versions/2026_02_03_1308_04c9051208cd_default_column_added_to_profile.py,sha256=n2rkjSd8unV6ngqxA1tNCZBCCSF0KOzJzjfHiR4BVnc,891
|
|
73
|
+
prism_models-0.7.8.dist-info/METADATA,sha256=uUHkcy_EOXosG60td54paJBmLnQb79arYAFFRG0Qexs,283
|
|
74
|
+
prism_models-0.7.8.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
75
|
+
prism_models-0.7.8.dist-info/top_level.txt,sha256=UNzqwpLgFYU0EoyB9LiB1jTtc89A1sQ24fSEyNVvgJI,13
|
|
76
|
+
prism_models-0.7.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|