forked from fastapi/full-stack-fastapi-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4cef3c3
commit b52d0d7
Showing
45 changed files
with
5,016 additions
and
891 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
backend/app/alembic/versions/0e3f5b4ac311_add_fields_to_referral.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
"""Add fields to referral | ||
Revision ID: 0e3f5b4ac311 | ||
Revises: 823daaece31a | ||
Create Date: 2024-06-20 21:48:33.480486 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
import sqlmodel.sql.sqltypes | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '0e3f5b4ac311' | ||
down_revision = '823daaece31a' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('referral', sa.Column('daystohire', sa.Integer(), nullable=True)) | ||
op.add_column('referral', sa.Column('creditrepair', sqlmodel.sql.sqltypes.AutoString(), nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column('referral', 'creditrepair') | ||
op.drop_column('referral', 'daystohire') | ||
# ### end Alembic commands ### |
29 changes: 29 additions & 0 deletions
29
backend/app/alembic/versions/19a30555c420_added_rate_override.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
"""added rate override | ||
Revision ID: 19a30555c420 | ||
Revises: 55e3e7adc035 | ||
Create Date: 2024-06-27 13:34:52.105505 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
import sqlmodel.sql.sqltypes | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '19a30555c420' | ||
down_revision = '55e3e7adc035' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('supplier_rate', sa.Column('rate_override', sqlmodel.sql.sqltypes.AutoString(), server_default='No', nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column('supplier_rate', 'rate_override') | ||
# ### end Alembic commands ### |
33 changes: 33 additions & 0 deletions
33
backend/app/alembic/versions/1a064a7a9ffd_add_constraint_to_supplier_stat.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
"""Add constraint to supplier_stat | ||
Revision ID: 1a064a7a9ffd | ||
Revises: a1563c57883e | ||
Create Date: 2024-06-26 10:09:33.596156 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
import sqlmodel.sql.sqltypes | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '1a064a7a9ffd' | ||
down_revision = 'a1563c57883e' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_constraint('supplier_stat_uniquecol_key', 'supplier_stat', type_='unique') | ||
op.create_unique_constraint('supplier_stat_constraint', 'supplier_stat', ['authority_id', 'veh_group_id', 'circs_group_id', 'supplier_id']) | ||
op.drop_column('supplier_stat', 'uniquecol') | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('supplier_stat', sa.Column('uniquecol', sa.VARCHAR(), autoincrement=False, nullable=True)) | ||
op.drop_constraint('supplier_stat_constraint', 'supplier_stat', type_='unique') | ||
op.create_unique_constraint('supplier_stat_uniquecol_key', 'supplier_stat', ['uniquecol']) | ||
# ### end Alembic commands ### |
31 changes: 31 additions & 0 deletions
31
backend/app/alembic/versions/399c60ab29a9_add_source_link_to_user.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
"""Add source link to user | ||
Revision ID: 399c60ab29a9 | ||
Revises: 25220aaf861f | ||
Create Date: 2024-06-20 11:45:49.758014 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
import sqlmodel.sql.sqltypes | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '399c60ab29a9' | ||
down_revision = '25220aaf861f' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('user', sa.Column('assigned_source_id', sa.Integer(), nullable=True)) | ||
op.create_foreign_key(None, 'user', 'source', ['assigned_source_id'], ['id']) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_constraint(None, 'user', type_='foreignkey') | ||
op.drop_column('user', 'assigned_source_id') | ||
# ### end Alembic commands ### |
37 changes: 37 additions & 0 deletions
37
backend/app/alembic/versions/42a2dea4a6ed_add_columns_to_suplier_stats.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
"""Add columns to suplier stats | ||
Revision ID: 42a2dea4a6ed | ||
Revises: f327615111b1 | ||
Create Date: 2024-06-24 20:50:06.908063 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
import sqlmodel.sql.sqltypes | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '42a2dea4a6ed' | ||
down_revision = 'f327615111b1' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('supplier_stat', sa.Column('rate_rank', sa.Integer(), nullable=True)) | ||
op.add_column('supplier_stat', sa.Column('daystohire', sa.Integer(), nullable=True)) | ||
op.add_column('supplier_stat', sa.Column('daystohire_rank', sa.Integer(), nullable=True)) | ||
op.add_column('supplier_stat', sa.Column('conversion', sa.Integer(), nullable=True)) | ||
op.add_column('supplier_stat', sa.Column('conversion_rank', sa.Integer(), nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column('supplier_stat', 'conversion_rank') | ||
op.drop_column('supplier_stat', 'conversion') | ||
op.drop_column('supplier_stat', 'daystohire_rank') | ||
op.drop_column('supplier_stat', 'daystohire') | ||
op.drop_column('supplier_stat', 'rate_rank') | ||
# ### end Alembic commands ### |
29 changes: 29 additions & 0 deletions
29
backend/app/alembic/versions/55e3e7adc035_added_rate_override.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
"""added rate override | ||
Revision ID: 55e3e7adc035 | ||
Revises: d38c7fb805e3 | ||
Create Date: 2024-06-27 13:24:18.205019 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
import sqlmodel.sql.sqltypes | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '55e3e7adc035' | ||
down_revision = 'd38c7fb805e3' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
pass | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
pass | ||
# ### end Alembic commands ### |
29 changes: 29 additions & 0 deletions
29
backend/app/alembic/versions/62dc04418112_added_rate_override.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
"""added rate override | ||
Revision ID: 62dc04418112 | ||
Revises: b1e076cbef1e | ||
Create Date: 2024-06-27 13:16:18.197731 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
import sqlmodel.sql.sqltypes | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '62dc04418112' | ||
down_revision = 'b1e076cbef1e' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
pass | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
pass | ||
# ### end Alembic commands ### |
29 changes: 29 additions & 0 deletions
29
backend/app/alembic/versions/823daaece31a_add_source_to_referral_public.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
"""Add source to referral public | ||
Revision ID: 823daaece31a | ||
Revises: e616a4c1ee36 | ||
Create Date: 2024-06-20 12:50:33.922379 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
import sqlmodel.sql.sqltypes | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '823daaece31a' | ||
down_revision = 'e616a4c1ee36' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
pass | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
pass | ||
# ### end Alembic commands ### |
53 changes: 53 additions & 0 deletions
53
backend/app/alembic/versions/8fe419a7050f_cleaning_some_class.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
"""Cleaning some class | ||
Revision ID: 8fe419a7050f | ||
Revises: aa346315f015 | ||
Create Date: 2024-06-26 15:30:36.822955 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
import sqlmodel.sql.sqltypes | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '8fe419a7050f' | ||
down_revision = 'aa346315f015' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.alter_column('circs_group', 'group', | ||
existing_type=sa.VARCHAR(), | ||
nullable=False) | ||
op.alter_column('circs_group', 'desc', | ||
existing_type=sa.VARCHAR(), | ||
nullable=False) | ||
op.alter_column('claim', 'client_firstname', | ||
existing_type=sa.VARCHAR(), | ||
nullable=False) | ||
op.alter_column('claim', 'client_lastname', | ||
existing_type=sa.VARCHAR(), | ||
nullable=False) | ||
op.drop_column('referral_allocation', 'Source') | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('referral_allocation', sa.Column('Source', sa.VARCHAR(), autoincrement=False, nullable=False)) | ||
op.alter_column('claim', 'client_lastname', | ||
existing_type=sa.VARCHAR(), | ||
nullable=True) | ||
op.alter_column('claim', 'client_firstname', | ||
existing_type=sa.VARCHAR(), | ||
nullable=True) | ||
op.alter_column('circs_group', 'desc', | ||
existing_type=sa.VARCHAR(), | ||
nullable=True) | ||
op.alter_column('circs_group', 'group', | ||
existing_type=sa.VARCHAR(), | ||
nullable=True) | ||
# ### end Alembic commands ### |
31 changes: 31 additions & 0 deletions
31
backend/app/alembic/versions/9edf47558091_add_constraint_to_supplier_rate.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
"""Add constraint to supplier_rate | ||
Revision ID: 9edf47558091 | ||
Revises: f9729800dad4 | ||
Create Date: 2024-06-25 21:12:45.431082 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
import sqlmodel.sql.sqltypes | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '9edf47558091' | ||
down_revision = 'f9729800dad4' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_constraint('Supplier_Rate_Constraint', 'supplier_rate', type_='unique') | ||
op.create_unique_constraint('supplier_rate_constraint', 'supplier_rate', ['authority_id', 'veh_group_id', 'circs_group_id', 'supplier_id']) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_constraint('supplier_rate_constraint', 'supplier_rate', type_='unique') | ||
op.create_unique_constraint('Supplier_Rate_Constraint', 'supplier_rate', ['authority_id', 'veh_group_id', 'circs_group_id', 'supplier_id']) | ||
# ### end Alembic commands ### |
29 changes: 29 additions & 0 deletions
29
backend/app/alembic/versions/a1563c57883e_set_req_for_base_rate.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
"""set req for base_rate | ||
Revision ID: a1563c57883e | ||
Revises: f3759d1ee4b6 | ||
Create Date: 2024-06-26 09:04:39.712329 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
import sqlmodel.sql.sqltypes | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'a1563c57883e' | ||
down_revision = 'f3759d1ee4b6' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
pass | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
pass | ||
# ### end Alembic commands ### |
Oops, something went wrong.