-
Notifications
You must be signed in to change notification settings - Fork 635
/
0013_usersyncstatus.py
51 lines (46 loc) · 1.51 KB
/
0013_usersyncstatus.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2021-07-08 17:54
from __future__ import unicode_literals
import django.db.models.deletion
from django.conf import settings
from django.db import migrations
from django.db import models
class Migration(migrations.Migration):
dependencies = [
("morango", "0016_store_deserialization_error"),
migrations.swappable_dependency("kolibriauth.FacilityUser"),
("device", "0012_syncqueue"),
]
operations = [
migrations.CreateModel(
name="UserSyncStatus",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("queued", models.BooleanField(default=False)),
(
"sync_session",
models.ForeignKey(
blank=True,
null=True,
on_delete=django.db.models.deletion.SET_NULL,
to="morango.SyncSession",
),
),
(
"user",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="kolibriauth.FacilityUser",
),
),
],
),
]