34 lines
1.3 KiB
Python
34 lines
1.3 KiB
Python
|
|
# Generated by Django 6.1 on 2026-08-28 08:01
|
||
|
|
|
||
|
|
import django.db.models.deletion
|
||
|
|
from django.conf import settings
|
||
|
|
from django.db import migrations, models
|
||
|
|
|
||
|
|
|
||
|
|
class Migration(migrations.Migration):
|
||
|
|
|
||
|
|
dependencies = [
|
||
|
|
('accounts', '0004_apitoken'),
|
||
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||
|
|
]
|
||
|
|
|
||
|
|
operations = [
|
||
|
|
migrations.CreateModel(
|
||
|
|
name='WebDAVSource',
|
||
|
|
fields=[
|
||
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
|
('label', models.CharField(max_length=100)),
|
||
|
|
('base_url', models.URLField(max_length=500)),
|
||
|
|
('username', models.CharField(blank=True, max_length=200)),
|
||
|
|
('password', models.CharField(blank=True, max_length=500)),
|
||
|
|
('root_path', models.CharField(blank=True, default='', max_length=500)),
|
||
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
||
|
|
('last_used_at', models.DateTimeField(blank=True, null=True)),
|
||
|
|
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='webdav_sources', to=settings.AUTH_USER_MODEL)),
|
||
|
|
],
|
||
|
|
options={
|
||
|
|
'ordering': ['created_at'],
|
||
|
|
},
|
||
|
|
),
|
||
|
|
]
|