mirror of
https://github.com/kristoferssolo/FOSSDB.git
synced 2025-10-21 17:50:35 +00:00
39 lines
1.4 KiB
Python
39 lines
1.4 KiB
Python
# Generated by Django 4.1.7 on 2023-04-07 11:28
|
|
|
|
from django.conf import settings
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
]
|
|
|
|
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(
|
|
name='Project',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('title', models.CharField(max_length=255)),
|
|
('description', models.TextField()),
|
|
('create_date', models.DateTimeField(auto_now_add=True)),
|
|
('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
|
('license', models.ManyToManyField(to='fossdb.license')),
|
|
],
|
|
),
|
|
]
|