-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path0006_sharepointdocument.py
36 lines (31 loc) · 1.7 KB
/
0006_sharepointdocument.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Generated by Django 4.2.19 on 2025-03-04 20:51
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('documents', '0005_switch_to_booleanfield_with_null_kwarg'),
]
operations = [
migrations.CreateModel(
name='SharePointDocument',
fields=[
('created_on', models.DateTimeField(auto_now_add=True, db_index=True, null=True)),
('modified_on', models.DateTimeField(auto_now=True, null=True)),
('archived', models.BooleanField(default=False)),
('archived_on', models.DateTimeField(blank=True, null=True)),
('archived_reason', models.TextField(blank=True, null=True)),
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)),
('title', models.CharField(blank=True, default='', max_length=255)),
('url', models.URLField(max_length=255)),
('archived_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)),
('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)),
('modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)),
],
options={
'abstract': False,
},
),
]