Make migrations

This commit is contained in:
Kristofers Solo 2023-04-07 14:28:56 +03:00
parent 818f8a6ba4
commit 082fd1c21b

View File

@ -1,4 +1,4 @@
# Generated by Django 4.1 on 2023-03-27 17:46 # Generated by Django 4.1.7 on 2023-04-07 11:28
from django.conf import settings from django.conf import settings
from django.db import migrations, models from django.db import migrations, models
@ -14,6 +14,16 @@ class Migration(migrations.Migration):
] ]
operations = [ operations = [
migrations.CreateModel(
name='License',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('short_name', models.CharField(max_length=50)),
('full_name', models.CharField(blank=True, max_length=100, null=True)),
('url', models.URLField(blank=True, null=True)),
('description', models.TextField(blank=True, null=True)),
],
),
migrations.CreateModel( migrations.CreateModel(
name='Project', name='Project',
fields=[ fields=[
@ -22,6 +32,7 @@ class Migration(migrations.Migration):
('description', models.TextField()), ('description', models.TextField()),
('create_date', models.DateTimeField(auto_now_add=True)), ('create_date', models.DateTimeField(auto_now_add=True)),
('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
('license', models.ManyToManyField(to='fossdb.license')),
], ],
), ),
] ]