Coverage for apis_core/apis_metainfo/migrations/0001_initial.py: 100%
7 statements
« prev ^ index » next coverage.py v7.6.8, created at 2024-12-20 09:24 +0000
« prev ^ index » next coverage.py v7.6.8, created at 2024-12-20 09:24 +0000
1# Generated by Django 3.1.14 on 2022-02-01 12:41
3import django.db.models.deletion
4from django.db import migrations, models
6import apis_core.apis_metainfo.models
9class Migration(migrations.Migration):
10 initial = True
12 dependencies = []
14 operations = [
15 migrations.CreateModel(
16 name="Collection",
17 fields=[
18 (
19 "id",
20 models.AutoField(
21 auto_created=True,
22 primary_key=True,
23 serialize=False,
24 verbose_name="ID",
25 ),
26 ),
27 ("name", models.CharField(max_length=255)),
28 ("description", models.TextField(blank=True)),
29 ("published", models.BooleanField(default=False)),
30 ],
31 ),
32 migrations.CreateModel(
33 name="RootObject",
34 fields=[
35 (
36 "id",
37 models.AutoField(
38 auto_created=True,
39 primary_key=True,
40 serialize=False,
41 verbose_name="ID",
42 ),
43 ),
44 ("name", models.CharField(max_length=255, verbose_name="Name")),
45 ],
46 ),
47 migrations.CreateModel(
48 name="Source",
49 fields=[
50 (
51 "id",
52 models.AutoField(
53 auto_created=True,
54 primary_key=True,
55 serialize=False,
56 verbose_name="ID",
57 ),
58 ),
59 ("orig_filename", models.CharField(blank=True, max_length=255)),
60 ("indexed", models.BooleanField(default=False)),
61 ("pubinfo", models.CharField(blank=True, max_length=400)),
62 ("author", models.CharField(blank=True, max_length=255)),
63 ("orig_id", models.PositiveIntegerField(blank=True, null=True)),
64 ],
65 ),
66 migrations.CreateModel(
67 name="Text",
68 fields=[
69 (
70 "id",
71 models.AutoField(
72 auto_created=True,
73 primary_key=True,
74 serialize=False,
75 verbose_name="ID",
76 ),
77 ),
78 ("text", models.TextField(blank=True, null=True)),
79 ],
80 ),
81 migrations.CreateModel(
82 name="UriCandidate",
83 fields=[
84 (
85 "id",
86 models.AutoField(
87 auto_created=True,
88 primary_key=True,
89 serialize=False,
90 verbose_name="ID",
91 ),
92 ),
93 ("uri", models.URLField()),
94 ("confidence", models.FloatField(blank=True, null=True)),
95 ("responsible", models.CharField(max_length=255)),
96 (
97 "root_object",
98 models.ForeignKey(
99 blank=True,
100 null=True,
101 on_delete=django.db.models.deletion.CASCADE,
102 to="apis_metainfo.rootobject",
103 ),
104 ),
105 ],
106 ),
107 migrations.CreateModel(
108 name="Uri",
109 fields=[
110 (
111 "id",
112 models.AutoField(
113 auto_created=True,
114 primary_key=True,
115 serialize=False,
116 verbose_name="ID",
117 ),
118 ),
119 (
120 "uri",
121 models.URLField(blank=True, max_length=255, null=True, unique=True),
122 ),
123 ("domain", models.CharField(blank=True, max_length=255)),
124 ("rdf_link", models.URLField(blank=True)),
125 ("loaded", models.BooleanField(default=False)),
126 ("loaded_time", models.DateTimeField(blank=True, null=True)),
127 (
128 "root_object",
129 apis_core.apis_metainfo.models.InheritanceForeignKey(
130 blank=True,
131 null=True,
132 on_delete=django.db.models.deletion.CASCADE,
133 to="apis_metainfo.rootobject",
134 ),
135 ),
136 ],
137 ),
138 ]