Add a permissiondefault data type.

This commit is contained in:
yackob03 2014-01-17 17:28:21 -05:00
parent d5bbea9fb2
commit f612f5c290

View file

@ -133,6 +133,18 @@ class RepositoryPermission(BaseModel):
)
class PermissionPrototype(BaseModel):
org = ForeignKeyField(User, index=True)
user = ForeignKeyField(User, index=True, null=True)
role = ForeignKeyField(Role)
class Meta:
database = db
indexes = (
(('org', 'user'), True),
)
class Webhook(BaseModel):
public_id = CharField(default=random_string_generator(length=64),
unique=True, index=True)