notes beta
This commit is contained in:
19
backend/server/adventures/migrations/0018_note_links.py
Normal file
19
backend/server/adventures/migrations/0018_note_links.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# Generated by Django 5.0.7 on 2024-08-04 13:19
|
||||
|
||||
import django.contrib.postgres.fields
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('adventures', '0017_alter_note_date'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='note',
|
||||
name='links',
|
||||
field=django.contrib.postgres.fields.ArrayField(base_field=models.URLField(), blank=True, null=True, size=None),
|
||||
),
|
||||
]
|
||||
@@ -116,6 +116,7 @@ class Note(models.Model):
|
||||
User, on_delete=models.CASCADE, default=default_user_id)
|
||||
name = models.CharField(max_length=200)
|
||||
content = models.TextField(blank=True, null=True)
|
||||
links = ArrayField(models.URLField(), blank=True, null=True)
|
||||
date = models.DateField(blank=True, null=True)
|
||||
is_public = models.BooleanField(default=False)
|
||||
collection = models.ForeignKey('Collection', on_delete=models.CASCADE, blank=True, null=True)
|
||||
|
||||
Reference in New Issue
Block a user