Skip to content

Commit 74fe71d

Browse files
committed
feat(Application): Application can configure specified model
1 parent ba16432 commit 74fe71d

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
"""067_ai_model_workspace_mapping
2+
3+
Revision ID: e51127e9aa4a
4+
Revises: 8adc3a4919be
5+
Create Date: 2026-06-01 14:14:23.112843
6+
7+
"""
8+
from alembic import op
9+
import sqlalchemy as sa
10+
import sqlmodel.sql.sqltypes
11+
from sqlalchemy.dialects import postgresql
12+
13+
# revision identifiers, used by Alembic.
14+
revision = 'e51127e9aa4a'
15+
down_revision = '8adc3a4919be'
16+
branch_labels = None
17+
depends_on = None
18+
19+
20+
def upgrade():
21+
# ### commands auto generated by Alembic - please adjust! ###
22+
op.create_table('ai_model_workspace_mapping',
23+
sa.Column('id', sa.BigInteger(), nullable=False),
24+
sa.Column('ai_model_id', sa.BigInteger(), nullable=True),
25+
sa.Column('workspace_id', sa.BigInteger(), nullable=True),
26+
sa.PrimaryKeyConstraint('id')
27+
)
28+
# ### end Alembic commands ###
29+
30+
31+
def downgrade():
32+
# ### commands auto generated by Alembic - please adjust! ###
33+
op.drop_table('ai_model_workspace_mapping')
34+
# ### end Alembic commands ###

0 commit comments

Comments
 (0)