prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Bootstrap database with default data for the /safe-apps endpoint 
  When the database is created and the service is running, we should offer the option/utility to bootstrap it with the default list of safe-apps.
  
  Default database should contain the following data: https://github.com/gnosis/safe-apps-list/blob/development/public/gnosis-default.applist.json
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `src/safe_apps/models.py`
  Content:
  ```
  1 from django.contrib.postgres.fields import ArrayField
  2 from django.db import models
  3 
  4 
  5 class SafeApp(models.Model):
  6     url = models.URLField()
  7     name = models.CharField(max_length=200)
  8     icon_url = models.URLField()
  9     description = models.CharField(max_length=200)
  10     networks = ArrayField(models.IntegerField())
  11
  ```
  
  Path: `src/safe_apps/migrations/0001_initial.py`
  Content:
  ```
  1 # Generated by Django 3.2 on 2021-04-16 14:52
  2 
  3 import django.contrib.postgres.fields
  4 from django.db import migrations, models
  5 
  6 
  7 class Migration(migrations.Migration):
  8 
  9     initial = True
  10 
  11     dependencies = [
  12     ]
  13 
  14     operations = [
  15         migrations.CreateModel(
  16             name='SafeApp',
  17             fields=[
  18                 ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  19                 ('url', models.URLField()),
  20                 ('name', models.CharField(max_length=200)),
  21                 ('icon_url', models.URLField()),
  22                 ('description', models.CharField(max_length=200)),
  23                 ('networks', django.contrib.postgres.fields.ArrayField(base_field=models.IntegerField(), size=None)),
  24             ],
  25         ),
  26     ]
  27
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/src/safe_apps/migrations/0001_initial.py b/src/safe_apps/migrations/0001_initial.py
  --- a/src/safe_apps/migrations/0001_initial.py
  +++ b/src/safe_apps/migrations/0001_initial.py
  @@ -1,4 +1,4 @@
  -# Generated by Django 3.2 on 2021-04-16 14:52
  +# Generated by Django 3.2 on 2021-04-28 13:39
   
   import django.contrib.postgres.fields
   from django.db import migrations, models
  @@ -15,8 +15,7 @@
           migrations.CreateModel(
               name='SafeApp',
               fields=[
  -                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  -                ('url', models.URLField()),
  +                ('url', models.URLField(primary_key=True, serialize=False)),
                   ('name', models.CharField(max_length=200)),
                   ('icon_url', models.URLField()),
                   ('description', models.CharField(max_length=200)),
  diff --git a/src/safe_apps/models.py b/src/safe_apps/models.py
  --- a/src/safe_apps/models.py
  +++ b/src/safe_apps/models.py
  @@ -3,7 +3,7 @@
   
   
   class SafeApp(models.Model):
  -    url = models.URLField()
  +    url = models.URLField(primary_key=True)
       name = models.CharField(max_length=200)
       icon_url = models.URLField()
       description = models.CharField(max_length=200)
  
verification_info: {"golden_diff": "diff --git a/src/safe_apps/migrations/0001_initial.py b/src/safe_apps/migrations/0001_initial.py\n--- a/src/safe_apps/migrations/0001_initial.py\n+++ b/src/safe_apps/migrations/0001_initial.py\n@@ -1,4 +1,4 @@\n-# Generated by Django 3.2 on 2021-04-16 14:52\n+# Generated by Django 3.2 on 2021-04-28 13:39\n \n import django.contrib.postgres.fields\n from django.db import migrations, models\n@@ -15,8 +15,7 @@\n         migrations.CreateModel(\n             name='SafeApp',\n             fields=[\n-                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),\n-                ('url', models.URLField()),\n+                ('url', models.URLField(primary_key=True, serialize=False)),\n                 ('name', models.CharField(max_length=200)),\n                 ('icon_url', models.URLField()),\n                 ('description', models.CharField(max_length=200)),\ndiff --git a/src/safe_apps/models.py b/src/safe_apps/models.py\n--- a/src/safe_apps/models.py\n+++ b/src/safe_apps/models.py\n@@ -3,7 +3,7 @@\n \n \n class SafeApp(models.Model):\n-    url = models.URLField()\n+    url = models.URLField(primary_key=True)\n     name = models.CharField(max_length=200)\n     icon_url = models.URLField()\n     description = models.CharField(max_length=200)\n", "issue": "Bootstrap database with default data for the /safe-apps endpoint \nWhen the database is created and the service is running, we should offer the option/utility to bootstrap it with the default list of safe-apps.\r\n\r\nDefault database should contain the following data: https://github.com/gnosis/safe-apps-list/blob/development/public/gnosis-default.applist.json\n", "before_files": [{"content": "from django.contrib.postgres.fields import ArrayField\nfrom django.db import models\n\n\nclass SafeApp(models.Model):\n    url = models.URLField()\n    name = models.CharField(max_length=200)\n    icon_url = models.URLField()\n    description = models.CharField(max_length=200)\n    networks = ArrayField(models.IntegerField())\n", "path": "src/safe_apps/models.py"}, {"content": "# Generated by Django 3.2 on 2021-04-16 14:52\n\nimport django.contrib.postgres.fields\nfrom django.db import migrations, models\n\n\nclass Migration(migrations.Migration):\n\n    initial = True\n\n    dependencies = [\n    ]\n\n    operations = [\n        migrations.CreateModel(\n            name='SafeApp',\n            fields=[\n                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),\n                ('url', models.URLField()),\n                ('name', models.CharField(max_length=200)),\n                ('icon_url', models.URLField()),\n                ('description', models.CharField(max_length=200)),\n                ('networks', django.contrib.postgres.fields.ArrayField(base_field=models.IntegerField(), size=None)),\n            ],\n        ),\n    ]\n", "path": "src/safe_apps/migrations/0001_initial.py"}], "after_files": [{"content": "from django.contrib.postgres.fields import ArrayField\nfrom django.db import models\n\n\nclass SafeApp(models.Model):\n    url = models.URLField(primary_key=True)\n    name = models.CharField(max_length=200)\n    icon_url = models.URLField()\n    description = models.CharField(max_length=200)\n    networks = ArrayField(models.IntegerField())\n", "path": "src/safe_apps/models.py"}, {"content": "# Generated by Django 3.2 on 2021-04-28 13:39\n\nimport django.contrib.postgres.fields\nfrom django.db import migrations, models\n\n\nclass Migration(migrations.Migration):\n\n    initial = True\n\n    dependencies = [\n    ]\n\n    operations = [\n        migrations.CreateModel(\n            name='SafeApp',\n            fields=[\n                ('url', models.URLField(primary_key=True, serialize=False)),\n                ('name', models.CharField(max_length=200)),\n                ('icon_url', models.URLField()),\n                ('description', models.CharField(max_length=200)),\n                ('networks', django.contrib.postgres.fields.ArrayField(base_field=models.IntegerField(), size=None)),\n            ],\n        ),\n    ]\n", "path": "src/safe_apps/migrations/0001_initial.py"}]}