mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-18 20:39:36 +02:00
32 lines
1.2 KiB
Python
32 lines
1.2 KiB
Python
|
# Generated by Django 5.0.6 on 2024-06-28 01:01
|
||
|
|
||
|
import django.contrib.postgres.fields
|
||
|
from django.db import migrations, models
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = [
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='Adventure',
|
||
|
fields=[
|
||
|
('id', models.AutoField(primary_key=True, serialize=False)),
|
||
|
('type', models.CharField(max_length=100)),
|
||
|
('name', models.CharField(max_length=200)),
|
||
|
('location', models.CharField(blank=True, max_length=200, null=True)),
|
||
|
('activity_types', django.contrib.postgres.fields.ArrayField(base_field=models.CharField(max_length=100), blank=True, null=True, size=None)),
|
||
|
('description', models.TextField(blank=True, null=True)),
|
||
|
('rating', models.FloatField(blank=True, null=True)),
|
||
|
('link', models.URLField(blank=True, null=True)),
|
||
|
('image', models.ImageField(blank=True, null=True, upload_to='images/')),
|
||
|
('date', models.DateField(blank=True, null=True)),
|
||
|
('trip_id', models.IntegerField(blank=True, null=True)),
|
||
|
],
|
||
|
),
|
||
|
]
|