for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
# coding: utf-8
from schematics.models import Model
from schematics.types import BooleanType
from schematics.types.compound import ModelType
class Users(Model):
show_number = BooleanType(
default=True,
required=True,
)
show_ping = BooleanType(
show_name = BooleanType(
show_belligerent = BooleanType(
show_aircraft_designation = BooleanType(
show_aircraft_type = BooleanType(
show_score = BooleanType(
class Belligerents(Model):
default=False,
accumulate_score = BooleanType(
class Statistics(Model):
is_disabled = BooleanType(
users = ModelType(
model_spec=Users,
belligerents = ModelType(
model_spec=Belligerents,