45 lines
2.2 KiB
Python
45 lines
2.2 KiB
Python
# Generated by Django 5.0.3 on 2024-05-17 19:01
|
|
|
|
import django.db.models.deletion
|
|
from django.conf import settings
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('core', '0009_alter_drug_common_name_alter_drug_drug_class'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Price',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('amount_mg', models.IntegerField()),
|
|
('price_gbp', models.FloatField()),
|
|
('note', models.CharField(blank=True, max_length=255, null=True)),
|
|
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='FavouriteDrug',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('nickname', models.CharField(blank=True, max_length=255, null=True)),
|
|
('name', models.CharField(max_length=255)),
|
|
('drug_class', models.CharField(blank=True, max_length=255, null=True)),
|
|
('common_name', models.CharField(blank=True, max_length=1024, null=True)),
|
|
('actions', models.ManyToManyField(blank=True, to='core.action')),
|
|
('dosages', models.ManyToManyField(blank=True, to='core.dosage')),
|
|
('effects', models.ManyToManyField(blank=True, to='core.effect')),
|
|
('experiences', models.ManyToManyField(blank=True, to='core.experience')),
|
|
('links', models.ManyToManyField(blank=True, to='core.entry')),
|
|
('original', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='core.drug')),
|
|
('timings', models.ManyToManyField(blank=True, to='core.timing')),
|
|
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
|
('prices', models.ManyToManyField(blank=True, null=True, to='core.price')),
|
|
],
|
|
),
|
|
]
|