# -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-16 17:29
from __future__ import unicode_literals

import b24online.custom
import b24online.models
import b24online.utils
from django.conf import settings
import django.contrib.postgres.fields.hstore
import django.contrib.postgres.fields.ranges
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import django.db.models.manager
import django.utils.timezone
import mptt.fields
import polymorphic_tree.models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0007_alter_validators_add_error_messages'),
        ('contenttypes', '0002_remove_content_type_name'),
        ('sites', '0002_alter_domain_unique'),
    ]

    operations = [
        migrations.CreateModel(
            name='User',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('password', models.CharField(max_length=128, verbose_name='password')),
                ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
                ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')),
                ('email', models.EmailField(db_index=True, max_length=255, unique=True, verbose_name='E-mail')),
                ('is_active', models.BooleanField(default=True)),
                ('is_admin', models.BooleanField(default=False)),
                ('is_manager', models.BooleanField(default=False)),
                ('is_commando', models.BooleanField(default=False)),
                ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')),
                ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')),
                ('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')),
            ],
            options={
                'db_table': 'core_user',
            },
        ),
        migrations.CreateModel(
            name='AdditionalPage',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=255)),
                ('title_ru', models.CharField(max_length=255, null=True)),
                ('title_am', models.CharField(max_length=255, null=True)),
                ('title_bg', models.CharField(max_length=255, null=True)),
                ('title_en', models.CharField(max_length=255, null=True)),
                ('title_uk', models.CharField(max_length=255, null=True)),
                ('title_he', models.CharField(max_length=255, null=True)),
                ('title_ar', models.CharField(max_length=255, null=True)),
                ('title_zh', models.CharField(max_length=255, null=True)),
                ('slug', models.SlugField(max_length=255)),
                ('slug_ru', models.SlugField(max_length=255, null=True)),
                ('slug_am', models.SlugField(max_length=255, null=True)),
                ('slug_bg', models.SlugField(max_length=255, null=True)),
                ('slug_en', models.SlugField(max_length=255, null=True)),
                ('slug_uk', models.SlugField(max_length=255, null=True)),
                ('slug_he', models.SlugField(max_length=255, null=True)),
                ('slug_ar', models.SlugField(max_length=255, null=True)),
                ('slug_zh', models.SlugField(max_length=255, null=True)),
                ('content', models.TextField()),
                ('content_ru', models.TextField(null=True)),
                ('content_am', models.TextField(null=True)),
                ('content_bg', models.TextField(null=True)),
                ('content_en', models.TextField(null=True)),
                ('content_uk', models.TextField(null=True)),
                ('content_he', models.TextField(null=True)),
                ('content_ar', models.TextField(null=True)),
                ('content_zh', models.TextField(null=True)),
                ('object_id', models.PositiveIntegerField()),
                ('created_at', models.DateTimeField(default=django.utils.timezone.now)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')),
                ('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='additionalpage_create_user', to=settings.AUTH_USER_MODEL)),
                ('updated_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='additionalpage_update_user', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Advertisement',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('dates', django.contrib.postgres.fields.ranges.DateRangeField()),
            ],
        ),
        migrations.CreateModel(
            name='AdvertisementPrice',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('advertisement_type', models.CharField(choices=[('banner', 'Banners'), ('context', 'Context Advertisement')], max_length=10)),
                ('object_id', models.PositiveIntegerField()),
                ('dates', django.contrib.postgres.fields.ranges.DateTimeRangeField()),
                ('price', models.DecimalField(decimal_places=2, max_digits=15)),
                ('created_at', models.DateTimeField(default=django.utils.timezone.now)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')),
                ('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='advertisementprice_create_user', to=settings.AUTH_USER_MODEL)),
                ('updated_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='advertisementprice_update_user', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='AdvertisementTarget',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('object_id', models.PositiveIntegerField()),
                ('created_at', models.DateTimeField(default=django.utils.timezone.now)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
        ),
        migrations.CreateModel(
            name='B2BProduct',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=2048)),
                ('name_ru', models.CharField(max_length=2048, null=True)),
                ('name_am', models.CharField(max_length=2048, null=True)),
                ('name_bg', models.CharField(max_length=2048, null=True)),
                ('name_en', models.CharField(max_length=2048, null=True)),
                ('name_uk', models.CharField(max_length=2048, null=True)),
                ('name_he', models.CharField(max_length=2048, null=True)),
                ('name_ar', models.CharField(max_length=2048, null=True)),
                ('name_zh', models.CharField(max_length=2048, null=True)),
                ('slug', models.SlugField(max_length=2048)),
                ('slug_ru', models.SlugField(max_length=2048, null=True)),
                ('slug_am', models.SlugField(max_length=2048, null=True)),
                ('slug_bg', models.SlugField(max_length=2048, null=True)),
                ('slug_en', models.SlugField(max_length=2048, null=True)),
                ('slug_uk', models.SlugField(max_length=2048, null=True)),
                ('slug_he', models.SlugField(max_length=2048, null=True)),
                ('slug_ar', models.SlugField(max_length=2048, null=True)),
                ('slug_zh', models.SlugField(max_length=2048, null=True)),
                ('short_description', models.TextField()),
                ('short_description_ru', models.TextField(null=True)),
                ('short_description_am', models.TextField(null=True)),
                ('short_description_bg', models.TextField(null=True)),
                ('short_description_en', models.TextField(null=True)),
                ('short_description_uk', models.TextField(null=True)),
                ('short_description_he', models.TextField(null=True)),
                ('short_description_ar', models.TextField(null=True)),
                ('short_description_zh', models.TextField(null=True)),
                ('description', models.TextField()),
                ('description_ru', models.TextField(null=True)),
                ('description_am', models.TextField(null=True)),
                ('description_bg', models.TextField(null=True)),
                ('description_en', models.TextField(null=True)),
                ('description_uk', models.TextField(null=True)),
                ('description_he', models.TextField(null=True)),
                ('description_ar', models.TextField(null=True)),
                ('description_zh', models.TextField(null=True)),
                ('image', b24online.custom.CustomImageField(blank=True, max_length=255, null=True, storage=b24online.custom.S3ImageStorage(), upload_to=b24online.utils.generate_upload_path)),
                ('keywords', models.CharField(blank=True, max_length=2048)),
                ('keywords_ru', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_am', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_bg', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_en', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_uk', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_he', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_ar', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_zh', models.CharField(blank=True, max_length=2048, null=True)),
                ('currency', models.CharField(blank=True, choices=[('ILS', 'Israeli New Sheqel'), ('EUR', 'Euro'), ('USD', 'Dollar'), ('UAH', 'Hryvnia'), ('RUB', 'Russian Ruble'), ('BGN', 'Bulgarian Lev'), ('BYR', 'Belarusian Ruble')], max_length=255, null=True)),
                ('measurement_unit', models.CharField(blank=True, choices=[('kg', 'Kilogram'), ('pcs', 'Piece')], max_length=255, null=True)),
                ('cost', models.DecimalField(blank=True, decimal_places=2, max_digits=15, null=True)),
                ('is_active', models.BooleanField(default=True)),
                ('is_deleted', models.BooleanField(default=False)),
                ('metadata', django.contrib.postgres.fields.hstore.HStoreField()),
                ('created_at', models.DateTimeField(auto_now_add=True, db_index=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            bases=(b24online.models.ActiveModelMixing, models.Model, b24online.models.IndexedModelMixin),
        ),
        migrations.CreateModel(
            name='B2BProductCategory',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('name_ru', models.CharField(max_length=255, null=True)),
                ('name_am', models.CharField(max_length=255, null=True)),
                ('name_bg', models.CharField(max_length=255, null=True)),
                ('name_en', models.CharField(max_length=255, null=True)),
                ('name_uk', models.CharField(max_length=255, null=True)),
                ('name_he', models.CharField(max_length=255, null=True)),
                ('name_ar', models.CharField(max_length=255, null=True)),
                ('name_zh', models.CharField(max_length=255, null=True)),
                ('slug', models.SlugField(max_length=255)),
                ('slug_ru', models.SlugField(max_length=255, null=True)),
                ('slug_am', models.SlugField(max_length=255, null=True)),
                ('slug_bg', models.SlugField(max_length=255, null=True)),
                ('slug_en', models.SlugField(max_length=255, null=True)),
                ('slug_uk', models.SlugField(max_length=255, null=True)),
                ('slug_he', models.SlugField(max_length=255, null=True)),
                ('slug_ar', models.SlugField(max_length=255, null=True)),
                ('slug_zh', models.SlugField(max_length=255, null=True)),
                ('image', b24online.custom.CustomImageField(blank=True, null=True, storage=b24online.custom.S3ImageStorage(), upload_to='')),
                ('lft', models.PositiveIntegerField(db_index=True, editable=False)),
                ('rght', models.PositiveIntegerField(db_index=True, editable=False)),
                ('tree_id', models.PositiveIntegerField(db_index=True, editable=False)),
                ('level', models.PositiveIntegerField(db_index=True, editable=False)),
                ('parent', mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='b24online.B2BProductCategory')),
            ],
            options={
                'abstract': False,
            },
            bases=(models.Model, b24online.models.IndexedModelMixin),
            managers=[
                ('objects', django.db.models.manager.Manager()),
            ],
        ),
        migrations.CreateModel(
            name='B2BProductComment',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('content', models.TextField()),
                ('created_at', models.DateTimeField(auto_now_add=True, db_index=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('lft', models.PositiveIntegerField(db_index=True, editable=False)),
                ('rght', models.PositiveIntegerField(db_index=True, editable=False)),
                ('tree_id', models.PositiveIntegerField(db_index=True, editable=False)),
                ('level', models.PositiveIntegerField(db_index=True, editable=False)),
                ('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='b2bproductcomment_create_user', to=settings.AUTH_USER_MODEL)),
                ('parent', mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='b24online.B2BProductComment')),
                ('product', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='b24online.B2BProduct')),
                ('updated_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='b2bproductcomment_update_user', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'abstract': False,
            },
            managers=[
                ('objects', django.db.models.manager.Manager()),
            ],
        ),
        migrations.CreateModel(
            name='BannerBlock',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('code', models.CharField(max_length=255)),
                ('name', models.CharField(max_length=255)),
                ('name_ru', models.CharField(max_length=255, null=True)),
                ('name_am', models.CharField(max_length=255, null=True)),
                ('name_bg', models.CharField(max_length=255, null=True)),
                ('name_en', models.CharField(max_length=255, null=True)),
                ('name_uk', models.CharField(max_length=255, null=True)),
                ('name_he', models.CharField(max_length=255, null=True)),
                ('name_ar', models.CharField(max_length=255, null=True)),
                ('name_zh', models.CharField(max_length=255, null=True)),
                ('width', models.PositiveSmallIntegerField(blank=True, null=True)),
                ('height', models.PositiveSmallIntegerField(blank=True, null=True)),
                ('image', b24online.custom.CustomImageField(blank=True, null=True, storage=b24online.custom.S3ImageStorage(), upload_to='')),
                ('description', models.CharField(blank=True, max_length=1024, null=True)),
                ('description_ru', models.CharField(blank=True, max_length=1024, null=True)),
                ('description_am', models.CharField(blank=True, max_length=1024, null=True)),
                ('description_bg', models.CharField(blank=True, max_length=1024, null=True)),
                ('description_en', models.CharField(blank=True, max_length=1024, null=True)),
                ('description_uk', models.CharField(blank=True, max_length=1024, null=True)),
                ('description_he', models.CharField(blank=True, max_length=1024, null=True)),
                ('description_ar', models.CharField(blank=True, max_length=1024, null=True)),
                ('description_zh', models.CharField(blank=True, max_length=1024, null=True)),
                ('factor', models.FloatField(default=1)),
                ('block_type', models.CharField(choices=[('b2b', 'B2B'), ('b2c', 'B2C'), ('user_site', 'User sites')], max_length=10)),
            ],
        ),
        migrations.CreateModel(
            name='Branch',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('name_ru', models.CharField(max_length=255, null=True)),
                ('name_am', models.CharField(max_length=255, null=True)),
                ('name_bg', models.CharField(max_length=255, null=True)),
                ('name_en', models.CharField(max_length=255, null=True)),
                ('name_uk', models.CharField(max_length=255, null=True)),
                ('name_he', models.CharField(max_length=255, null=True)),
                ('name_ar', models.CharField(max_length=255, null=True)),
                ('name_zh', models.CharField(max_length=255, null=True)),
                ('slug', models.SlugField(max_length=255)),
                ('slug_ru', models.SlugField(max_length=255, null=True)),
                ('slug_am', models.SlugField(max_length=255, null=True)),
                ('slug_bg', models.SlugField(max_length=255, null=True)),
                ('slug_en', models.SlugField(max_length=255, null=True)),
                ('slug_uk', models.SlugField(max_length=255, null=True)),
                ('slug_he', models.SlugField(max_length=255, null=True)),
                ('slug_ar', models.SlugField(max_length=255, null=True)),
                ('slug_zh', models.SlugField(max_length=255, null=True)),
                ('lft', models.PositiveIntegerField(db_index=True, editable=False)),
                ('rght', models.PositiveIntegerField(db_index=True, editable=False)),
                ('tree_id', models.PositiveIntegerField(db_index=True, editable=False)),
                ('level', models.PositiveIntegerField(db_index=True, editable=False)),
                ('parent', mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='b24online.Branch')),
            ],
            options={
                'abstract': False,
            },
            bases=(models.Model, b24online.models.IndexedModelMixin),
            managers=[
                ('objects', django.db.models.manager.Manager()),
            ],
        ),
        migrations.CreateModel(
            name='BusinessProposal',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=255)),
                ('title_ru', models.CharField(max_length=255, null=True)),
                ('title_am', models.CharField(max_length=255, null=True)),
                ('title_bg', models.CharField(max_length=255, null=True)),
                ('title_en', models.CharField(max_length=255, null=True)),
                ('title_uk', models.CharField(max_length=255, null=True)),
                ('title_he', models.CharField(max_length=255, null=True)),
                ('title_ar', models.CharField(max_length=255, null=True)),
                ('title_zh', models.CharField(max_length=255, null=True)),
                ('slug', models.SlugField(max_length=255)),
                ('slug_ru', models.SlugField(max_length=255, null=True)),
                ('slug_am', models.SlugField(max_length=255, null=True)),
                ('slug_bg', models.SlugField(max_length=255, null=True)),
                ('slug_en', models.SlugField(max_length=255, null=True)),
                ('slug_uk', models.SlugField(max_length=255, null=True)),
                ('slug_he', models.SlugField(max_length=255, null=True)),
                ('slug_ar', models.SlugField(max_length=255, null=True)),
                ('slug_zh', models.SlugField(max_length=255, null=True)),
                ('description', models.TextField()),
                ('description_ru', models.TextField(null=True)),
                ('description_am', models.TextField(null=True)),
                ('description_bg', models.TextField(null=True)),
                ('description_en', models.TextField(null=True)),
                ('description_uk', models.TextField(null=True)),
                ('description_he', models.TextField(null=True)),
                ('description_ar', models.TextField(null=True)),
                ('description_zh', models.TextField(null=True)),
                ('keywords', models.CharField(blank=True, max_length=2048)),
                ('keywords_ru', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_am', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_bg', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_en', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_uk', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_he', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_ar', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_zh', models.CharField(blank=True, max_length=2048, null=True)),
                ('is_active', models.BooleanField(default=True)),
                ('is_deleted', models.BooleanField(default=False)),
                ('created_at', models.DateTimeField(auto_now_add=True, db_index=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('branches', models.ManyToManyField(to='b24online.Branch')),
            ],
            options={
                'ordering': ['-id'],
            },
            bases=(b24online.models.ActiveModelMixing, models.Model, b24online.models.IndexedModelMixin),
        ),
        migrations.CreateModel(
            name='BusinessProposalCategory',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('name_ru', models.CharField(max_length=255, null=True)),
                ('name_am', models.CharField(max_length=255, null=True)),
                ('name_bg', models.CharField(max_length=255, null=True)),
                ('name_en', models.CharField(max_length=255, null=True)),
                ('name_uk', models.CharField(max_length=255, null=True)),
                ('name_he', models.CharField(max_length=255, null=True)),
                ('name_ar', models.CharField(max_length=255, null=True)),
                ('name_zh', models.CharField(max_length=255, null=True)),
                ('slug', models.SlugField(max_length=255)),
                ('slug_ru', models.SlugField(max_length=255, null=True)),
                ('slug_am', models.SlugField(max_length=255, null=True)),
                ('slug_bg', models.SlugField(max_length=255, null=True)),
                ('slug_en', models.SlugField(max_length=255, null=True)),
                ('slug_uk', models.SlugField(max_length=255, null=True)),
                ('slug_he', models.SlugField(max_length=255, null=True)),
                ('slug_ar', models.SlugField(max_length=255, null=True)),
                ('slug_zh', models.SlugField(max_length=255, null=True)),
                ('lft', models.PositiveIntegerField(db_index=True, editable=False)),
                ('rght', models.PositiveIntegerField(db_index=True, editable=False)),
                ('tree_id', models.PositiveIntegerField(db_index=True, editable=False)),
                ('level', models.PositiveIntegerField(db_index=True, editable=False)),
                ('parent', mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='b24online.BusinessProposalCategory')),
            ],
            options={
                'abstract': False,
            },
            bases=(models.Model, b24online.models.IndexedModelMixin),
            managers=[
                ('objects', django.db.models.manager.Manager()),
            ],
        ),
        migrations.CreateModel(
            name='Country',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('name_ru', models.CharField(max_length=255, null=True)),
                ('name_am', models.CharField(max_length=255, null=True)),
                ('name_bg', models.CharField(max_length=255, null=True)),
                ('name_en', models.CharField(max_length=255, null=True)),
                ('name_uk', models.CharField(max_length=255, null=True)),
                ('name_he', models.CharField(max_length=255, null=True)),
                ('name_ar', models.CharField(max_length=255, null=True)),
                ('name_zh', models.CharField(max_length=255, null=True)),
                ('flag', models.CharField(max_length=255)),
                ('slug', models.SlugField(max_length=255)),
                ('slug_ru', models.SlugField(max_length=255, null=True)),
                ('slug_am', models.SlugField(max_length=255, null=True)),
                ('slug_bg', models.SlugField(max_length=255, null=True)),
                ('slug_en', models.SlugField(max_length=255, null=True)),
                ('slug_uk', models.SlugField(max_length=255, null=True)),
                ('slug_he', models.SlugField(max_length=255, null=True)),
                ('slug_ar', models.SlugField(max_length=255, null=True)),
                ('slug_zh', models.SlugField(max_length=255, null=True)),
            ],
            bases=(models.Model, b24online.models.IndexedModelMixin),
        ),
        migrations.CreateModel(
            name='Department',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('name_ru', models.CharField(max_length=255, null=True)),
                ('name_am', models.CharField(max_length=255, null=True)),
                ('name_bg', models.CharField(max_length=255, null=True)),
                ('name_en', models.CharField(max_length=255, null=True)),
                ('name_uk', models.CharField(max_length=255, null=True)),
                ('name_he', models.CharField(max_length=255, null=True)),
                ('name_ar', models.CharField(max_length=255, null=True)),
                ('name_zh', models.CharField(max_length=255, null=True)),
                ('slug', models.SlugField(max_length=255)),
                ('slug_ru', models.SlugField(max_length=255, null=True)),
                ('slug_am', models.SlugField(max_length=255, null=True)),
                ('slug_bg', models.SlugField(max_length=255, null=True)),
                ('slug_en', models.SlugField(max_length=255, null=True)),
                ('slug_uk', models.SlugField(max_length=255, null=True)),
                ('slug_he', models.SlugField(max_length=255, null=True)),
                ('slug_ar', models.SlugField(max_length=255, null=True)),
                ('slug_zh', models.SlugField(max_length=255, null=True)),
                ('created_at', models.DateTimeField(default=django.utils.timezone.now)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='department_create_user', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Document',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('name_ru', models.CharField(max_length=255, null=True)),
                ('name_am', models.CharField(max_length=255, null=True)),
                ('name_bg', models.CharField(max_length=255, null=True)),
                ('name_en', models.CharField(max_length=255, null=True)),
                ('name_uk', models.CharField(max_length=255, null=True)),
                ('name_he', models.CharField(max_length=255, null=True)),
                ('name_ar', models.CharField(max_length=255, null=True)),
                ('name_zh', models.CharField(max_length=255, null=True)),
                ('description', models.CharField(max_length=255)),
                ('description_ru', models.CharField(max_length=255, null=True)),
                ('description_am', models.CharField(max_length=255, null=True)),
                ('description_bg', models.CharField(max_length=255, null=True)),
                ('description_en', models.CharField(max_length=255, null=True)),
                ('description_uk', models.CharField(max_length=255, null=True)),
                ('description_he', models.CharField(max_length=255, null=True)),
                ('description_ar', models.CharField(max_length=255, null=True)),
                ('description_zh', models.CharField(max_length=255, null=True)),
                ('document', models.FileField(upload_to=b24online.utils.document_upload_path)),
                ('object_id', models.PositiveIntegerField()),
                ('created_at', models.DateTimeField(default=django.utils.timezone.now)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')),
                ('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='document_create_user', to=settings.AUTH_USER_MODEL)),
                ('updated_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='document_update_user', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Exhibition',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=255)),
                ('title_ru', models.CharField(max_length=255, null=True)),
                ('title_am', models.CharField(max_length=255, null=True)),
                ('title_bg', models.CharField(max_length=255, null=True)),
                ('title_en', models.CharField(max_length=255, null=True)),
                ('title_uk', models.CharField(max_length=255, null=True)),
                ('title_he', models.CharField(max_length=255, null=True)),
                ('title_ar', models.CharField(max_length=255, null=True)),
                ('title_zh', models.CharField(max_length=255, null=True)),
                ('slug', models.SlugField(max_length=255)),
                ('slug_ru', models.SlugField(max_length=255, null=True)),
                ('slug_am', models.SlugField(max_length=255, null=True)),
                ('slug_bg', models.SlugField(max_length=255, null=True)),
                ('slug_en', models.SlugField(max_length=255, null=True)),
                ('slug_uk', models.SlugField(max_length=255, null=True)),
                ('slug_he', models.SlugField(max_length=255, null=True)),
                ('slug_ar', models.SlugField(max_length=255, null=True)),
                ('slug_zh', models.SlugField(max_length=255, null=True)),
                ('description', models.TextField()),
                ('description_ru', models.TextField(null=True)),
                ('description_am', models.TextField(null=True)),
                ('description_bg', models.TextField(null=True)),
                ('description_en', models.TextField(null=True)),
                ('description_uk', models.TextField(null=True)),
                ('description_he', models.TextField(null=True)),
                ('description_ar', models.TextField(null=True)),
                ('description_zh', models.TextField(null=True)),
                ('keywords', models.CharField(blank=True, max_length=2048)),
                ('keywords_ru', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_am', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_bg', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_en', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_uk', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_he', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_ar', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_zh', models.CharField(blank=True, max_length=2048, null=True)),
                ('dates', django.contrib.postgres.fields.ranges.DateRangeField(null=True)),
                ('city', models.CharField(max_length=255, null=True)),
                ('city_ru', models.CharField(max_length=255, null=True)),
                ('city_am', models.CharField(max_length=255, null=True)),
                ('city_bg', models.CharField(max_length=255, null=True)),
                ('city_en', models.CharField(max_length=255, null=True)),
                ('city_uk', models.CharField(max_length=255, null=True)),
                ('city_he', models.CharField(max_length=255, null=True)),
                ('city_ar', models.CharField(max_length=255, null=True)),
                ('city_zh', models.CharField(max_length=255, null=True)),
                ('route', models.CharField(blank=True, max_length=2048)),
                ('route_ru', models.CharField(blank=True, max_length=2048, null=True)),
                ('route_am', models.CharField(blank=True, max_length=2048, null=True)),
                ('route_bg', models.CharField(blank=True, max_length=2048, null=True)),
                ('route_en', models.CharField(blank=True, max_length=2048, null=True)),
                ('route_uk', models.CharField(blank=True, max_length=2048, null=True)),
                ('route_he', models.CharField(blank=True, max_length=2048, null=True)),
                ('route_ar', models.CharField(blank=True, max_length=2048, null=True)),
                ('route_zh', models.CharField(blank=True, max_length=2048, null=True)),
                ('is_active', models.BooleanField(default=True)),
                ('is_deleted', models.BooleanField(default=False)),
                ('metadata', django.contrib.postgres.fields.hstore.HStoreField()),
                ('created_at', models.DateTimeField(auto_now_add=True, db_index=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('branches', models.ManyToManyField(to='b24online.Branch')),
                ('country', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='b24online.Country')),
                ('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='exhibition_create_user', to=settings.AUTH_USER_MODEL)),
            ],
            bases=(b24online.models.ActiveModelMixing, models.Model, b24online.models.IndexedModelMixin),
        ),
        migrations.CreateModel(
            name='Gallery',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=266, null=True)),
                ('title_ru', models.CharField(max_length=266, null=True)),
                ('title_am', models.CharField(max_length=266, null=True)),
                ('title_bg', models.CharField(max_length=266, null=True)),
                ('title_en', models.CharField(max_length=266, null=True)),
                ('title_uk', models.CharField(max_length=266, null=True)),
                ('title_he', models.CharField(max_length=266, null=True)),
                ('title_ar', models.CharField(max_length=266, null=True)),
                ('title_zh', models.CharField(max_length=266, null=True)),
                ('is_deleted', models.BooleanField(default=False)),
                ('object_id', models.PositiveIntegerField()),
                ('created_at', models.DateTimeField(default=django.utils.timezone.now)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')),
                ('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='gallery_create_user', to=settings.AUTH_USER_MODEL)),
                ('updated_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='gallery_update_user', to=settings.AUTH_USER_MODEL)),
            ],
            bases=(b24online.models.ActiveModelMixing, models.Model),
        ),
        migrations.CreateModel(
            name='GalleryImage',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('image', b24online.custom.CustomImageField(max_length=255, storage=b24online.custom.S3ImageStorage(), upload_to=b24online.utils.generate_upload_path)),
                ('created_at', models.DateTimeField(default=django.utils.timezone.now)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='galleryimage_create_user', to=settings.AUTH_USER_MODEL)),
                ('gallery', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='gallery_items', to='b24online.Gallery')),
                ('updated_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='galleryimage_update_user', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Greeting',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('photo', b24online.custom.CustomImageField(blank=True, max_length=255, storage=b24online.custom.S3ImageStorage(), upload_to=b24online.utils.generate_upload_path)),
                ('organization_name', models.CharField(max_length=255)),
                ('organization_name_ru', models.CharField(max_length=255, null=True)),
                ('organization_name_am', models.CharField(max_length=255, null=True)),
                ('organization_name_bg', models.CharField(max_length=255, null=True)),
                ('organization_name_en', models.CharField(max_length=255, null=True)),
                ('organization_name_uk', models.CharField(max_length=255, null=True)),
                ('organization_name_he', models.CharField(max_length=255, null=True)),
                ('organization_name_ar', models.CharField(max_length=255, null=True)),
                ('organization_name_zh', models.CharField(max_length=255, null=True)),
                ('name', models.CharField(max_length=255)),
                ('name_ru', models.CharField(max_length=255, null=True)),
                ('name_am', models.CharField(max_length=255, null=True)),
                ('name_bg', models.CharField(max_length=255, null=True)),
                ('name_en', models.CharField(max_length=255, null=True)),
                ('name_uk', models.CharField(max_length=255, null=True)),
                ('name_he', models.CharField(max_length=255, null=True)),
                ('name_ar', models.CharField(max_length=255, null=True)),
                ('name_zh', models.CharField(max_length=255, null=True)),
                ('slug', models.SlugField(max_length=255)),
                ('slug_ru', models.SlugField(max_length=255, null=True)),
                ('slug_am', models.SlugField(max_length=255, null=True)),
                ('slug_bg', models.SlugField(max_length=255, null=True)),
                ('slug_en', models.SlugField(max_length=255, null=True)),
                ('slug_uk', models.SlugField(max_length=255, null=True)),
                ('slug_he', models.SlugField(max_length=255, null=True)),
                ('slug_ar', models.SlugField(max_length=255, null=True)),
                ('slug_zh', models.SlugField(max_length=255, null=True)),
                ('position_name', models.CharField(max_length=255)),
                ('position_name_ru', models.CharField(max_length=255, null=True)),
                ('position_name_am', models.CharField(max_length=255, null=True)),
                ('position_name_bg', models.CharField(max_length=255, null=True)),
                ('position_name_en', models.CharField(max_length=255, null=True)),
                ('position_name_uk', models.CharField(max_length=255, null=True)),
                ('position_name_he', models.CharField(max_length=255, null=True)),
                ('position_name_ar', models.CharField(max_length=255, null=True)),
                ('position_name_zh', models.CharField(max_length=255, null=True)),
                ('content', models.TextField()),
                ('content_ru', models.TextField(null=True)),
                ('content_am', models.TextField(null=True)),
                ('content_bg', models.TextField(null=True)),
                ('content_en', models.TextField(null=True)),
                ('content_uk', models.TextField(null=True)),
                ('content_he', models.TextField(null=True)),
                ('content_ar', models.TextField(null=True)),
                ('content_zh', models.TextField(null=True)),
            ],
            bases=(models.Model, b24online.models.IndexedModelMixin),
        ),
        migrations.CreateModel(
            name='InnovationProject',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=2048)),
                ('name_ru', models.CharField(max_length=2048, null=True)),
                ('name_am', models.CharField(max_length=2048, null=True)),
                ('name_bg', models.CharField(max_length=2048, null=True)),
                ('name_en', models.CharField(max_length=2048, null=True)),
                ('name_uk', models.CharField(max_length=2048, null=True)),
                ('name_he', models.CharField(max_length=2048, null=True)),
                ('name_ar', models.CharField(max_length=2048, null=True)),
                ('name_zh', models.CharField(max_length=2048, null=True)),
                ('slug', models.SlugField(max_length=2048)),
                ('slug_ru', models.SlugField(max_length=2048, null=True)),
                ('slug_am', models.SlugField(max_length=2048, null=True)),
                ('slug_bg', models.SlugField(max_length=2048, null=True)),
                ('slug_en', models.SlugField(max_length=2048, null=True)),
                ('slug_uk', models.SlugField(max_length=2048, null=True)),
                ('slug_he', models.SlugField(max_length=2048, null=True)),
                ('slug_ar', models.SlugField(max_length=2048, null=True)),
                ('slug_zh', models.SlugField(max_length=2048, null=True)),
                ('description', models.TextField()),
                ('description_ru', models.TextField(null=True)),
                ('description_am', models.TextField(null=True)),
                ('description_bg', models.TextField(null=True)),
                ('description_en', models.TextField(null=True)),
                ('description_uk', models.TextField(null=True)),
                ('description_he', models.TextField(null=True)),
                ('description_ar', models.TextField(null=True)),
                ('description_zh', models.TextField(null=True)),
                ('product_name', models.CharField(max_length=2048)),
                ('product_name_ru', models.CharField(max_length=2048, null=True)),
                ('product_name_am', models.CharField(max_length=2048, null=True)),
                ('product_name_bg', models.CharField(max_length=2048, null=True)),
                ('product_name_en', models.CharField(max_length=2048, null=True)),
                ('product_name_uk', models.CharField(max_length=2048, null=True)),
                ('product_name_he', models.CharField(max_length=2048, null=True)),
                ('product_name_ar', models.CharField(max_length=2048, null=True)),
                ('product_name_zh', models.CharField(max_length=2048, null=True)),
                ('business_plan', models.TextField()),
                ('business_plan_ru', models.TextField(null=True)),
                ('business_plan_am', models.TextField(null=True)),
                ('business_plan_bg', models.TextField(null=True)),
                ('business_plan_en', models.TextField(null=True)),
                ('business_plan_uk', models.TextField(null=True)),
                ('business_plan_he', models.TextField(null=True)),
                ('business_plan_ar', models.TextField(null=True)),
                ('business_plan_zh', models.TextField(null=True)),
                ('currency', models.CharField(choices=[('ILS', 'Israeli New Sheqel'), ('EUR', 'Euro'), ('USD', 'Dollar'), ('UAH', 'Hryvnia'), ('RUB', 'Russian Ruble'), ('BGN', 'Bulgarian Lev'), ('BYR', 'Belarusian Ruble')], max_length=255, null=True)),
                ('cost', models.DecimalField(decimal_places=2, max_digits=15, null=True)),
                ('metadata', django.contrib.postgres.fields.hstore.HStoreField()),
                ('keywords', models.CharField(blank=True, max_length=2048)),
                ('keywords_ru', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_am', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_bg', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_en', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_uk', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_he', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_ar', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_zh', models.CharField(blank=True, max_length=2048, null=True)),
                ('is_active', models.BooleanField(default=True)),
                ('is_deleted', models.BooleanField(default=False)),
                ('created_at', models.DateTimeField(auto_now_add=True, db_index=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('branches', models.ManyToManyField(to='b24online.Branch')),
                ('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='innovationproject_create_user', to=settings.AUTH_USER_MODEL)),
            ],
            bases=(b24online.models.ActiveModelMixing, models.Model, b24online.models.IndexedModelMixin),
        ),
        migrations.CreateModel(
            name='Message',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('is_read', models.BooleanField(default=False)),
                ('content', models.TextField()),
                ('created_at', models.DateTimeField(auto_now_add=True, db_index=True)),
                ('recipient', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='received', to=settings.AUTH_USER_MODEL)),
                ('sender', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='sent', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='News',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=255)),
                ('title_ru', models.CharField(max_length=255, null=True)),
                ('title_am', models.CharField(max_length=255, null=True)),
                ('title_bg', models.CharField(max_length=255, null=True)),
                ('title_en', models.CharField(max_length=255, null=True)),
                ('title_uk', models.CharField(max_length=255, null=True)),
                ('title_he', models.CharField(max_length=255, null=True)),
                ('title_ar', models.CharField(max_length=255, null=True)),
                ('title_zh', models.CharField(max_length=255, null=True)),
                ('image', b24online.custom.CustomImageField(blank=True, max_length=255, storage=b24online.custom.S3ImageStorage(), upload_to=b24online.utils.generate_upload_path)),
                ('slug', models.SlugField(max_length=255)),
                ('slug_ru', models.SlugField(max_length=255, null=True)),
                ('slug_am', models.SlugField(max_length=255, null=True)),
                ('slug_bg', models.SlugField(max_length=255, null=True)),
                ('slug_en', models.SlugField(max_length=255, null=True)),
                ('slug_uk', models.SlugField(max_length=255, null=True)),
                ('slug_he', models.SlugField(max_length=255, null=True)),
                ('slug_ar', models.SlugField(max_length=255, null=True)),
                ('slug_zh', models.SlugField(max_length=255, null=True)),
                ('short_description', models.TextField()),
                ('short_description_ru', models.TextField(null=True)),
                ('short_description_am', models.TextField(null=True)),
                ('short_description_bg', models.TextField(null=True)),
                ('short_description_en', models.TextField(null=True)),
                ('short_description_uk', models.TextField(null=True)),
                ('short_description_he', models.TextField(null=True)),
                ('short_description_ar', models.TextField(null=True)),
                ('short_description_zh', models.TextField(null=True)),
                ('content', models.TextField()),
                ('content_ru', models.TextField(null=True)),
                ('content_am', models.TextField(null=True)),
                ('content_bg', models.TextField(null=True)),
                ('content_en', models.TextField(null=True)),
                ('content_uk', models.TextField(null=True)),
                ('content_he', models.TextField(null=True)),
                ('content_ar', models.TextField(null=True)),
                ('content_zh', models.TextField(null=True)),
                ('is_tv', models.BooleanField(default=False)),
                ('video_code', models.CharField(blank=True, max_length=255, null=True)),
                ('keywords', models.CharField(blank=True, max_length=2048)),
                ('keywords_ru', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_am', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_bg', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_en', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_uk', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_he', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_ar', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_zh', models.CharField(blank=True, max_length=2048, null=True)),
                ('is_active', models.BooleanField(default=True)),
                ('is_deleted', models.BooleanField(default=False)),
                ('created_at', models.DateTimeField(auto_now_add=True, db_index=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'ordering': ['-id'],
            },
            bases=(b24online.models.ActiveModelMixing, models.Model, b24online.models.IndexedModelMixin),
        ),
        migrations.CreateModel(
            name='NewsCategory',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(db_index=True, max_length=255)),
                ('name_ru', models.CharField(db_index=True, max_length=255, null=True)),
                ('name_am', models.CharField(db_index=True, max_length=255, null=True)),
                ('name_bg', models.CharField(db_index=True, max_length=255, null=True)),
                ('name_en', models.CharField(db_index=True, max_length=255, null=True)),
                ('name_uk', models.CharField(db_index=True, max_length=255, null=True)),
                ('name_he', models.CharField(db_index=True, max_length=255, null=True)),
                ('name_ar', models.CharField(db_index=True, max_length=255, null=True)),
                ('name_zh', models.CharField(db_index=True, max_length=255, null=True)),
                ('image', b24online.custom.CustomImageField(blank=True, null=True, storage=b24online.custom.S3ImageStorage(), upload_to='')),
                ('slug', models.SlugField(max_length=255)),
                ('slug_ru', models.SlugField(max_length=255, null=True)),
                ('slug_am', models.SlugField(max_length=255, null=True)),
                ('slug_bg', models.SlugField(max_length=255, null=True)),
                ('slug_en', models.SlugField(max_length=255, null=True)),
                ('slug_uk', models.SlugField(max_length=255, null=True)),
                ('slug_he', models.SlugField(max_length=255, null=True)),
                ('slug_ar', models.SlugField(max_length=255, null=True)),
                ('slug_zh', models.SlugField(max_length=255, null=True)),
                ('lft', models.PositiveIntegerField(db_index=True, editable=False)),
                ('rght', models.PositiveIntegerField(db_index=True, editable=False)),
                ('tree_id', models.PositiveIntegerField(db_index=True, editable=False)),
                ('level', models.PositiveIntegerField(db_index=True, editable=False)),
                ('parent', mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='b24online.NewsCategory')),
            ],
            options={
                'abstract': False,
            },
            bases=(models.Model, b24online.models.IndexedModelMixin),
            managers=[
                ('objects', django.db.models.manager.Manager()),
            ],
        ),
        migrations.CreateModel(
            name='Notification',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('read', models.BooleanField(default=False)),
                ('message', models.CharField(max_length=1024)),
                ('type', models.CharField(choices=[('item_creating', 'Creating item in process'), ('item_updating', 'Update item in process'), ('item_created', 'Item created'), ('item_updated', 'Item Updated'), ('error_creating', 'Error in creating')], max_length=200)),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='notifications', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Order',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
            ],
        ),
        migrations.CreateModel(
            name='Organization',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('is_active', models.BooleanField(default=True)),
                ('is_deleted', models.BooleanField(default=False)),
                ('created_at', models.DateTimeField(auto_now_add=True, db_index=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('lft', models.PositiveIntegerField(db_index=True, editable=False)),
                ('rght', models.PositiveIntegerField(db_index=True, editable=False)),
                ('tree_id', models.PositiveIntegerField(db_index=True, editable=False)),
                ('level', models.PositiveIntegerField(db_index=True, editable=False)),
            ],
            options={
                'permissions': (('manage_organization', 'Manage Organization'),),
            },
            bases=(b24online.models.ActiveModelMixing, models.Model),
            managers=[
                ('objects', django.db.models.manager.Manager()),
            ],
        ),
        migrations.CreateModel(
            name='Profile',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('first_name', models.CharField(max_length=255, null=True)),
                ('first_name_ru', models.CharField(max_length=255, null=True)),
                ('first_name_am', models.CharField(max_length=255, null=True)),
                ('first_name_bg', models.CharField(max_length=255, null=True)),
                ('first_name_en', models.CharField(max_length=255, null=True)),
                ('first_name_uk', models.CharField(max_length=255, null=True)),
                ('first_name_he', models.CharField(max_length=255, null=True)),
                ('first_name_ar', models.CharField(max_length=255, null=True)),
                ('first_name_zh', models.CharField(max_length=255, null=True)),
                ('middle_name', models.CharField(blank=True, max_length=255, null=True)),
                ('middle_name_ru', models.CharField(blank=True, max_length=255, null=True)),
                ('middle_name_am', models.CharField(blank=True, max_length=255, null=True)),
                ('middle_name_bg', models.CharField(blank=True, max_length=255, null=True)),
                ('middle_name_en', models.CharField(blank=True, max_length=255, null=True)),
                ('middle_name_uk', models.CharField(blank=True, max_length=255, null=True)),
                ('middle_name_he', models.CharField(blank=True, max_length=255, null=True)),
                ('middle_name_ar', models.CharField(blank=True, max_length=255, null=True)),
                ('middle_name_zh', models.CharField(blank=True, max_length=255, null=True)),
                ('last_name', models.CharField(blank=True, max_length=255, null=True)),
                ('last_name_ru', models.CharField(blank=True, max_length=255, null=True)),
                ('last_name_am', models.CharField(blank=True, max_length=255, null=True)),
                ('last_name_bg', models.CharField(blank=True, max_length=255, null=True)),
                ('last_name_en', models.CharField(blank=True, max_length=255, null=True)),
                ('last_name_uk', models.CharField(blank=True, max_length=255, null=True)),
                ('last_name_he', models.CharField(blank=True, max_length=255, null=True)),
                ('last_name_ar', models.CharField(blank=True, max_length=255, null=True)),
                ('last_name_zh', models.CharField(blank=True, max_length=255, null=True)),
                ('avatar', b24online.custom.CustomImageField(blank=True, max_length=255, null=True, storage=b24online.custom.S3ImageStorage(), upload_to=b24online.utils.generate_upload_path)),
                ('mobile_number', models.CharField(blank=True, max_length=255, null=True)),
                ('site', models.URLField(blank=True, max_length=255, null=True)),
                ('profession', models.CharField(blank=True, max_length=255, null=True)),
                ('profession_ru', models.CharField(blank=True, max_length=255, null=True)),
                ('profession_am', models.CharField(blank=True, max_length=255, null=True)),
                ('profession_bg', models.CharField(blank=True, max_length=255, null=True)),
                ('profession_en', models.CharField(blank=True, max_length=255, null=True)),
                ('profession_uk', models.CharField(blank=True, max_length=255, null=True)),
                ('profession_he', models.CharField(blank=True, max_length=255, null=True)),
                ('profession_ar', models.CharField(blank=True, max_length=255, null=True)),
                ('profession_zh', models.CharField(blank=True, max_length=255, null=True)),
                ('birthday', models.DateField(blank=True, null=True)),
                ('sex', models.CharField(choices=[('male', 'Male'), ('female', 'Female')], default='male', max_length=255)),
                ('user_type', models.CharField(choices=[('businessman', 'Businessman'), ('individual', 'Individual')], default='individual', max_length=255)),
                ('country', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='b24online.Country')),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='profile', to=settings.AUTH_USER_MODEL)),
            ],
            bases=(b24online.models.ActiveModelMixing, models.Model, b24online.models.IndexedModelMixin),
        ),
        migrations.CreateModel(
            name='ProjectGroupObjectPermission',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='ProjectUserObjectPermission',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='RegisteredEvent',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('object_id', models.PositiveIntegerField(verbose_name='Instance ID')),
                ('registered_at', models.DateTimeField(auto_now_add=True, db_index=True)),
                ('url', models.TextField(blank=True, null=True, verbose_name='Requested URL')),
                ('username', models.CharField(blank=True, max_length=255, null=True, verbose_name='Username')),
                ('ip_address', models.GenericIPAddressField(blank=True, null=True, verbose_name='IP address of request')),
                ('user_agent', models.CharField(blank=True, max_length=255, null=True, verbose_name='User Agent info')),
                ('event_hash', models.CharField(db_index=True, default='', max_length=32, validators=[django.core.validators.MinLengthValidator(32)], verbose_name='Event hash key')),
                ('is_unique', models.BooleanField(default=False, verbose_name='Is event unique for this day')),
                ('event_data', django.contrib.postgres.fields.hstore.HStoreField(blank=True, null=True, verbose_name='Event extra data')),
                ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')),
            ],
            options={
                'verbose_name_plural': 'Registered events',
                'verbose_name': 'Registered event',
            },
        ),
        migrations.CreateModel(
            name='RegisteredEventStats',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('object_id', models.PositiveIntegerField(verbose_name='Instance ID')),
                ('registered_at', models.DateField(auto_now_add=True, db_index=True)),
                ('unique_amount', models.PositiveIntegerField(verbose_name='Unique')),
                ('total_amount', models.PositiveIntegerField(verbose_name='Total')),
                ('extra_data', django.contrib.postgres.fields.hstore.HStoreField(blank=True, null=True, verbose_name='Event extra data')),
                ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')),
            ],
            options={
                'verbose_name': 'Registered events stats',
            },
        ),
        migrations.CreateModel(
            name='RegisteredEventType',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255, verbose_name='Name')),
                ('slug', models.SlugField(max_length=20, verbose_name='Code')),
            ],
            options={
                'verbose_name_plural': 'Registered events types',
                'verbose_name': 'Registered events type',
            },
        ),
        migrations.CreateModel(
            name='StaticPage',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=255)),
                ('title_ru', models.CharField(max_length=255, null=True)),
                ('title_am', models.CharField(max_length=255, null=True)),
                ('title_bg', models.CharField(max_length=255, null=True)),
                ('title_en', models.CharField(max_length=255, null=True)),
                ('title_uk', models.CharField(max_length=255, null=True)),
                ('title_he', models.CharField(max_length=255, null=True)),
                ('title_ar', models.CharField(max_length=255, null=True)),
                ('title_zh', models.CharField(max_length=255, null=True)),
                ('slug', models.SlugField(max_length=255)),
                ('slug_ru', models.SlugField(max_length=255, null=True)),
                ('slug_am', models.SlugField(max_length=255, null=True)),
                ('slug_bg', models.SlugField(max_length=255, null=True)),
                ('slug_en', models.SlugField(max_length=255, null=True)),
                ('slug_uk', models.SlugField(max_length=255, null=True)),
                ('slug_he', models.SlugField(max_length=255, null=True)),
                ('slug_ar', models.SlugField(max_length=255, null=True)),
                ('slug_zh', models.SlugField(max_length=255, null=True)),
                ('content', models.TextField()),
                ('content_ru', models.TextField(null=True)),
                ('content_am', models.TextField(null=True)),
                ('content_bg', models.TextField(null=True)),
                ('content_en', models.TextField(null=True)),
                ('content_uk', models.TextField(null=True)),
                ('content_he', models.TextField(null=True)),
                ('content_ar', models.TextField(null=True)),
                ('content_zh', models.TextField(null=True)),
                ('is_on_top', models.BooleanField(default=False)),
                ('site_type', models.CharField(choices=[('b2b', 'B2B'), ('b2c', 'B2C'), ('user_site', 'User sites')], default='b2b', max_length=10)),
                ('page_type', models.CharField(choices=[('about', 'About'), ('advices', 'Advices'), ('contacts', 'Contacts'), ('buyer', 'To buyer'), ('seller', 'To seller')], max_length=200)),
            ],
        ),
        migrations.CreateModel(
            name='Tender',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=2048)),
                ('title_ru', models.CharField(max_length=2048, null=True)),
                ('title_am', models.CharField(max_length=2048, null=True)),
                ('title_bg', models.CharField(max_length=2048, null=True)),
                ('title_en', models.CharField(max_length=2048, null=True)),
                ('title_uk', models.CharField(max_length=2048, null=True)),
                ('title_he', models.CharField(max_length=2048, null=True)),
                ('title_ar', models.CharField(max_length=2048, null=True)),
                ('title_zh', models.CharField(max_length=2048, null=True)),
                ('slug', models.SlugField(max_length=2048)),
                ('slug_ru', models.SlugField(max_length=2048, null=True)),
                ('slug_am', models.SlugField(max_length=2048, null=True)),
                ('slug_bg', models.SlugField(max_length=2048, null=True)),
                ('slug_en', models.SlugField(max_length=2048, null=True)),
                ('slug_uk', models.SlugField(max_length=2048, null=True)),
                ('slug_he', models.SlugField(max_length=2048, null=True)),
                ('slug_ar', models.SlugField(max_length=2048, null=True)),
                ('slug_zh', models.SlugField(max_length=2048, null=True)),
                ('content', models.TextField()),
                ('content_ru', models.TextField(null=True)),
                ('content_am', models.TextField(null=True)),
                ('content_bg', models.TextField(null=True)),
                ('content_en', models.TextField(null=True)),
                ('content_uk', models.TextField(null=True)),
                ('content_he', models.TextField(null=True)),
                ('content_ar', models.TextField(null=True)),
                ('content_zh', models.TextField(null=True)),
                ('currency', models.CharField(choices=[('ILS', 'Israeli New Sheqel'), ('EUR', 'Euro'), ('USD', 'Dollar'), ('UAH', 'Hryvnia'), ('RUB', 'Russian Ruble'), ('BGN', 'Bulgarian Lev'), ('BYR', 'Belarusian Ruble')], max_length=255, null=True)),
                ('cost', models.DecimalField(decimal_places=2, max_digits=15, null=True)),
                ('keywords', models.CharField(blank=True, max_length=2048)),
                ('keywords_ru', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_am', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_bg', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_en', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_uk', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_he', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_ar', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_zh', models.CharField(blank=True, max_length=2048, null=True)),
                ('dates', django.contrib.postgres.fields.ranges.DateRangeField(null=True)),
                ('is_active', models.BooleanField(default=True)),
                ('is_deleted', models.BooleanField(default=False)),
                ('created_at', models.DateTimeField(auto_now_add=True, db_index=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('branches', models.ManyToManyField(to='b24online.Branch')),
                ('country', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='b24online.Country')),
                ('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='tender_create_user', to=settings.AUTH_USER_MODEL)),
            ],
            bases=(b24online.models.ActiveModelMixing, models.Model, b24online.models.IndexedModelMixin),
        ),
        migrations.CreateModel(
            name='Vacancy',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('name_ru', models.CharField(max_length=255, null=True)),
                ('name_am', models.CharField(max_length=255, null=True)),
                ('name_bg', models.CharField(max_length=255, null=True)),
                ('name_en', models.CharField(max_length=255, null=True)),
                ('name_uk', models.CharField(max_length=255, null=True)),
                ('name_he', models.CharField(max_length=255, null=True)),
                ('name_ar', models.CharField(max_length=255, null=True)),
                ('name_zh', models.CharField(max_length=255, null=True)),
                ('slug', models.SlugField(max_length=255)),
                ('slug_ru', models.SlugField(max_length=255, null=True)),
                ('slug_am', models.SlugField(max_length=255, null=True)),
                ('slug_bg', models.SlugField(max_length=255, null=True)),
                ('slug_en', models.SlugField(max_length=255, null=True)),
                ('slug_uk', models.SlugField(max_length=255, null=True)),
                ('slug_he', models.SlugField(max_length=255, null=True)),
                ('slug_ar', models.SlugField(max_length=255, null=True)),
                ('slug_zh', models.SlugField(max_length=255, null=True)),
                ('created_at', models.DateTimeField(auto_now_add=True, db_index=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='vacancy_create_user', to=settings.AUTH_USER_MODEL)),
                ('department', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='vacancies', to='b24online.Department')),
                ('updated_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='vacancy_update_user', to=settings.AUTH_USER_MODEL)),
                ('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='work_positions', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='AdvertisementOrder',
            fields=[
                ('order_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='b24online.Order')),
                ('total_cost', models.DecimalField(decimal_places=2, max_digits=15)),
                ('object_id', models.PositiveIntegerField()),
                ('paid', models.BooleanField(default=False)),
                ('price_factor', models.FloatField(default=1)),
                ('dates', django.contrib.postgres.fields.ranges.DateRangeField()),
                ('created_at', models.DateTimeField(default=django.utils.timezone.now)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            bases=('b24online.order',),
        ),
        migrations.CreateModel(
            name='Banner',
            fields=[
                ('advertisement_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='b24online.Advertisement')),
                ('title', models.CharField(max_length=255)),
                ('title_ru', models.CharField(max_length=255, null=True)),
                ('title_am', models.CharField(max_length=255, null=True)),
                ('title_bg', models.CharField(max_length=255, null=True)),
                ('title_en', models.CharField(max_length=255, null=True)),
                ('title_uk', models.CharField(max_length=255, null=True)),
                ('title_he', models.CharField(max_length=255, null=True)),
                ('title_ar', models.CharField(max_length=255, null=True)),
                ('title_zh', models.CharField(max_length=255, null=True)),
                ('link', models.URLField()),
                ('image', b24online.custom.CustomImageField(max_length=255, storage=b24online.custom.S3ImageStorage(), upload_to=b24online.utils.generate_upload_path)),
                ('is_active', models.BooleanField(default=True)),
                ('created_at', models.DateTimeField(default=django.utils.timezone.now)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            bases=(b24online.models.ActiveModelMixing, 'b24online.advertisement'),
        ),
        migrations.CreateModel(
            name='Chamber',
            fields=[
                ('organization_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='b24online.Organization')),
                ('name', models.CharField(max_length=255)),
                ('name_ru', models.CharField(max_length=255, null=True)),
                ('name_am', models.CharField(max_length=255, null=True)),
                ('name_bg', models.CharField(max_length=255, null=True)),
                ('name_en', models.CharField(max_length=255, null=True)),
                ('name_uk', models.CharField(max_length=255, null=True)),
                ('name_he', models.CharField(max_length=255, null=True)),
                ('name_ar', models.CharField(max_length=255, null=True)),
                ('name_zh', models.CharField(max_length=255, null=True)),
                ('slug', models.SlugField(max_length=255)),
                ('slug_ru', models.SlugField(max_length=255, null=True)),
                ('slug_am', models.SlugField(max_length=255, null=True)),
                ('slug_bg', models.SlugField(max_length=255, null=True)),
                ('slug_en', models.SlugField(max_length=255, null=True)),
                ('slug_uk', models.SlugField(max_length=255, null=True)),
                ('slug_he', models.SlugField(max_length=255, null=True)),
                ('slug_ar', models.SlugField(max_length=255, null=True)),
                ('slug_zh', models.SlugField(max_length=255, null=True)),
                ('short_description', models.TextField(blank=True)),
                ('short_description_ru', models.TextField(blank=True, null=True)),
                ('short_description_am', models.TextField(blank=True, null=True)),
                ('short_description_bg', models.TextField(blank=True, null=True)),
                ('short_description_en', models.TextField(blank=True, null=True)),
                ('short_description_uk', models.TextField(blank=True, null=True)),
                ('short_description_he', models.TextField(blank=True, null=True)),
                ('short_description_ar', models.TextField(blank=True, null=True)),
                ('short_description_zh', models.TextField(blank=True, null=True)),
                ('description', models.TextField()),
                ('description_ru', models.TextField(null=True)),
                ('description_am', models.TextField(null=True)),
                ('description_bg', models.TextField(null=True)),
                ('description_en', models.TextField(null=True)),
                ('description_uk', models.TextField(null=True)),
                ('description_he', models.TextField(null=True)),
                ('description_ar', models.TextField(null=True)),
                ('description_zh', models.TextField(null=True)),
                ('logo', b24online.custom.CustomImageField(max_length=255, storage=b24online.custom.S3ImageStorage(), upload_to=b24online.utils.generate_upload_path)),
                ('keywords', models.CharField(blank=True, max_length=2048)),
                ('keywords_ru', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_am', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_bg', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_en', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_uk', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_he', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_ar', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_zh', models.CharField(blank=True, max_length=2048, null=True)),
                ('director', models.CharField(blank=True, max_length=255)),
                ('director_ru', models.CharField(blank=True, max_length=255, null=True)),
                ('director_am', models.CharField(blank=True, max_length=255, null=True)),
                ('director_bg', models.CharField(blank=True, max_length=255, null=True)),
                ('director_en', models.CharField(blank=True, max_length=255, null=True)),
                ('director_uk', models.CharField(blank=True, max_length=255, null=True)),
                ('director_he', models.CharField(blank=True, max_length=255, null=True)),
                ('director_ar', models.CharField(blank=True, max_length=255, null=True)),
                ('director_zh', models.CharField(blank=True, max_length=255, null=True)),
                ('address', models.CharField(blank=True, max_length=2048)),
                ('address_ru', models.CharField(blank=True, max_length=2048, null=True)),
                ('address_am', models.CharField(blank=True, max_length=2048, null=True)),
                ('address_bg', models.CharField(blank=True, max_length=2048, null=True)),
                ('address_en', models.CharField(blank=True, max_length=2048, null=True)),
                ('address_uk', models.CharField(blank=True, max_length=2048, null=True)),
                ('address_he', models.CharField(blank=True, max_length=2048, null=True)),
                ('address_ar', models.CharField(blank=True, max_length=2048, null=True)),
                ('address_zh', models.CharField(blank=True, max_length=2048, null=True)),
                ('org_type', models.CharField(choices=[('international', 'International'), ('national', 'National'), ('affiliate', 'Affiliate')], max_length=30)),
                ('metadata', django.contrib.postgres.fields.hstore.HStoreField()),
            ],
            options={
                'abstract': False,
                'ordering': ('tree_id', 'lft'),
            },
            bases=('b24online.organization', b24online.models.IndexedModelMixin),
            managers=[
                ('objects', django.db.models.manager.Manager()),
            ],
        ),
        migrations.CreateModel(
            name='Company',
            fields=[
                ('organization_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='b24online.Organization')),
                ('name', models.CharField(max_length=255)),
                ('name_ru', models.CharField(max_length=255, null=True)),
                ('name_am', models.CharField(max_length=255, null=True)),
                ('name_bg', models.CharField(max_length=255, null=True)),
                ('name_en', models.CharField(max_length=255, null=True)),
                ('name_uk', models.CharField(max_length=255, null=True)),
                ('name_he', models.CharField(max_length=255, null=True)),
                ('name_ar', models.CharField(max_length=255, null=True)),
                ('name_zh', models.CharField(max_length=255, null=True)),
                ('slug', models.SlugField(max_length=255)),
                ('slug_ru', models.SlugField(max_length=255, null=True)),
                ('slug_am', models.SlugField(max_length=255, null=True)),
                ('slug_bg', models.SlugField(max_length=255, null=True)),
                ('slug_en', models.SlugField(max_length=255, null=True)),
                ('slug_uk', models.SlugField(max_length=255, null=True)),
                ('slug_he', models.SlugField(max_length=255, null=True)),
                ('slug_ar', models.SlugField(max_length=255, null=True)),
                ('slug_zh', models.SlugField(max_length=255, null=True)),
                ('short_description', models.TextField(blank=True)),
                ('short_description_ru', models.TextField(blank=True, null=True)),
                ('short_description_am', models.TextField(blank=True, null=True)),
                ('short_description_bg', models.TextField(blank=True, null=True)),
                ('short_description_en', models.TextField(blank=True, null=True)),
                ('short_description_uk', models.TextField(blank=True, null=True)),
                ('short_description_he', models.TextField(blank=True, null=True)),
                ('short_description_ar', models.TextField(blank=True, null=True)),
                ('short_description_zh', models.TextField(blank=True, null=True)),
                ('description', models.TextField()),
                ('description_ru', models.TextField(null=True)),
                ('description_am', models.TextField(null=True)),
                ('description_bg', models.TextField(null=True)),
                ('description_en', models.TextField(null=True)),
                ('description_uk', models.TextField(null=True)),
                ('description_he', models.TextField(null=True)),
                ('description_ar', models.TextField(null=True)),
                ('description_zh', models.TextField(null=True)),
                ('logo', b24online.custom.CustomImageField(blank=True, max_length=255, storage=b24online.custom.S3ImageStorage(), upload_to=b24online.utils.generate_upload_path)),
                ('keywords', models.CharField(blank=True, max_length=2048)),
                ('keywords_ru', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_am', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_bg', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_en', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_uk', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_he', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_ar', models.CharField(blank=True, max_length=2048, null=True)),
                ('keywords_zh', models.CharField(blank=True, max_length=2048, null=True)),
                ('director', models.CharField(blank=True, max_length=255)),
                ('director_ru', models.CharField(blank=True, max_length=255, null=True)),
                ('director_am', models.CharField(blank=True, max_length=255, null=True)),
                ('director_bg', models.CharField(blank=True, max_length=255, null=True)),
                ('director_en', models.CharField(blank=True, max_length=255, null=True)),
                ('director_uk', models.CharField(blank=True, max_length=255, null=True)),
                ('director_he', models.CharField(blank=True, max_length=255, null=True)),
                ('director_ar', models.CharField(blank=True, max_length=255, null=True)),
                ('director_zh', models.CharField(blank=True, max_length=255, null=True)),
                ('address', models.CharField(blank=True, max_length=2048)),
                ('address_ru', models.CharField(blank=True, max_length=2048, null=True)),
                ('address_am', models.CharField(blank=True, max_length=2048, null=True)),
                ('address_bg', models.CharField(blank=True, max_length=2048, null=True)),
                ('address_en', models.CharField(blank=True, max_length=2048, null=True)),
                ('address_uk', models.CharField(blank=True, max_length=2048, null=True)),
                ('address_he', models.CharField(blank=True, max_length=2048, null=True)),
                ('address_ar', models.CharField(blank=True, max_length=2048, null=True)),
                ('address_zh', models.CharField(blank=True, max_length=2048, null=True)),
                ('slogan', models.CharField(blank=True, max_length=2048)),
                ('company_paypal_account', models.EmailField(blank=True, max_length=254, null=True)),
                ('metadata', django.contrib.postgres.fields.hstore.HStoreField()),
                ('branches', models.ManyToManyField(to='b24online.Branch')),
            ],
            options={
                'abstract': False,
                'ordering': ('tree_id', 'lft'),
            },
            bases=('b24online.organization', b24online.models.IndexedModelMixin),
            managers=[
                ('objects', django.db.models.manager.Manager()),
            ],
        ),
        migrations.CreateModel(
            name='ContextAdvertisement',
            fields=[
                ('advertisement_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='b24online.Advertisement')),
                ('object_id', models.PositiveIntegerField()),
                ('is_active', models.BooleanField(default=True)),
                ('created_at', models.DateTimeField(default=django.utils.timezone.now)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')),
                ('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='contextadvertisement_create_user', to=settings.AUTH_USER_MODEL)),
                ('updated_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='contextadvertisement_update_user', to=settings.AUTH_USER_MODEL)),
            ],
            bases=(b24online.models.ActiveModelMixing, 'b24online.advertisement'),
        ),
        migrations.AddField(
            model_name='tender',
            name='organization',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='b24online.Organization'),
        ),
        migrations.AddField(
            model_name='tender',
            name='updated_by',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='tender_update_user', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AlterIndexTogether(
            name='staticpage',
            index_together=set([('page_type', 'site_type')]),
        ),
        migrations.AddField(
            model_name='registeredeventstats',
            name='event_type',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='b24online.RegisteredEventType', verbose_name='Event  type'),
        ),
        migrations.AddField(
            model_name='registeredeventstats',
            name='site',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='sites.Site', verbose_name='Site'),
        ),
        migrations.AddField(
            model_name='registeredevent',
            name='event_type',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='b24online.RegisteredEventType', verbose_name='Event  type'),
        ),
        migrations.AddField(
            model_name='registeredevent',
            name='site',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='sites.Site', verbose_name='Site'),
        ),
        migrations.AddField(
            model_name='projectuserobjectpermission',
            name='content_object',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='b24online.Organization'),
        ),
        migrations.AddField(
            model_name='projectuserobjectpermission',
            name='permission',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='auth.Permission'),
        ),
        migrations.AddField(
            model_name='projectuserobjectpermission',
            name='user',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='projectgroupobjectpermission',
            name='content_object',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='b24online.Organization'),
        ),
        migrations.AddField(
            model_name='projectgroupobjectpermission',
            name='group',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='auth.Group'),
        ),
        migrations.AddField(
            model_name='projectgroupobjectpermission',
            name='permission',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='auth.Permission'),
        ),
        migrations.AddField(
            model_name='organization',
            name='countries',
            field=models.ManyToManyField(related_name='organizations', to='b24online.Country'),
        ),
        migrations.AddField(
            model_name='organization',
            name='created_by',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='organization_create_user', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='organization',
            name='parent',
            field=polymorphic_tree.models.PolymorphicTreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='b24online.Organization', verbose_name='parent'),
        ),
        migrations.AddField(
            model_name='organization',
            name='polymorphic_ctype',
            field=models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='polymorphic_b24online.organization_set+', to='contenttypes.ContentType'),
        ),
        migrations.AddField(
            model_name='organization',
            name='updated_by',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='organization_update_user', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='news',
            name='categories',
            field=models.ManyToManyField(to='b24online.NewsCategory'),
        ),
        migrations.AddField(
            model_name='news',
            name='country',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='b24online.Country'),
        ),
        migrations.AddField(
            model_name='news',
            name='created_by',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='news_create_user', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='news',
            name='organization',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='news', to='b24online.Organization'),
        ),
        migrations.AddField(
            model_name='news',
            name='updated_by',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='news_update_user', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='innovationproject',
            name='organization',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='b24online.Organization'),
        ),
        migrations.AddField(
            model_name='innovationproject',
            name='updated_by',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='innovationproject_update_user', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='exhibition',
            name='organization',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='b24online.Organization'),
        ),
        migrations.AddField(
            model_name='exhibition',
            name='updated_by',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='exhibition_update_user', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='department',
            name='organization',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='departments', to='b24online.Organization'),
        ),
        migrations.AddField(
            model_name='department',
            name='updated_by',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='department_update_user', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='businessproposal',
            name='categories',
            field=models.ManyToManyField(to='b24online.BusinessProposalCategory'),
        ),
        migrations.AddField(
            model_name='businessproposal',
            name='country',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='b24online.Country'),
        ),
        migrations.AddField(
            model_name='businessproposal',
            name='created_by',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='businessproposal_create_user', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='businessproposal',
            name='organization',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='proposals', to='b24online.Organization'),
        ),
        migrations.AddField(
            model_name='businessproposal',
            name='updated_by',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='businessproposal_update_user', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AlterIndexTogether(
            name='bannerblock',
            index_together=set([('code', 'block_type')]),
        ),
        migrations.AddField(
            model_name='b2bproduct',
            name='branches',
            field=models.ManyToManyField(to='b24online.Branch'),
        ),
        migrations.AddField(
            model_name='b2bproduct',
            name='categories',
            field=models.ManyToManyField(related_name='products', to='b24online.B2BProductCategory'),
        ),
        migrations.AddField(
            model_name='b2bproduct',
            name='created_by',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='b2bproduct_create_user', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='b2bproduct',
            name='updated_by',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='b2bproduct_update_user', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='advertisementtarget',
            name='advertisement_item',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='targets', to='b24online.Advertisement'),
        ),
        migrations.AddField(
            model_name='advertisementtarget',
            name='content_type',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'),
        ),
        migrations.AddField(
            model_name='advertisementtarget',
            name='created_by',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='advertisementtarget_create_user', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='advertisementtarget',
            name='updated_by',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='advertisementtarget_update_user', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AlterUniqueTogether(
            name='registeredeventstats',
            unique_together=set([('event_type', 'site', 'content_type', 'object_id', 'registered_at')]),
        ),
        migrations.AlterUniqueTogether(
            name='registeredevent',
            unique_together=set([('event_type', 'site', 'content_type', 'object_id', 'registered_at', 'ip_address', 'user_agent')]),
        ),
        migrations.AlterUniqueTogether(
            name='projectuserobjectpermission',
            unique_together=set([('user', 'permission', 'content_object')]),
        ),
        migrations.AlterUniqueTogether(
            name='projectgroupobjectpermission',
            unique_together=set([('group', 'permission', 'content_object')]),
        ),
        migrations.AlterIndexTogether(
            name='message',
            index_together=set([('recipient', 'sender')]),
        ),
        migrations.AddField(
            model_name='banner',
            name='block',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='banners', to='b24online.BannerBlock'),
        ),
        migrations.AddField(
            model_name='banner',
            name='created_by',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='banner_create_user', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='banner',
            name='organization',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='b24online.Organization'),
        ),
        migrations.AddField(
            model_name='banner',
            name='site',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='sites.Site'),
        ),
        migrations.AddField(
            model_name='banner',
            name='updated_by',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='banner_update_user', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='b2bproduct',
            name='company',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='b2b_products', to='b24online.Company'),
        ),
        migrations.AlterUniqueTogether(
            name='advertisementprice',
            unique_together=set([('content_type', 'object_id')]),
        ),
        migrations.AddField(
            model_name='advertisementorder',
            name='advertisement',
            field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='b24online.Advertisement'),
        ),
        migrations.AddField(
            model_name='advertisementorder',
            name='content_type',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'),
        ),
        migrations.AddField(
            model_name='advertisementorder',
            name='created_by',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='advertisementorder_create_user', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='advertisementorder',
            name='price_components',
            field=models.ManyToManyField(to='b24online.AdvertisementPrice'),
        ),
        migrations.AddField(
            model_name='advertisementorder',
            name='updated_by',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='advertisementorder_update_user', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AlterIndexTogether(
            name='b2bproduct',
            index_together=set([('created_at', 'company')]),
        ),
    ]
