#NEWLINE# def forwards( self , orm ) : #NEWLINE# #INDENT# db . create_table ( 'resources_resource' , ( ( '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 ) ) , ( 'name' , self . gf ( 'django.db.models.fields.CharField' ) ( max_length = 255 ) ) , ( 'source_file' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( to = orm [ 'storage.StorageFile' ] , null = True , blank = True ) ) , ( 'i18n_type' , self . gf ( 'django.db.models.fields.CharField' ) ( max_length = 20 ) ) , ( 'accept_translations' , self . gf ( 'django.db.models.fields.BooleanField' ) ( default = True ) ) , ( 'created' , self . gf ( 'django.db.models.fields.DateTimeField' ) ( auto_now_add = True , blank = True ) ) , ( 'last_update' , self . gf ( 'django.db.models.fields.DateTimeField' ) ( auto_now = True , blank = True ) ) , ( 'source_language' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( to = orm [ 'languages.Language' ] ) ) , ( 'project' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( related_name = 'resources' , null = True , to = orm [ 'projects.Project' ] ) ) , ( '_order' , self . gf ( 'django.db.models.fields.IntegerField' ) ( default = 0 ) ) ) ) #NEWLINE# db . send_create_signal ( 'resources' , [ 'Resource' ] ) #NEWLINE# db . create_unique ( 'resources_resource' , [ 'slug' , 'project_id' ] ) #NEWLINE# db . create_table ( 'resources_sourceentity' , ( ( 'id' , self . gf ( 'django.db.models.fields.AutoField' ) ( primary_key = True ) ) , ( 'string' , self . gf ( 'django.db.models.fields.TextField' ) ( ) ) , ( 'string_hash' , self . gf ( 'django.db.models.fields.CharField' ) ( max_length = 32 ) ) , ( 'context' , self . gf ( 'django.db.models.fields.CharField' ) ( max_length = 255 ) ) , ( 'position' , self . gf ( 'django.db.models.fields.IntegerField' ) ( null = True , blank = True ) ) , ( 'occurrences' , self . gf ( 'django.db.models.fields.TextField' ) ( max_length = 1000 , null = True , blank = True ) ) , ( 'flags' , self . gf ( 'django.db.models.fields.TextField' ) ( max_length = 100 , blank = True ) ) , ( 'developer_comment' , self . gf ( 'django.db.models.fields.TextField' ) ( max_length = 1000 , blank = True ) ) , ( 'pluralized' , self . gf ( 'django.db.models.fields.BooleanField' ) ( default = False ) ) , ( 'created' , self . gf ( 'django.db.models.fields.DateTimeField' ) ( auto_now_add = True , blank = True ) ) , ( 'last_update' , self . gf ( 'django.db.models.fields.DateTimeField' ) ( auto_now = True , blank = True ) ) , ( 'resource' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( related_name = 'source_entities' , to = orm [ 'resources.Resource' ] ) ) , ( '_order' , self . gf ( 'django.db.models.fields.IntegerField' ) ( default = 0 ) ) ) ) #NEWLINE# db . send_create_signal ( 'resources' , [ 'SourceEntity' ] ) #NEWLINE# db . create_unique ( 'resources_sourceentity' , [ 'string_hash' , 'context' , 'resource_id' ] ) #NEWLINE# db . create_table ( 'resources_translation' , ( ( 'id' , self . gf ( 'django.db.models.fields.AutoField' ) ( primary_key = True ) ) , ( 'string' , self . gf ( 'django.db.models.fields.TextField' ) ( ) ) , ( 'string_hash' , self . gf ( 'django.db.models.fields.CharField' ) ( max_length = 32 ) ) , ( 'rule' , self . gf ( 'django.db.models.fields.IntegerField' ) ( default = 5 ) ) , ( 'created' , self . gf ( 'django.db.models.fields.DateTimeField' ) ( auto_now_add = True , blank = True ) ) , ( 'last_update' , self . gf ( 'django.db.models.fields.DateTimeField' ) ( auto_now = True , blank = True ) ) , ( 'source_entity' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( related_name = 'translations' , to = orm [ 'resources.SourceEntity' ] ) ) , ( 'language' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( to = orm [ 'languages.Language' ] , null = True ) ) , ( 'user' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( to = orm [ 'auth.User' ] , null = True ) ) , ( '_order' , self . gf ( 'django.db.models.fields.IntegerField' ) ( default = 0 ) ) ) ) #NEWLINE# db . send_create_signal ( 'resources' , [ 'Translation' ] ) #NEWLINE# db . create_unique ( 'resources_translation' , [ 'source_entity_id' , 'language_id' , 'rule' ] ) #NEWLINE# db . create_table ( 'resources_template' , ( ( 'id' , self . gf ( 'django.db.models.fields.AutoField' ) ( primary_key = True ) ) , ( 'content' , self . gf ( 'txcommon.db.models.CompressedTextField' ) ( null = False , blank = False ) ) , ( 'resource' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( related_name = 'source_file_template' , unique = True , to = orm [ 'resources.Resource' ] ) ) ) ) #NEWLINE# db . send_create_signal ( 'resources' , [ 'Template' ] )