1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Generated by Django 2.1.2 on 2018-12-04 12:20
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('notes', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Tag',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=40)),
('slug', models.SlugField(blank=True)),
('color_hex', models.CharField(max_length=6)),
('date_created', models.DateTimeField(auto_now_add=True)),
('date_updated', models.DateTimeField(auto_now=True)),
('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
('parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='parent_tag', to='notes.Tag')),
],
),
migrations.AlterModelOptions(
name='note',
options={'ordering': ('-date_created', '-date_updated')},
),
migrations.AddField(
model_name='note',
name='tagstwo',
field=models.ManyToManyField(blank=True, to='notes.Tag'),
),
migrations.AlterUniqueTogether(
name='tag',
unique_together={('owner', 'name')},
),
]
|