first commit
This commit is contained in:
80
academia_nuts/migrations/0001_initial.py
Normal file
80
academia_nuts/migrations/0001_initial.py
Normal file
@@ -0,0 +1,80 @@
|
||||
# Generated by Django 5.1.1 on 2025-02-12 01:39
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Abstract',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('title', models.CharField(blank=True, max_length=128, null=True)),
|
||||
('link', models.URLField(blank=True, null=True)),
|
||||
('show_date', models.DateTimeField()),
|
||||
('abstract', models.TextField()),
|
||||
('more_details', models.JSONField(blank=True, null=True)),
|
||||
],
|
||||
options={
|
||||
'verbose_name_plural': 'Abstracts',
|
||||
'ordering': ['title'],
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Tag',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=64)),
|
||||
('description', models.TextField(blank=True, null=True)),
|
||||
('slug', models.SlugField()),
|
||||
],
|
||||
options={
|
||||
'verbose_name_plural': 'Tags',
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Institute',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=64)),
|
||||
('website', models.CharField(blank=True, max_length=128, null=True)),
|
||||
('is_venue', models.BooleanField(default=False)),
|
||||
('is_501c', models.BooleanField(default=False)),
|
||||
('contact_name', models.CharField(blank=True, max_length=64, null=True)),
|
||||
('contact_email', models.CharField(blank=True, max_length=64, null=True)),
|
||||
('phone_number', models.CharField(blank=True, max_length=200, null=True)),
|
||||
('address', models.CharField(blank=True, max_length=64, null=True)),
|
||||
('city', models.CharField(blank=True, max_length=32, null=True)),
|
||||
('state', models.CharField(blank=True, max_length=16, null=True)),
|
||||
('zip_code', models.CharField(blank=True, max_length=16, null=True)),
|
||||
],
|
||||
options={
|
||||
'verbose_name_plural': 'Institutes',
|
||||
'ordering': ['name'],
|
||||
'unique_together': {('name', 'is_venue')},
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Author',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=64)),
|
||||
('author_type', models.CharField(choices=[('Ug', 'Undergrad'), ('Gs', 'Grad Student'), ('Ms', 'Masters'), ('Dr', 'Doctorate')], default='0', max_length=16)),
|
||||
('image', models.ImageField(blank=True, upload_to='promo')),
|
||||
('bio', models.TextField(blank=True, null=True)),
|
||||
('link', models.URLField(blank=True, null=True)),
|
||||
('notes', models.TextField(blank=True, null=True)),
|
||||
('institute', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='academia_nuts.institute')),
|
||||
],
|
||||
options={
|
||||
'verbose_name_plural': 'Authors',
|
||||
},
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,29 @@
|
||||
# Generated by Django 5.1.1 on 2025-02-12 01:46
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('academia_nuts', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='author',
|
||||
name='institute',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='author',
|
||||
name='image',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='author',
|
||||
name='author_type',
|
||||
field=models.CharField(choices=[('Ug', 'Undergrad'), ('Gs', 'Grad Student'), ('Ms', 'Masters'), ('Dr', 'Doctorate'), ('Ot', 'Other')], default='0', max_length=16),
|
||||
),
|
||||
migrations.DeleteModel(
|
||||
name='Institute',
|
||||
),
|
||||
]
|
||||
0
academia_nuts/migrations/__init__.py
Normal file
0
academia_nuts/migrations/__init__.py
Normal file
Reference in New Issue
Block a user