Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
2.3 kB
1
Indexable
Never
 migrations.CreateModel(
            name='Venue',
            fields=[
                ('id', BigAutoField(primary_key=True, serialize=False)),
                ('venue_group', resy_os.utils.db.BigForeignKey(to='venue.VenueGroup', on_delete=models.CASCADE)),
                ('category', resy_os.utils.db.BigForeignKey(to='venue.VenueRefCategory', null=True, blank=True, on_delete=models.SET_NULL)),
                ('type', resy_os.utils.db.BigForeignKey(to='venue.VenueRefCuisine', on_delete=models.CASCADE)),
                ('cuisine_detail', resy_os.utils.db.BigForeignKey(to='venue.VenueRefCuisineDetail', on_delete=models.CASCADE)),
                ('time_zone', models.CharField(max_length=50)),
                ('currency_type', resy_os.utils.db.BigForeignKey(to='venue.VenueRefCurrency', on_delete=models.SET_NULL)),
                ('inventory_type', resy_os.utils.db.BigForeignKey(to='venue.VenueRefInventoryType', on_delete=models.CASCADE)),
                ('price_range', resy_os.utils.db.BigForeignKey(to='core.CoRefPriceRange', null=True, blank=True, on_delete=models.SET_NULL)),
                ('average_bill_size', models.FloatField()),
                ('average_user_rating', models.FloatField(null=True, blank=True)),
                ('num_overall_ratings', models.IntegerField(null=True, blank=True)),
                ('num_service_ratings', models.IntegerField(null=True, blank=True)),
          
                ('share', models.IntegerField()),
                ('cancellation_share', models.IntegerField(default=96)),
                ('marketplace_id', models.CharField(max_length=100)),
                ('transaction_processor', resy_os.utils.db.BigForeignKey(
                    to='venue.venuereftransactionprocessor',
                    default=VENUE_TRANSACTION_PROCESSOR_BRAINTREE,
                    on_delete=models.PROTECT)),
                ('is_gns', models.BooleanField(default=False)),
                ('is_gda_only', models.BooleanField(default=False, verbose_name='GDA Only')),
                ('enable_for_amex', models.BooleanField(default=True)),
            ],
            options={
                'managed': settings.TESTING,
                'db_table': 'venue_info',
            },
            bases=(models.Model,),
        )