#NEWLINE# def forwards( self , orm ) : #NEWLINE# #INDENT# db . create_table ( 'banner_rotator_campaign' , ( ( 'id' , self . gf ( 'django.db.models.fields.AutoField' ) ( primary_key = True ) ) , ( 'name' , self . gf ( 'django.db.models.fields.CharField' ) ( max_length = 255 ) ) , ( 'created_at' , self . gf ( 'django.db.models.fields.DateTimeField' ) ( auto_now_add = True , blank = True ) ) , ( 'updated_at' , self . gf ( 'django.db.models.fields.DateTimeField' ) ( auto_now = True , blank = True ) ) ) ) #NEWLINE# db . send_create_signal ( 'banner_rotator' , [ 'Campaign' ] ) #NEWLINE# db . create_table ( 'banner_rotator_banner' , ( ( 'id' , self . gf ( 'django.db.models.fields.AutoField' ) ( primary_key = True ) ) , ( 'campaign' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( related_name = 'banners' , to = orm [ 'banner_rotator.Campaign' ] ) ) , ( 'name' , self . gf ( 'django.db.models.fields.CharField' ) ( max_length = 255 ) ) , ( 'url' , self . gf ( 'django.db.models.fields.URLField' ) ( max_length = 200 ) ) , ( 'impressions' , self . gf ( 'django.db.models.fields.IntegerField' ) ( default = 0 ) ) , ( 'weight' , self . gf ( 'django.db.models.fields.IntegerField' ) ( ) ) , ( 'file' , self . gf ( 'django.db.models.fields.files.FileField' ) ( max_length = 100 ) ) , ( 'created_at' , self . gf ( 'django.db.models.fields.DateTimeField' ) ( auto_now_add = True , blank = True ) ) , ( 'updated_at' , self . gf ( 'django.db.models.fields.DateTimeField' ) ( auto_now = True , blank = True ) ) , ( 'is_active' , self . gf ( 'django.db.models.fields.BooleanField' ) ( default = True ) ) ) ) #NEWLINE# db . send_create_signal ( 'banner_rotator' , [ 'Banner' ] ) #NEWLINE# db . create_table ( 'banner_rotator_click' , ( ( 'id' , self . gf ( 'django.db.models.fields.AutoField' ) ( primary_key = True ) ) , ( 'banner' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( related_name = 'clicks' , to = self [ 'banner_rotator.Banner' ] ) ) , ( 'user' , self . gf ( 'django.db.models.fields.related.ForeignKey' ) ( related_name = 'clicks' , blank = True , null = True , to = orm [ 'auth.User' ] ) ) , ( 'datetime' , self . gf ( 'django.db.models.fields.DateTimeField' ) ( auto_now_add = True , blank = True ) ) , ( 'ip' , self . gf ( 'django.db.models.fields.IPAddressField' ) ( max_length = 15 , null = True , blank = True ) ) , ( 'user_agent' , self . gf ( 'django.db.models.fields.CharField' ) ( max_length = 255 , null = True , blank = True ) ) , ( 'referrer' , self . gf ( 'django.db.models.fields.URLField' ) ( max_length = 200 , null = True , blank = True ) ) ) ) #NEWLINE# db . send_create_signal ( 'banner_rotator' , [ 'Click' ] )