Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F79150371
0001_initial.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Aug 25, 00:27
Size
6 KB
Mime Type
text/x-python
Expires
Tue, Aug 27, 00:27 (2 d)
Engine
blob
Format
Raw Data
Handle
20154455
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
0001_initial.py
View Options
# Generated by Django 3.1.4 on 2021-03-15 14:13
import
datetime
from
django.db
import
migrations
,
models
import
django.db.models.deletion
class
Migration
(
migrations
.
Migration
):
initial
=
True
dependencies
=
[
]
operations
=
[
migrations
.
CreateModel
(
name
=
'City'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'name'
,
models
.
CharField
(
max_length
=
120
,
null
=
True
)),
(
'iso_code'
,
models
.
CharField
(
max_length
=
3
,
null
=
True
)),
(
'state'
,
models
.
CharField
(
max_length
=
3
,
null
=
True
)),
],
options
=
{
'ordering'
:
(
'name'
,),
},
),
migrations
.
CreateModel
(
name
=
'Country'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'name'
,
models
.
CharField
(
max_length
=
120
,
null
=
True
)),
(
'iso_code'
,
models
.
CharField
(
max_length
=
3
,
null
=
True
)),
],
options
=
{
'ordering'
:
(
'name'
,),
},
),
migrations
.
CreateModel
(
name
=
'Funder'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'name'
,
models
.
CharField
(
max_length
=
300
,
null
=
True
)),
],
options
=
{
'ordering'
:
(
'name'
,),
},
),
migrations
.
CreateModel
(
name
=
'Language'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'name'
,
models
.
CharField
(
max_length
=
120
,
null
=
True
)),
(
'iso_code'
,
models
.
CharField
(
max_length
=
3
,
null
=
True
)),
],
options
=
{
'ordering'
:
(
'name'
,),
},
),
migrations
.
CreateModel
(
name
=
'Oa'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'status'
,
models
.
CharField
(
max_length
=
1000
,
null
=
True
)),
(
'description'
,
models
.
CharField
(
max_length
=
1000
,
null
=
True
)),
(
'subscription'
,
models
.
BooleanField
(
default
=
False
)),
(
'accepted_manuscript'
,
models
.
BooleanField
(
default
=
False
)),
(
'apc'
,
models
.
BooleanField
(
default
=
False
)),
(
'final_version'
,
models
.
BooleanField
(
default
=
False
)),
],
options
=
{
'ordering'
:
(
'subscription'
,),
},
),
migrations
.
CreateModel
(
name
=
'Publisher'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'name'
,
models
.
CharField
(
max_length
=
1000
,
null
=
True
)),
(
'city'
,
models
.
CharField
(
max_length
=
100
,
null
=
True
)),
(
'state'
,
models
.
CharField
(
max_length
=
3
,
null
=
True
)),
(
'startyear'
,
models
.
IntegerField
()),
(
'website'
,
models
.
URLField
(
max_length
=
1000
)),
(
'oa_policies_url'
,
models
.
URLField
(
max_length
=
1000
)),
(
'country'
,
models
.
ManyToManyField
(
to
=
'django_api.Country'
)),
],
options
=
{
'ordering'
:
(
'name'
,),
},
),
migrations
.
CreateModel
(
name
=
'Journal'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'name'
,
models
.
CharField
(
max_length
=
1000
,
null
=
True
)),
(
'name_short_iso_4'
,
models
.
CharField
(
max_length
=
300
,
null
=
True
)),
(
'website'
,
models
.
URLField
(
max_length
=
300
)),
(
'oa_options_url'
,
models
.
URLField
(
max_length
=
1000
)),
(
'start_year'
,
models
.
IntegerField
()),
(
'oa_status'
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'django_api.oa'
)),
(
'publisher'
,
models
.
ManyToManyField
(
to
=
'django_api.Publisher'
)),
],
options
=
{
'ordering'
:
(
'name'
,),
},
),
migrations
.
CreateModel
(
name
=
'Issn'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'nbr'
,
models
.
CharField
(
max_length
=
9
)),
(
'type_list'
,
models
.
CharField
(
blank
=
True
,
choices
=
[(
1
,
'Print'
),
(
2
,
'Electronic'
),
(
3
,
'CD-ROM'
)],
max_length
=
10
)),
(
'journal'
,
models
.
ManyToManyField
(
to
=
'django_api.Journal'
)),
],
options
=
{
'ordering'
:
(
'nbr'
,),
},
),
migrations
.
CreateModel
(
name
=
'Institution'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'name_en'
,
models
.
CharField
(
max_length
=
1000
,
null
=
True
)),
(
'name_en_short'
,
models
.
CharField
(
max_length
=
100
,
null
=
True
)),
(
'name_de'
,
models
.
CharField
(
max_length
=
1000
,
null
=
True
)),
(
'name_de_short'
,
models
.
CharField
(
max_length
=
100
,
null
=
True
)),
(
'name_fr'
,
models
.
CharField
(
max_length
=
1000
,
null
=
True
)),
(
'name_fr_short'
,
models
.
CharField
(
max_length
=
100
,
null
=
True
)),
(
'name_it'
,
models
.
CharField
(
max_length
=
1000
,
null
=
True
)),
(
'name_it_short'
,
models
.
CharField
(
max_length
=
100
,
null
=
True
)),
(
'website'
,
models
.
URLField
(
max_length
=
300
)),
(
'starting_year'
,
models
.
IntegerField
(
null
=
True
)),
(
'country'
,
models
.
ManyToManyField
(
to
=
'django_api.Country'
)),
],
options
=
{
'ordering'
:
(
'starting_year'
,),
},
),
migrations
.
CreateModel
(
name
=
'Condition'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'name'
,
models
.
CharField
(
max_length
=
300
)),
(
'validity'
,
models
.
DateField
(
default
=
datetime
.
date
.
today
,
verbose_name
=
'Date'
)),
(
'funder'
,
models
.
ManyToManyField
(
to
=
'django_api.Funder'
)),
(
'institution'
,
models
.
ManyToManyField
(
to
=
'django_api.Institution'
)),
(
'journal'
,
models
.
ManyToManyField
(
to
=
'django_api.Journal'
)),
],
options
=
{
'ordering'
:
(
'-validity'
,),
},
),
]
Event Timeline
Log In to Comment