# Generated by Django 2.1.3 on 2018-11-20 13:49 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.db.models.manager class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Bookmark', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('url', models.URLField()), ('title', models.CharField(max_length=255, verbose_name='title')), ('description', models.TextField(blank=True, verbose_name='description')), ('is_public', models.BooleanField(default=True, verbose_name='public')), ('date_created', models.DateTimeField(verbose_name='date created')), ('date_updated', models.DateTimeField(verbose_name='date updated')), ('owner', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='bookmarks', to=settings.AUTH_USER_MODEL, verbose_name='owner')), ], options={ 'verbose_name': 'bookmark', 'verbose_name_plural': 'bookmarkS', 'ordering': ['-date_created'], }, managers=[ ('object', django.db.models.manager.Manager()), ], ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50, unique=True)), ], options={ 'verbose_name': 'tag', 'verbose_name_plural': 'tagS', 'ordering': ['name'], }, ), migrations.AddField( model_name='bookmark', name='tags', field=models.ManyToManyField(blank=True, to='marcador.Tag'), ), ]