81 lines
3.6 KiB
Python
81 lines
3.6 KiB
Python
# 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',
|
|
},
|
|
),
|
|
]
|