mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
		
			937 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			937 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from django.db import migrations, models
 | 
						|
 | 
						|
 | 
						|
class Migration(migrations.Migration):
 | 
						|
 | 
						|
    dependencies = [
 | 
						|
        ('zerver', '0001_initial'),
 | 
						|
    ]
 | 
						|
 | 
						|
    operations = [
 | 
						|
        migrations.CreateModel(
 | 
						|
            name='Deployment',
 | 
						|
            fields=[
 | 
						|
                (
 | 
						|
                    'id',
 | 
						|
                    models.AutoField(
 | 
						|
                        verbose_name='ID', serialize=False, auto_created=True, primary_key=True
 | 
						|
                    ),
 | 
						|
                ),
 | 
						|
                ('is_active', models.BooleanField(default=True)),
 | 
						|
                ('api_key', models.CharField(max_length=32, null=True)),
 | 
						|
                ('base_api_url', models.CharField(max_length=128)),
 | 
						|
                ('base_site_url', models.CharField(max_length=128)),
 | 
						|
                ('realms', models.ManyToManyField(related_name='_deployments', to='zerver.Realm')),
 | 
						|
            ],
 | 
						|
            options={},
 | 
						|
            bases=(models.Model,),
 | 
						|
        ),
 | 
						|
    ]
 |