Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 84 lines (74 sloc) 3.777 kb
# This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# Feel free to rename the models, but don't rename db_table values or field names.
#
# Also note: You'll have to insert the output of 'django-admin.py sqlcustom [appname]'
# into your database.
import os, sys
from django.db import models
class ArbkBusinesscategory(models.Model):
name = models.CharField(max_length=200, db_column=u'Name') # Field name made lowercase.
def __unicode__(self):
return (self.name)
class Meta:
db_table = u'arbk_businesscategory'
verbose_name_plural = "BusinessCategories"
class ArbkLegalentity(models.Model):
name = models.CharField(max_length=200, db_column=u'Name') # Field name made lowercase.
def __unicode__(self):
return (self.name)
class Meta:
db_table = u'arbk_legalentity'
verbose_name_plural = "LegalEntities"
class ArbkCompany(models.Model):
name = models.CharField(max_length=200, db_column=u'Name') # Field name made lowercase.
regnumber = models.IntegerField(unique=True, db_column=u'RegNumber') # Field name made lowercase.
employsnumber = models.IntegerField(db_column=u'EmploysNumber') # Field name made lowercase.
constitutiondate = models.IntegerField(db_column=u'ConstitutionDate') # Field name made lowercase.
telephone = models.CharField(max_length=200, db_column=u'Telephone') # Field name made lowercase.
capital = models.TextField(db_column=u'Capital') # Field name made lowercase. This field type is a guess.
addressstreet = models.CharField(max_length=200, db_column=u'AddressStreet') # Field name made lowercase.
addressstreetnumber = models.CharField(max_length=10, db_column=u'AddressStreetNumber') # Field name made lowercase.
addresscity = models.CharField(max_length=40, db_column=u'AddressCity') # Field name made lowercase.
addresspostcode = models.CharField(max_length=10, db_column=u'AddressPostCode') # Field name made lowercase.
primarycategory = models.ForeignKey(ArbkBusinesscategory, db_column=u'PrimaryCategory_id') # Field name made lowercase.
owner = models.ForeignKey(ArbkLegalentity)
def __unicode__(self):
return (self.name)
class Meta:
db_table = u'arbk_company'
verbose_name_plural = "Companies"
class ArbkPerson(models.Model):
personalid = models.CharField(max_length=200, db_column=u'PersonalID') # Field name made lowercase.
name = models.CharField(max_length=200, db_column=u'Name') # Field name made lowercase.
def __unicode__(self):
return (self.name)
class Meta:
db_table = u'arbk_person'
verbose_name_plural = "People"
class ArbkCompanyAuthorizedpersons(models.Model):
company = models.ForeignKey(ArbkCompany)
person = models.ForeignKey(ArbkPerson)
def __unicode__(self):
return (self.person.name)
class Meta:
db_table = u'arbk_company_AuthorizedPersons'
verbose_name_plural = "AuthorizedPeople"
class ArbkCompanyOwners(models.Model):
company = models.ForeignKey(ArbkCompany)
legalentity = models.ForeignKey(ArbkLegalentity)
def __unicode__(self):
return str(self.company)
class Meta:
db_table = u'arbk_company_Owners'
verbose_name_plural = "Owners"
class ArbkCompanySecondarycategories(models.Model):
company = models.ForeignKey(ArbkCompany)
businesscategory = models.ForeignKey(ArbkBusinesscategory)
def __unicode__(self):
return str(self.businesscategory)
class Meta:
db_table = u'arbk_company_SecondaryCategories'
verbose_name_plural = "SecondaryCategories"
Jump to Line
Something went wrong with that request. Please try again.