#NEWLINE# def forwards( self , orm ) : #NEWLINE# #INDENT# db . create_table ( 'places_source' , ( ( 'id' , self . gf ( 'django.db.models.fields.AutoField' ) ( primary_key = True ) ) , ( 'module_name' , self . gf ( 'django.db.models.fields.CharField' ) ( max_length = 128 ) ) , ( 'name' , self . gf ( 'django.db.models.fields.CharField' ) ( max_length = 128 ) ) , ( 'last_updated' , self . gf ( 'django.db.models.fields.DateTimeField' ) ( auto_now = True , blank = True ) ) ) ) #NEWLINE# db . send_create_signal ( 'places' , [ 'Source' ] ) #NEWLINE# db . create_table ( 'places_entitytype' , ( ( 'id' , self . gf ( 'django.db.models.fields.AutoField' ) ( primary_key = True ) ) , ( 'slug' , self . gf ( 'django.db.models.fields.SlugField' ) ( max_length = 50 , db_index = True ) ) , ( 'article' , self . gf ( 'django.db.models.fields.CharField' ) ( max_length = 2 ) ) , ( 'verbose_name' , self . gf ( 'django.db.models.fields.TextField' ) ( ) ) , ( 'verbose_name_plural' , self . gf ( 'django.db.models.fields.TextField' ) ( ) ) , ( 'show_in_nearby_list' , self . gf ( 'django.db.models.fields.BooleanField' ) ( default = False ) ) , ( 'show_in_category_list' , self . gf ( 'django.db.models.fields.BooleanField' ) ( default = False ) ) , ( 'note' , self . gf ( 'django.db.models.fields.TextField' ) ( null = True ) ) ) ) #NEWLINE# db . send_create_signal ( 'places' , [ 'EntityType' ] ) #NEWLINE# db . create_table ( 'places_entitytype_subtype_of' , ( ( 'id' , models . AutoField ( verbose_name = 'ID' , primary_key = True , auto_created = True ) ) , ( 'from_entitytype' , models . ForeignKey ( orm [ 'places.entitytype' ] , null = False ) ) , ( 'to_entitytype' , models . ForeignKey ( orm [ 'places.entitytype' ] , null = False ) ) ) ) #NEWLINE# db . create_unique ( 'places_entitytype_subtype_of' , [ 'from_entitytype_id' , 'to_entitytype_id' ] ) #NEWLINE# db . create_table ( 'places_entitytype_subtype_of_completion' , ( ( 'id' , models . AutoField ( verbose_name = 'ID' , primary_key = True , auto_created = True ) ) , ( 'from_entitytype' , models . ForeignKey ( orm [ 'places.entitytype' ] , null = False ) ) , ( 'to_entitytype' , models . ForeignKey ( orm [ 'places.entitytype' ] , null = False ) ) ) ) #NEWLINE# db . create_unique ( 'places_entitytype_subtype_of_completion' , [ 'from_entitytype_id' , 'to_entitytype_id' ] ) #NEWLINE# db . create_table ( 'places_identifier' , ( ( 'id' , self . gf ( 'django.db.models.fields.AutoField' ) ( primary_key = True ) ) , ( 'scheme' , self . gf ( 'django.db.models.fields.CharField' ) ( max_length = 32 ) ) , ( 'value' , self . gf ( 'django.db.models.fields.CharField' ) ( max_length = 256 ) ) ) ) #NEWLINE# db . send_create_signal ( 'places' , [ 'Identifier' ] ) #NEWLINE# db . create_table ( 'places_entity' , ( ( 'id' , self . gf ( 'django.db.models.fields.AutoField' ) ( primary_key = True ) ) , ( 'title' , self . gf ( 'django.db.models.fields.TextField' ) ( blank = True ) ) , ( 'source' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( to = orm [ 'places.Source' ] ) ) , ( 'primary_type' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( to = orm [ 'places.EntityType' ] , null = True ) ) , ( 'location' , self . gf ( 'django.contrib.gis.db.models.fields.PointField' ) ( null = True ) ) , ( 'geometry' , self . gf ( 'django.contrib.gis.db.models.fields.GeometryField' ) ( null = True ) ) , ( '_metadata' , self . gf ( 'django.db.models.fields.TextField' ) ( default = '{}' ) ) , ( 'absolute_url' , self . gf ( 'django.db.models.fields.TextField' ) ( ) ) , ( 'parent' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( to = orm [ 'places.Entity' ] , null = True ) ) , ( 'is_sublocation' , self . gf ( 'django.db.models.fields.BooleanField' ) ( default = False ) ) , ( 'is_stack' , self . gf ( 'django.db.models.fields.BooleanField' ) ( default = False ) ) , ( 'identifier_scheme' , self . gf ( 'django.db.models.fields.CharField' ) ( max_length = 32 ) ) , ( 'identifier_value' , self . gf ( 'django.db.models.fields.CharField' ) ( max_length = 256 ) ) ) ) #NEWLINE# db . send_create_signal ( 'places' , [ 'Entity' ] ) #NEWLINE# db . create_table ( 'places_entity_all_types' , ( ( 'id' , models . AutoField ( verbose_name = 'ID' , primary_key = True , auto_created = True ) ) , ( 'entity' , models . ForeignKey ( orm [ 'places.entity' ] , null = False ) ) , ( 'entitytype' , models . ForeignKey ( orm [ 'places.entitytype' ] , null = False ) ) ) ) #NEWLINE# db . create_unique ( 'places_entity_all_types' , [ 'entity_id' , 'entitytype_id' ] ) #NEWLINE# db . create_table ( 'places_entity_all_types_completion' , ( ( 'id' , models . AutoField ( verbose_name = 'ID' , primary_key = True , auto_created = True ) ) , ( 'entity' , models . ForeignKey ( orm [ 'places.entity' ] , null = False ) ) , ( 'entitytype' , models . ForeignKey ( orm [ 'places.entitytype' ] , null = False ) ) ) ) #NEWLINE# db . create_unique ( 'places_entity_all_types_completion' , [ 'entity_id' , 'entitytype_id' ] ) #NEWLINE# db . create_table ( 'places_entity__identifiers' , ( ( 'id' , models . AutoField ( verbose_name = 'ID' , primary_key = True , auto_created = True ) ) , ( 'entity' , models . ForeignKey ( orm [ 'places.entity' ] , null = False ) ) , ( 'identifier' , models . ForeignKey ( orm [ 'places.identifier' ] , null = False ) ) ) ) #NEWLINE# db . create_unique ( 'places_entity__identifiers' , [ 'entity_id' , 'identifier_id' ] )