Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / migrations / 0044_auto__chg_field_projectapplication_chain__chg_field_project_id.py @ 5cdbe7cc

History | View | Annotate | Download (25.1 kB)

1
# encoding: 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
class Migration(SchemaMigration):
8
    
9
    def forwards(self, orm):
10
        
11
        # Changing field 'ProjectApplication.chain'
12
        db.alter_column('im_projectapplication', 'chain', self.gf('django.db.models.fields.related.ForeignKey')(db_column='chain', to=orm['im.Project']))
13

    
14
        # Changing field 'Project.id'
15
        db.alter_column('im_project', 'id', self.gf('django.db.models.fields.BigIntegerField')(primary_key=True, db_column='id'))
16

    
17
        if db.backend_name != 'sqlite3':
18
            # Removing index on 'Project', fields ['id']
19
            db.delete_index('im_project', ['id'])
20
    
21
    
22
    def backwards(self, orm):
23
        
24
        # Changing field 'ProjectApplication.chain'
25
        db.alter_column('im_projectapplication', 'chain', self.gf('django.db.models.fields.related.ForeignKey')(db_column='chain', to=orm['im.Chain']))
26

    
27
        # Changing field 'Project.id'
28
        db.alter_column('im_project', 'id', self.gf('django.db.models.fields.related.OneToOneField')(unique=True, primary_key=True, db_column='id', to=orm['im.Chain']))
29

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