Compare commits
No commits in common. "548e889a7fbeee7b41536ab9288cb014368f4e98" and "dcbd133abd011b940d4f15aae3179de483ddb024" have entirely different histories.
548e889a7f
...
dcbd133abd
@ -1,15 +0,0 @@
|
||||
from alembic import op
|
||||
|
||||
|
||||
revision = "0025"
|
||||
down_revision = "0024"
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
op.execute("INSERT INTO v3.role(id, code) VALUES (4, 'DURRS')")
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
pass
|
||||
@ -10,7 +10,6 @@ class UserRoleEnum(int, enum.Enum):
|
||||
ADMIN = 1
|
||||
EXECUTOR_DFIP = 2
|
||||
EXECUTOR_RF = 3
|
||||
EXECUTOR_DURRS = 4
|
||||
|
||||
|
||||
class Role(Base):
|
||||
|
||||
@ -2,30 +2,26 @@ export const ROLES_ID_NAME = {
|
||||
1: 'admin',
|
||||
2: 'executor_dfip',
|
||||
3: 'executor_rf',
|
||||
4: 'executor_durrs'
|
||||
};
|
||||
|
||||
export const ROLES_NAME_ID = { admin: 1, executor_dfip: 2, executor_rf: 3, executor_durrs: 4 };
|
||||
export const ROLES_NAME_ID = { admin: 1, executor_dfip: 2, executor_rf: 3 };
|
||||
|
||||
export const ROLES_ID_RUSSIAN_NAME = {
|
||||
1: 'Администратор',
|
||||
2: 'Исполнитель ДФИП',
|
||||
3: 'Исполнитель',
|
||||
4: 'Исполнитель ДУРРС'
|
||||
};
|
||||
|
||||
export const ROLES_ID_RUSSIAN_NAME_ARRAY = [
|
||||
{ id: 1, role: 'Администратор' },
|
||||
{ id: 2, role: 'Исполнитель ДФИП' },
|
||||
{ id: 3, role: 'Исполнитель' },
|
||||
{ id: 4, role: 'Исполнитель ДУРРС' },
|
||||
];
|
||||
|
||||
export const STAGE_ROLE_RUSSIAN_NAME = {
|
||||
ADMIN: 'Администратор',
|
||||
DFIP: 'Исполнитель ДФИП',
|
||||
EXECUTOR_RF: 'Исполнитель',
|
||||
DURRS: 'Исполнитель ДУРРС',
|
||||
};
|
||||
|
||||
export const TYPES_CELLS = { numeric: 'число', text: 'текст' };
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user