Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / migrations / 0055_auto__chg_field_resource_uplimit__chg_field_astakosuserquota_capacity_.py @ 41e92ef2

History | View | Annotate | Download (26.2 kB)

1
# -*- coding: utf-8 -*-
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

    
7

    
8
class Migration(SchemaMigration):
9

    
10
    def forwards(self, orm):
11

    
12
        # Changing field 'Resource.uplimit'
13
        db.alter_column('im_resource', 'uplimit', self.gf('django.db.models.fields.BigIntegerField')())
14

    
15
        # Changing field 'AstakosUserQuota.capacity'
16
        db.alter_column('im_astakosuserquota', 'capacity', self.gf('django.db.models.fields.BigIntegerField')())
17

    
18
        # Changing field 'ProjectResourceGrant.project_capacity'
19
        db.alter_column('im_projectresourcegrant', 'project_capacity', self.gf('django.db.models.fields.BigIntegerField')(null=True))
20

    
21
        # Changing field 'ProjectResourceGrant.member_capacity'
22
        db.alter_column('im_projectresourcegrant', 'member_capacity', self.gf('django.db.models.fields.BigIntegerField')())
23

    
24
    def backwards(self, orm):
25

    
26
        # Changing field 'Resource.uplimit'
27
        db.alter_column('im_resource', 'uplimit', self.gf('snf_django.lib.db.fields.IntDecimalField')(max_digits=38, decimal_places=0))
28

    
29
        # Changing field 'AstakosUserQuota.capacity'
30
        db.alter_column('im_astakosuserquota', 'capacity', self.gf('snf_django.lib.db.fields.IntDecimalField')(max_digits=38, decimal_places=0))
31

    
32
        # Changing field 'ProjectResourceGrant.project_capacity'
33
        db.alter_column('im_projectresourcegrant', 'project_capacity', self.gf('snf_django.lib.db.fields.IntDecimalField')(null=True, max_digits=38, decimal_places=0))
34

    
35
        # Changing field 'ProjectResourceGrant.member_capacity'
36
        db.alter_column('im_projectresourcegrant', 'member_capacity', self.gf('snf_django.lib.db.fields.IntDecimalField')(max_digits=38, decimal_places=0))
37

    
38
    models = {
39
        'auth.group': {
40
            'Meta': {'object_name': 'Group'},
41
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
42
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
43
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
44
        },
45
        'auth.permission': {
46
            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
47
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
48
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
49
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
50
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
51
        },
52
        'auth.user': {
53
            'Meta': {'object_name': 'User'},
54
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
55
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
56
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
57
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
58
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
59
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
60
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
61
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
62
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
63
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
64
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
65
            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
66
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
67
        },
68
        'contenttypes.contenttype': {
69
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
70
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
71
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
72
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
73
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
74
        },
75
        'im.additionalmail': {
76
            'Meta': {'object_name': 'AdditionalMail'},
77
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
78
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
79
            'owner': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.AstakosUser']"})
80
        },
81
        'im.approvalterms': {
82
            'Meta': {'object_name': 'ApprovalTerms'},
83
            'date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}),
84
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
85
            'location': ('django.db.models.fields.CharField', [], {'max_length': '255'})
86
        },
87
        'im.astakosuser': {
88
            'Meta': {'object_name': 'AstakosUser', '_ormbases': ['auth.User']},
89
            'accepted_email': ('django.db.models.fields.EmailField', [], {'default': 'None', 'max_length': '75', 'null': 'True', 'blank': 'True'}),
90
            'accepted_policy': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '255', 'null': 'True', 'blank': 'True'}),
91
            'activation_sent': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
92
            'affiliation': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
93
            'auth_token': ('django.db.models.fields.CharField', [], {'max_length': '64', 'unique': 'True', 'null': 'True', 'blank': 'True'}),
94
            'auth_token_created': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
95
            'auth_token_expires': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
96
            'date_signed_terms': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
97
            'deactivated_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
98
            'deactivated_reason': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True'}),
99
            'disturbed_quota': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True'}),
100
            'email_verified': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
101
            'has_credits': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
102
            'has_signed_terms': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
103
            'invitations': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
104
            'is_rejected': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
105
            'is_verified': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
106
            'level': ('django.db.models.fields.IntegerField', [], {'default': '4'}),
107
            'moderated': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
108
            'moderated_at': ('django.db.models.fields.DateTimeField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
109
            'moderated_data': ('django.db.models.fields.TextField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
110
            'policy': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['im.Resource']", 'null': 'True', 'through': "orm['im.AstakosUserQuota']", 'symmetrical': 'False'}),
111
            'rejected_reason': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
112
            'updated': ('django.db.models.fields.DateTimeField', [], {}),
113
            'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),
114
            'uuid': ('django.db.models.fields.CharField', [], {'max_length': '255', 'unique': 'True', 'null': 'True'}),
115
            'verification_code': ('django.db.models.fields.CharField', [], {'max_length': '255', 'unique': 'True', 'null': 'True'}),
116
            'verified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
117
        },
118
        'im.astakosuserauthprovider': {
119
            'Meta': {'ordering': "('module', 'created')", 'unique_together': "(('identifier', 'module', 'user'),)", 'object_name': 'AstakosUserAuthProvider'},
120
            'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
121
            'affiliation': ('django.db.models.fields.CharField', [], {'default': 'None', 'max_length': '255', 'null': 'True', 'blank': 'True'}),
122
            'auth_backend': ('django.db.models.fields.CharField', [], {'default': "'astakos'", 'max_length': '255'}),
123
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
124
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
125
            'identifier': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
126
            'info_data': ('django.db.models.fields.TextField', [], {'default': "''", 'null': 'True', 'blank': 'True'}),
127
            'module': ('django.db.models.fields.CharField', [], {'default': "'local'", 'max_length': '255'}),
128
            'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_providers'", 'to': "orm['im.AstakosUser']"})
129
        },
130
        'im.astakosuserquota': {
131
            'Meta': {'unique_together': "(('resource', 'user'),)", 'object_name': 'AstakosUserQuota'},
132
            'capacity': ('django.db.models.fields.BigIntegerField', [], {}),
133
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
134
            'resource': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.Resource']"}),
135
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.AstakosUser']"})
136
        },
137
        'im.authproviderpolicyprofile': {
138
            'Meta': {'ordering': "['priority']", 'object_name': 'AuthProviderPolicyProfile'},
139
            'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
140
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'authpolicy_profiles'", 'symmetrical': 'False', 'to': "orm['auth.Group']"}),
141
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
142
            'is_exclusive': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
143
            'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
144
            'policy_add': ('django.db.models.fields.NullBooleanField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
145
            'policy_automoderate': ('django.db.models.fields.NullBooleanField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
146
            'policy_create': ('django.db.models.fields.NullBooleanField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
147
            'policy_limit': ('django.db.models.fields.IntegerField', [], {'default': 'None', 'null': 'True'}),
148
            'policy_login': ('django.db.models.fields.NullBooleanField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
149
            'policy_remove': ('django.db.models.fields.NullBooleanField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
150
            'policy_required': ('django.db.models.fields.NullBooleanField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
151
            'policy_switch': ('django.db.models.fields.NullBooleanField', [], {'default': 'None', 'null': 'True', 'blank': 'True'}),
152
            'priority': ('django.db.models.fields.IntegerField', [], {'default': '1'}),
153
            'provider': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
154
            'users': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'authpolicy_profiles'", 'symmetrical': 'False', 'to': "orm['im.AstakosUser']"})
155
        },
156
        'im.chain': {
157
            'Meta': {'object_name': 'Chain'},
158
            'chain': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
159
        },
160
        'im.component': {
161
            'Meta': {'object_name': 'Component'},
162
            'auth_token': ('django.db.models.fields.CharField', [], {'max_length': '64', 'unique': 'True', 'null': 'True', 'blank': 'True'}),
163
            'auth_token_created': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
164
            'auth_token_expires': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
165
            'base_url': ('django.db.models.fields.CharField', [], {'max_length': '1024', 'null': 'True'}),
166
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
167
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255', 'db_index': 'True'}),
168
            'url': ('django.db.models.fields.CharField', [], {'max_length': '1024', 'null': 'True'})
169
        },
170
        'im.emailchange': {
171
            'Meta': {'object_name': 'EmailChange'},
172
            'activation_key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40', 'db_index': 'True'}),
173
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
174
            'new_email_address': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
175
            'requested_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
176
            'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'emailchanges'", 'unique': 'True', 'to': "orm['im.AstakosUser']"})
177
        },
178
        'im.endpoint': {
179
            'Meta': {'object_name': 'Endpoint'},
180
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
181
            'service': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'endpoints'", 'to': "orm['im.Service']"})
182
        },
183
        'im.endpointdata': {
184
            'Meta': {'unique_together': "(('endpoint', 'key'),)", 'object_name': 'EndpointData'},
185
            'endpoint': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'data'", 'to': "orm['im.Endpoint']"}),
186
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
187
            'key': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
188
            'value': ('django.db.models.fields.CharField', [], {'max_length': '1024'})
189
        },
190
        'im.invitation': {
191
            'Meta': {'object_name': 'Invitation'},
192
            'code': ('django.db.models.fields.BigIntegerField', [], {'db_index': 'True'}),
193
            'consumed': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
194
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
195
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
196
            'inviter': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'invitations_sent'", 'null': 'True', 'to': "orm['im.AstakosUser']"}),
197
            'is_consumed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
198
            'realname': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
199
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
200
        },
201
        'im.pendingthirdpartyuser': {
202
            'Meta': {'unique_together': "(('provider', 'third_party_identifier'),)", 'object_name': 'PendingThirdPartyUser'},
203
            'affiliation': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
204
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'null': 'True', 'blank': 'True'}),
205
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'null': 'True', 'blank': 'True'}),
206
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
207
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
208
            'info': ('django.db.models.fields.TextField', [], {'default': "''", 'null': 'True', 'blank': 'True'}),
209
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': 'True'}),
210
            'provider': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
211
            'third_party_identifier': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
212
            'token': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
213
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
214
        },
215
        'im.project': {
216
            'Meta': {'object_name': 'Project'},
217
            'application': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'project'", 'unique': 'True', 'to': "orm['im.ProjectApplication']"}),
218
            'creation_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
219
            'id': ('django.db.models.fields.BigIntegerField', [], {'primary_key': 'True', 'db_column': "'id'"}),
220
            'members': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['im.AstakosUser']", 'through': "orm['im.ProjectMembership']", 'symmetrical': 'False'}),
221
            'name': ('django.db.models.fields.CharField', [], {'max_length': '80', 'unique': 'True', 'null': 'True', 'db_index': 'True'}),
222
            'state': ('django.db.models.fields.IntegerField', [], {'default': '1', 'db_index': 'True'})
223
        },
224
        'im.projectapplication': {
225
            'Meta': {'unique_together': "(('chain', 'id'),)", 'object_name': 'ProjectApplication'},
226
            'applicant': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'projects_applied'", 'to': "orm['im.AstakosUser']"}),
227
            'chain': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'chained_apps'", 'db_column': "'chain'", 'to': "orm['im.Project']"}),
228
            'comments': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
229
            'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
230
            'end_date': ('django.db.models.fields.DateTimeField', [], {}),
231
            'homepage': ('django.db.models.fields.URLField', [], {'max_length': '255', 'null': 'True'}),
232
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
233
            'issue_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
234
            'limit_on_members_number': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True'}),
235
            'member_join_policy': ('django.db.models.fields.IntegerField', [], {}),
236
            'member_leave_policy': ('django.db.models.fields.IntegerField', [], {}),
237
            'name': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
238
            'owner': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'projects_owned'", 'to': "orm['im.AstakosUser']"}),
239
            'resource_grants': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['im.Resource']", 'null': 'True', 'through': "orm['im.ProjectResourceGrant']", 'blank': 'True'}),
240
            'response': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
241
            'response_actor': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'responded_apps'", 'null': 'True', 'to': "orm['im.AstakosUser']"}),
242
            'response_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
243
            'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
244
            'state': ('django.db.models.fields.IntegerField', [], {'default': '0', 'db_index': 'True'}),
245
            'waive_actor': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'waived_apps'", 'null': 'True', 'to': "orm['im.AstakosUser']"}),
246
            'waive_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
247
            'waive_reason': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'})
248
        },
249
        'im.projectlock': {
250
            'Meta': {'object_name': 'ProjectLock'},
251
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
252
        },
253
        'im.projectlog': {
254
            'Meta': {'object_name': 'ProjectLog'},
255
            'actor': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.AstakosUser']", 'null': 'True'}),
256
            'comments': ('django.db.models.fields.TextField', [], {'null': 'True'}),
257
            'date': ('django.db.models.fields.DateTimeField', [], {}),
258
            'from_state': ('django.db.models.fields.IntegerField', [], {'null': 'True'}),
259
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
260
            'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'log'", 'to': "orm['im.Project']"}),
261
            'reason': ('django.db.models.fields.TextField', [], {'null': 'True'}),
262
            'to_state': ('django.db.models.fields.IntegerField', [], {})
263
        },
264
        'im.projectmembership': {
265
            'Meta': {'unique_together': "(('person', 'project'),)", 'object_name': 'ProjectMembership'},
266
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
267
            'person': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.AstakosUser']"}),
268
            'project': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.Project']"}),
269
            'state': ('django.db.models.fields.IntegerField', [], {'default': '0', 'db_index': 'True'})
270
        },
271
        'im.projectmembershiplog': {
272
            'Meta': {'object_name': 'ProjectMembershipLog'},
273
            'actor': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.AstakosUser']", 'null': 'True'}),
274
            'comments': ('django.db.models.fields.TextField', [], {'null': 'True'}),
275
            'date': ('django.db.models.fields.DateTimeField', [], {}),
276
            'from_state': ('django.db.models.fields.IntegerField', [], {'null': 'True'}),
277
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
278
            'membership': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'log'", 'to': "orm['im.ProjectMembership']"}),
279
            'reason': ('django.db.models.fields.TextField', [], {'null': 'True'}),
280
            'to_state': ('django.db.models.fields.IntegerField', [], {})
281
        },
282
        'im.projectresourcegrant': {
283
            'Meta': {'unique_together': "(('resource', 'project_application'),)", 'object_name': 'ProjectResourceGrant'},
284
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
285
            'member_capacity': ('django.db.models.fields.BigIntegerField', [], {'default': '0'}),
286
            'project_application': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.ProjectApplication']", 'null': 'True'}),
287
            'project_capacity': ('django.db.models.fields.BigIntegerField', [], {'null': 'True'}),
288
            'resource': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.Resource']"})
289
        },
290
        'im.resource': {
291
            'Meta': {'object_name': 'Resource'},
292
            'allow_in_projects': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
293
            'desc': ('django.db.models.fields.TextField', [], {'null': 'True'}),
294
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
295
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
296
            'service_origin': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
297
            'service_type': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
298
            'unit': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True'}),
299
            'uplimit': ('django.db.models.fields.BigIntegerField', [], {'default': '0'})
300
        },
301
        'im.service': {
302
            'Meta': {'object_name': 'Service'},
303
            'component': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.Component']"}),
304
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
305
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
306
            'type': ('django.db.models.fields.CharField', [], {'max_length': '255'})
307
        },
308
        'im.sessioncatalog': {
309
            'Meta': {'object_name': 'SessionCatalog'},
310
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
311
            'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
312
            'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'sessions'", 'null': 'True', 'to': "orm['im.AstakosUser']"})
313
        },
314
        'im.usersetting': {
315
            'Meta': {'unique_together': "(('user', 'setting'),)", 'object_name': 'UserSetting'},
316
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
317
            'setting': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
318
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['im.AstakosUser']"}),
319
            'value': ('django.db.models.fields.IntegerField', [], {})
320
        }
321
    }
322

    
323
    complete_apps = ['im']