Code Duplication    Length = 15-17 lines in 6 locations

django-data/image/cryoweb/models.py 6 locations

@@ 150-166 (lines=17) @@
147
        unique_together = (('table_name', 'table_columns'),)
148
149
150
class ArRoleConstraints(BaseMixin, models.Model):
151
    cons_id = models.IntegerField(blank=True, null=True)
152
    first_role_id = models.IntegerField(blank=True, null=True)
153
    second_role_id = models.IntegerField(blank=True, null=True)
154
    last_change_dt = models.DateTimeField(blank=True, null=True)
155
    last_change_user = models.TextField(blank=True, null=True)
156
    dirty = models.NullBooleanField()
157
    chk_lvl = models.SmallIntegerField(blank=True, null=True)
158
    guid = models.IntegerField(primary_key=True)
159
    owner = models.TextField(blank=True, null=True)
160
    version = models.IntegerField(blank=True, null=True)
161
    synch = models.NullBooleanField()
162
163
    class Meta:
164
        managed = False
165
        db_table = 'ar_role_constraints'
166
        unique_together = (('cons_id', 'first_role_id', 'second_role_id'),)
167
168
169
class ArRoleDbtpolicies(BaseMixin, models.Model):
@@ 321-336 (lines=16) @@
318
        db_table = 'ar_users_data'
319
320
321
class Blobs(BaseMixin, models.Model):
322
    blob_id = models.IntegerField(blank=True, null=True)
323
    blob = models.BinaryField(blank=True, null=True)
324
    last_change_dt = models.DateTimeField(blank=True, null=True)
325
    last_change_user = models.TextField(blank=True, null=True)
326
    dirty = models.NullBooleanField()
327
    chk_lvl = models.SmallIntegerField(blank=True, null=True)
328
    guid = models.IntegerField(primary_key=True)
329
    owner = models.TextField(blank=True, null=True)
330
    version = models.IntegerField(blank=True, null=True)
331
    synch = models.NullBooleanField()
332
    db_mimetype = models.IntegerField(blank=True, null=True)
333
334
    class Meta:
335
        managed = False
336
        db_table = 'blobs'
337
338
339
class BreedsSpecies(BaseMixin, models.Model):
@@ 247-262 (lines=16) @@
244
        unique_together = (('stpolicy_name', 'stpolicy_type'),)
245
246
247
class ArUserRoles(BaseMixin, models.Model):
248
    user_id = models.IntegerField(blank=True, null=True)
249
    role_id = models.IntegerField(blank=True, null=True)
250
    last_change_dt = models.DateTimeField(blank=True, null=True)
251
    last_change_user = models.TextField(blank=True, null=True)
252
    dirty = models.NullBooleanField()
253
    chk_lvl = models.SmallIntegerField(blank=True, null=True)
254
    guid = models.IntegerField(primary_key=True)
255
    owner = models.TextField(blank=True, null=True)
256
    version = models.IntegerField(blank=True, null=True)
257
    synch = models.NullBooleanField()
258
259
    class Meta:
260
        managed = False
261
        db_table = 'ar_user_roles'
262
        unique_together = (('user_id', 'role_id'),)
263
264
265
class ArUsers(BaseMixin, models.Model):
@@ 187-202 (lines=16) @@
184
        unique_together = (('role_id', 'dbtpolicy_id'),)
185
186
187
class ArRoleStpolicies(BaseMixin, models.Model):
188
    role_id = models.IntegerField(blank=True, null=True)
189
    stpolicy_id = models.IntegerField(blank=True, null=True)
190
    last_change_dt = models.DateTimeField(blank=True, null=True)
191
    last_change_user = models.TextField(blank=True, null=True)
192
    dirty = models.NullBooleanField()
193
    chk_lvl = models.SmallIntegerField(blank=True, null=True)
194
    guid = models.IntegerField(primary_key=True)
195
    owner = models.TextField(blank=True, null=True)
196
    version = models.IntegerField(blank=True, null=True)
197
    synch = models.NullBooleanField()
198
199
    class Meta:
200
        managed = False
201
        db_table = 'ar_role_stpolicies'
202
        unique_together = (('role_id', 'stpolicy_id'),)
203
204
205
class ArRoles(BaseMixin, models.Model):
@@ 169-184 (lines=16) @@
166
        unique_together = (('cons_id', 'first_role_id', 'second_role_id'),)
167
168
169
class ArRoleDbtpolicies(BaseMixin, models.Model):
170
    role_id = models.IntegerField(blank=True, null=True)
171
    dbtpolicy_id = models.IntegerField(blank=True, null=True)
172
    last_change_dt = models.DateTimeField(blank=True, null=True)
173
    last_change_user = models.TextField(blank=True, null=True)
174
    dirty = models.NullBooleanField()
175
    chk_lvl = models.SmallIntegerField(blank=True, null=True)
176
    guid = models.IntegerField(primary_key=True)
177
    owner = models.TextField(blank=True, null=True)
178
    version = models.IntegerField(blank=True, null=True)
179
    synch = models.NullBooleanField()
180
181
    class Meta:
182
        managed = False
183
        db_table = 'ar_role_dbtpolicies'
184
        unique_together = (('role_id', 'dbtpolicy_id'),)
185
186
187
class ArRoleStpolicies(BaseMixin, models.Model):
@@ 612-626 (lines=15) @@
609
        unique_together = (('class_field', 'key', 'trait'),)
610
611
612
class Nodes(BaseMixin, models.Model):
613
    nodename = models.TextField(blank=True, null=True)
614
    address = models.TextField(blank=True, null=True)
615
    last_change_dt = models.DateTimeField(blank=True, null=True)
616
    last_change_user = models.TextField(blank=True, null=True)
617
    dirty = models.NullBooleanField()
618
    chk_lvl = models.SmallIntegerField(blank=True, null=True)
619
    guid = models.IntegerField(primary_key=True)
620
    owner = models.TextField(blank=True, null=True)
621
    version = models.IntegerField(blank=True, null=True)
622
    synch = models.NullBooleanField()
623
624
    class Meta:
625
        managed = False
626
        db_table = 'nodes'
627
628
629
class Protocols(BaseMixin, models.Model):