mirror of
https://github.com/GNS3/gns3-server
synced 2025-01-13 01:20:58 +00:00
Add index for "name" field in role table
This commit is contained in:
parent
75bb06563a
commit
fdc3774fff
@ -38,7 +38,7 @@ class Role(BaseTable):
|
|||||||
__tablename__ = "roles"
|
__tablename__ = "roles"
|
||||||
|
|
||||||
role_id = Column(GUID, primary_key=True, default=generate_uuid)
|
role_id = Column(GUID, primary_key=True, default=generate_uuid)
|
||||||
name = Column(String, unique=True)
|
name = Column(String, unique=True, index=True)
|
||||||
description = Column(String)
|
description = Column(String)
|
||||||
is_builtin = Column(Boolean, default=False)
|
is_builtin = Column(Boolean, default=False)
|
||||||
permissions = relationship("Permission", secondary=permission_role_link, back_populates="roles")
|
permissions = relationship("Permission", secondary=permission_role_link, back_populates="roles")
|
||||||
|
Loading…
Reference in New Issue
Block a user