text: # Generated by Django 3.0.2 on 2020-01-25 20:09
  
  from django.db import migrations, models
  import django.db.models.deletion
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('business', '0003_auto_20200126_0053'),
      ]
  
      operations = [
          migrations.CreateModel(
              name='BusinessAPIKey',
              fields=[
                  ('id', models.CharField(editable=False, max_length=100, primary_key=True, serialize=False, unique=True)),
                  ('prefix', models.CharField(editable=False, max_length=8, unique=True)),
                  ('hashed_key', models.CharField(editable=False, max_length=100)),
                  ('created', models.DateTimeField(auto_now_add=True, db_index=True)),
                  ('name', models.CharField(default=None, help_text='A free-form name for the API key. Need not be unique. 50 characters max.', max_length=50)),
                  ('revoked', models.BooleanField(blank=True, default=False, help_text='If the API key is revoked, clients cannot use it anymore. (This cannot be undone.)')),
                  ('expiry_date', models.DateTimeField(blank=True, help_text='Once API key expires, clients cannot use it anymore.', null=True, verbose_name='Expires')),
                  ('business', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='business.Business')),
              ],
              options={
                  'verbose_name': 'API key',
                  'verbose_name_plural': 'API keys',
                  'ordering': ('-created',),
                  'abstract': False,
              },
          ),
      ]
  