Files
isotopetable/isotables/isotopapp/migrations/0001_initial.py
T

41 lines
1.9 KiB
Python

# Generated by Django 6.0.5 on 2026-08-14 18:23
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='FieldProfile',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=100, unique=True)),
('file', models.FileField(upload_to='magnet-profiles')),
('step', models.FloatField(default=0.0008333333333333334, help_text='Step size in m (or appropriate unit)')),
('cryo_length', models.FloatField(default=1113.0, help_text='Cryo length in mm')),
('reverse_offset', models.BooleanField(default=False, help_text='Check for Magnex style offset calculation')),
],
),
migrations.CreateModel(
name='Isotope',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('n_protons', models.IntegerField(help_text='Protons in isotope')),
('n_nucleons', models.IntegerField(help_text='Nucleons in isotope')),
('stable', models.BooleanField(help_text='Is isotope stable?')),
('symbol', models.CharField(help_text='Symbol of isotope', max_length=2)),
('name', models.CharField(help_text='Name of isotope', max_length=255)),
('spin_quantum_number', models.FloatField(help_text='Spin quantum number')),
('gamma', models.FloatField(help_text='Gyromagnetic ratio in MHz/T')),
('natural_abundance', models.FloatField(help_text='Natural abundance')),
('quadrupole_moment', models.FloatField(help_text='Quadrupole moment', null=True)),
],
),
]