<s> from django . db import models <EOL> class PoliceOfficer ( models . Model ) : <EOL> """<STR_LIT>""" <EOL> badge_number = models . IntegerField ( primary_key = True ) <EOL> first_name = models . CharField ( max_length = <NUM_LIT:200> ) <EOL> surname = models . CharField ( max_length = <NUM_LIT:200> ) <EOL> rank = models . CharField ( max_length = <NUM_LIT:200> ) <EOL> arrests = models . ManyToManyField ( "<STR_LIT>" , related_name = "<STR_LIT>" ) <EOL> class PoliceStation ( models . Model ) : <EOL> officers = models . ForeignKey ( "<STR_LIT>" ) <EOL> class Precinct ( PoliceStation ) : <EOL> """<STR_LIT>""" <EOL> number = models . IntegerField ( primary_key = True ) <EOL> burrough = models . CharField ( max_length = <NUM_LIT:20> ) <EOL> captain = models . OneToOneField ( PoliceOfficer ) <EOL> class Meta : <EOL> unique_together = ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> def natural_key ( self ) : <EOL> return ( self . burrough , self . number ) <EOL> class Division ( PoliceStation ) : <EOL> """<STR_LIT>""" <EOL> name = models . CharField ( max_length = <NUM_LIT:200> ) <EOL> class Arrest ( models . Model ) : <EOL> alleged_crime = models . CharField ( max_length = <NUM_LIT:20> ) <EOL> perp = models . ForeignKey ( "<STR_LIT>" ) <EOL> arrest_date = models . DateField ( ) <EOL> processing_date = models . DateField ( ) <EOL> class Perpetrator ( models . Model ) : <EOL> """<STR_LIT>""" <EOL> first_name = models . CharField ( max_length = <NUM_LIT:200> ) <EOL> surname = models . CharField ( max_length = <NUM_LIT:200> ) <EOL> alias = models . CharField ( max_length = <NUM_LIT:200> ) </s>
