Add the permission proto table to the database.
This commit is contained in:
parent
b1b315d86c
commit
3f67ff77a4
2 changed files with 4 additions and 3 deletions
|
@ -134,8 +134,9 @@ class RepositoryPermission(BaseModel):
|
|||
|
||||
|
||||
class PermissionPrototype(BaseModel):
|
||||
org = ForeignKeyField(User, index=True)
|
||||
user = ForeignKeyField(User, index=True, null=True)
|
||||
org = ForeignKeyField(User, index=True, related_name='orgpermissionproto')
|
||||
user = ForeignKeyField(User, index=True, related_name='userpermissionproto',
|
||||
null=True)
|
||||
role = ForeignKeyField(Role)
|
||||
|
||||
class Meta:
|
||||
|
@ -246,4 +247,4 @@ all_models = [User, Repository, Image, AccessToken, Role,
|
|||
RepositoryPermission, Visibility, RepositoryTag,
|
||||
EmailConfirmation, FederatedLogin, LoginService, QueueItem,
|
||||
RepositoryBuild, Team, TeamMember, TeamRole, Webhook,
|
||||
LogEntryKind, LogEntry]
|
||||
LogEntryKind, LogEntry, PermissionPrototype]
|
||||
|
|
Binary file not shown.
Reference in a new issue