0001_initial.py 41.6 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations
from django.conf import settings


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='BaseFormLabel',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('symbol', models.CharField(max_length=32, db_column=b'efobaz', blank=True)),
                ('index', models.IntegerField()),
            ],
            options={
                'ordering': ['index'],
                'db_table': 'efobazy',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='BorrowingSource',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('label', models.CharField(max_length=32)),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='Classification',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.CharField(unique=True, max_length=64, verbose_name='classification name', db_column=b'nazwa')),
            ],
            options={
                'db_table': 'klasyfikacje',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='ClassificationValue',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('label', models.CharField(unique=True, max_length=64, verbose_name='value name', db_column=b'nazwa')),
                ('deleted', models.BooleanField(default=False, db_column=b'usunieta')),
                ('classification', models.ForeignKey(related_name='values', db_column=b'klas_id', to='dictionary.Classification')),
            ],
            options={
                'ordering': ['label'],
                'db_table': 'wartosci_klasyfikacji',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='CrossReference',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
            ],
            options={
                'db_table': 'odsylacze',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='CrossReferenceType',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('symbol', models.CharField(max_length=10, db_column=b'typods')),
                ('desc', models.CharField(max_length=40, db_column=b'naglowek')),
                ('index', models.IntegerField(db_column=b'kolejnosc')),
            ],
            options={
                'db_table': 'typyodsylaczy',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='Ending',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('index', models.IntegerField(db_column=b'zind')),
                ('string', models.CharField(max_length=16, db_column=b'zak', blank=True)),
                ('base_form_label', models.ForeignKey(to='dictionary.BaseFormLabel', db_column=b'efobaz')),
            ],
            options={
                'ordering': ['base_form_label__index', 'index'],
                'db_table': 'zakonczenia',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='ExportCell',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('prefix', models.CharField(max_length=20, blank=True)),
                ('suffix', models.CharField(max_length=20, blank=True)),
                ('tag_template', models.TextField()),
            ],
            options={
                'abstract': False,
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='Gender',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('symbol', models.CharField(unique=True, max_length=4)),
                ('basic_form_label', models.ForeignKey(to='dictionary.BaseFormLabel')),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='History',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('table_name', models.CharField(max_length=120, db_column=b'table_name_')),
                ('column_name', models.CharField(max_length=120, db_column=b'column_name_', blank=True)),
                ('timestamp', models.DateTimeField(db_column=b'timestamp_')),
                ('old_value', models.TextField(db_column=b'old_value_', blank=True)),
                ('new_value', models.TextField(db_column=b'new_value_', blank=True)),
                ('row_id', models.IntegerField(db_column=b'id_')),
                ('operation', models.CharField(max_length=120, db_column=b'operation_')),
                ('table_oid', models.IntegerField(db_column=b'table_oid_')),
                ('column_ord', models.IntegerField(db_column=b'ordinal_position_of_column_')),
                ('transaction_began', models.DateTimeField(db_column=b'transaction_began_', db_index=True)),
            ],
            options={
                'db_table': 'history',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='HomonymNumber',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('number', models.IntegerField()),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='InflectionCharacteristic',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('symbol', models.CharField(max_length=16, db_column=b'charfl', blank=True)),
                ('basic_form_label', models.ForeignKey(to='dictionary.BaseFormLabel', db_column=b'efobaz')),
            ],
            options={
                'db_table': 'charfle',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='InputForm',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('form', models.CharField(max_length=64, db_index=True)),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='InputLexeme',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('entry', models.CharField(max_length=64, db_index=True)),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='Lexeme',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('entry', models.CharField(max_length=64, verbose_name='entry', db_column=b'haslo', db_index=True)),
                ('source_id', models.IntegerField(null=True, blank=True)),
                ('entry_suffix', models.CharField(max_length=16, verbose_name='entry suffix', db_column=b'haslosuf', blank=True)),
                ('gloss', models.TextField(verbose_name='gloss', db_column=b'glosa', blank=True)),
                ('note', models.TextField(verbose_name='note', db_column=b'nota', blank=True)),
                ('extended_note', models.TextField(verbose_name='extended note', blank=True)),
                ('pronunciation', models.TextField(verbose_name='pronunciation', db_column=b'wymowa', blank=True)),
                ('valence', models.TextField(verbose_name='valence', blank=True)),
                ('homonym_number', models.IntegerField(default=1, db_column=b'hom')),
                ('source', models.CharField(max_length=64, verbose_name='source', db_column=b'zrodlo', blank=True)),
                ('status', models.CharField(max_length=8, db_column=b'status', choices=[(b'cand', 'candidate'), (b'desc', 'entered'), (b'conf', 'confirmed'), (b'litt', 'litter')])),
                ('qualifiers_dor', models.TextField(verbose_name='Dor. qual.', blank=True)),
                ('qualifiers_style', models.TextField(verbose_name='styl. qual.', blank=True)),
                ('qualifiers_scope', models.TextField(verbose_name='scope qual.', blank=True)),
                ('specialist', models.BooleanField(default=False, verbose_name='specialist')),
                ('comment', models.TextField(verbose_name='comment', db_column=b'komentarz', blank=True)),
                ('last_modified', models.DateTimeField(auto_now=True, db_column=b'data_modyfikacji')),
                ('deleted', models.BooleanField(default=False, db_column=b'usuniety')),
                ('borrowing_source', models.ForeignKey(verbose_name='borrowing source', blank=True, to='dictionary.BorrowingSource', null=True)),
            ],
            options={
                'db_table': 'leksemy',
                'permissions': (('view_lexeme', 'Can view lexemes'), ('view_all_lexemes', 'Can view all lexemes'), ('lexeme_priority', 'Decisive lexeme modifications'), ('export_lexemes', 'Can export lexemes')),
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='LexemeAssociation',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('lexeme', models.ForeignKey(to='dictionary.Lexeme', db_column=b'l_id')),
            ],
            options={
                'db_table': 'leksemy_w_slownikach',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='LexemeAttribute',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.CharField(unique=True, max_length=32)),
                ('name_gender', models.CharField(default=b'n', max_length=2)),
                ('closed', models.BooleanField()),
                ('multiple', models.BooleanField()),
                ('required', models.BooleanField()),
                ('takes_gender', models.BooleanField()),
                ('genders', models.ManyToManyField(to='dictionary.Gender', blank=True)),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='LexemeAttributeValue',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('value', models.CharField(max_length=128, blank=True)),
                ('display_value', models.CharField(max_length=64, blank=True)),
                ('attribute', models.ForeignKey(related_name='values', to='dictionary.LexemeAttribute')),
            ],
            options={
                'ordering': ['value'],
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='LexemeAV',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('attribute_value', models.ForeignKey(to='dictionary.LexemeAttributeValue')),
                ('lexeme', models.ForeignKey(to='dictionary.Lexeme')),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='LexemeCV',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('classification_value', models.ForeignKey(to='dictionary.ClassificationValue')),
                ('lexeme', models.ForeignKey(to='dictionary.Lexeme')),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='LexemeForm',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('form', models.CharField(max_length=128, db_index=True)),
                ('lexeme', models.ForeignKey(to='dictionary.Lexeme')),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='LexemeFormQualifier',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('lexeme', models.ForeignKey(to='dictionary.Lexeme')),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='LexemeIndex',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('index', models.IntegerField(db_index=True)),
                ('entry', models.CharField(max_length=64, db_index=True)),
                ('lexeme', models.ForeignKey(to='dictionary.Lexeme')),
            ],
            options={
                'ordering': ['index'],
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='LexemeInflectionPattern',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('index', models.IntegerField(db_column=b'oind')),
                ('root', models.CharField(max_length=64, db_column=b'rdzen')),
                ('pronunciation', models.CharField(max_length=64, verbose_name='pronunciation', blank=True)),
                ('gender', models.ForeignKey(verbose_name='gender', blank=True, to='dictionary.Gender', null=True)),
                ('lexeme', models.ForeignKey(to='dictionary.Lexeme', db_column=b'l_id')),
            ],
            options={
                'ordering': ['index'],
                'db_table': 'odmieniasie',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='LexemeList',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('filter', models.TextField()),
                ('a_fronte', models.BooleanField(default=True)),
                ('vocabularies', models.TextField()),
                ('last_used', models.DateTimeField(auto_now_add=True)),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='LexicalClass',
            fields=[
                ('symbol', models.CharField(max_length=16, serialize=False, primary_key=True, db_column=b'czm')),
                ('color_scheme', models.IntegerField()),
                ('full_name', models.CharField(max_length=128)),
            ],
            options={
                'db_table': 'czescimowy',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='MultilingualText',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('text_id', models.CharField(unique=True, max_length=128)),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='ParadygmatyWSJP',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('wariant', models.CharField(max_length=4)),
                ('charfl', models.CharField(max_length=16, db_column=b'charfl', blank=True)),
                ('podparad', models.CharField(max_length=4, blank=True)),
                ('row', models.IntegerField()),
                ('col', models.IntegerField()),
                ('rowspan', models.IntegerField()),
                ('colspan', models.IntegerField()),
                ('morf', models.TextField()),
                ('pref', models.CharField(max_length=20, blank=True)),
                ('suf', models.CharField(max_length=20, blank=True)),
                ('kskl', models.IntegerField()),
                ('efobaz', models.ForeignKey(to='dictionary.BaseFormLabel', db_column=b'efobaz')),
            ],
            options={
                'db_table': 'paradygmatywsjp',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='PartOfSpeech',
            fields=[
                ('symbol', models.CharField(max_length=16, serialize=False, primary_key=True, db_column=b'pos')),
                ('full_name', models.CharField(max_length=128, db_column=b'nazwa')),
                ('index', models.IntegerField()),
                ('color_scheme', models.IntegerField()),
                ('lexical_class', models.ForeignKey(to='dictionary.LexicalClass', db_column=b'czm')),
            ],
            options={
                'ordering': ['index'],
                'db_table': 'klasygramatyczne',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='Pattern',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.CharField(unique=True, max_length=32, verbose_name='name', db_column=b'w_id')),
                ('old_name', models.CharField(max_length=32, null=True, verbose_name='old name')),
                ('example', models.CharField(max_length=64, verbose_name='example', db_column=b'przyklad', blank=True)),
                ('basic_form_ending', models.CharField(max_length=32, verbose_name='basic form ending', db_column=b'zakp', blank=True)),
                ('status', models.CharField(max_length=8, verbose_name='status', choices=[(b'nowy', 'new'), (b'conf', 'confirmed'), (b'cand', 'candidate')])),
                ('comment', models.TextField(verbose_name='comment', db_column=b'komentarz', blank=True)),
                ('deleted', models.BooleanField()),
            ],
            options={
                'ordering': ['name'],
                'db_table': 'wzory',
                'permissions': (('view_pattern', 'Can view patterns'),),
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='PatternExample',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('gender', models.ForeignKey(to='dictionary.Gender')),
                ('lexeme', models.ForeignKey(to='dictionary.Lexeme')),
                ('pattern', models.ForeignKey(to='dictionary.Pattern')),
            ],
            options={
                'ordering': ['gender'],
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='PatternType',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('symbol', models.CharField(max_length=32, verbose_name='pattern type', db_column=b'wtyp', blank=True)),
                ('base_form_labels', models.ManyToManyField(to='dictionary.BaseFormLabel')),
                ('lexical_class', models.ForeignKey(db_column=b'czm', verbose_name='inflection type', to='dictionary.LexicalClass')),
            ],
            options={
                'ordering': ['symbol'],
                'db_table': 'typywzorow',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='POSName',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('abbr', models.CharField(max_length=16)),
                ('extended', models.CharField(max_length=128)),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='Qualifier',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('label', models.CharField(max_length=64, verbose_name='name', db_column=b'kwal')),
                ('type', models.CharField(max_length=4, verbose_name='type', choices=[(b'styl', 'stylistic'), (b'zakr', 'scope'), (b'form', 'at forms')])),
                ('deleted', models.BooleanField(default=False, db_column=b'usuniety')),
            ],
            options={
                'ordering': ['label'],
                'db_table': 'kwalifikatory',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='QualifierExclusionClass',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.CharField(unique=True, max_length=64, verbose_name='name', db_column=b'nazwa')),
            ],
            options={
                'db_table': 'klasy_wykluczania',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='SavedExportData',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('serialized_data', models.TextField()),
                ('name', models.CharField(unique=True, max_length=64)),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='SavedFilter',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('serialized_filter', models.TextField()),
                ('name', models.CharField(max_length=64)),
                ('type', models.CharField(max_length=16)),
                ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='TableCell',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('prefix', models.CharField(max_length=20, blank=True)),
                ('suffix', models.CharField(max_length=20, blank=True)),
                ('qualifier', models.CharField(max_length=128, blank=True)),
                ('row', models.IntegerField()),
                ('col', models.IntegerField()),
                ('rowspan', models.IntegerField()),
                ('colspan', models.IntegerField()),
                ('index', models.IntegerField()),
                ('attribute_values', models.ManyToManyField(related_name='table_cells', to='dictionary.LexemeAttributeValue')),
                ('base_form_label', models.ForeignKey(to='dictionary.BaseFormLabel')),
                ('genders', models.ManyToManyField(to='dictionary.Gender')),
                ('marked_attribute_values', models.ManyToManyField(related_name='marked_cells', to='dictionary.LexemeAttributeValue')),
                ('pattern_types', models.ManyToManyField(to='dictionary.PatternType')),
            ],
            options={
                'abstract': False,
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='TableHeader',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('row', models.IntegerField()),
                ('col', models.IntegerField()),
                ('rowspan', models.IntegerField()),
                ('colspan', models.IntegerField()),
                ('label', models.CharField(max_length=64, db_column=b'nagl', blank=True)),
                ('css_class', models.CharField(max_length=8, db_column=b'styl')),
                ('attribute_values', models.ManyToManyField(to='dictionary.LexemeAttributeValue')),
                ('genders', models.ManyToManyField(to='dictionary.Gender')),
                ('pattern_types', models.ManyToManyField(to='dictionary.PatternType')),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='TableTemplate',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.TextField()),
                ('takes_gender', models.BooleanField()),
                ('attribute_values', models.ManyToManyField(to='dictionary.LexemeAttributeValue')),
                ('attributes', models.ManyToManyField(to='dictionary.LexemeAttribute')),
                ('cell_attributes', models.ManyToManyField(related_name='templates', to='dictionary.LexemeAttribute')),
                ('parts_of_speech', models.ManyToManyField(to='dictionary.PartOfSpeech')),
                ('pattern_types', models.ManyToManyField(to='dictionary.PatternType')),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='TranslatedText',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('language_code', models.CharField(max_length=16)),
                ('text', models.CharField(max_length=128)),
                ('multilingual_text', models.ForeignKey(to='dictionary.MultilingualText')),
            ],
            options={
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='Variant',
            fields=[
                ('id', models.CharField(max_length=32, serialize=False, primary_key=True, db_column=b'wariant')),
                ('type', models.CharField(max_length=10, choices=[(b'table', b'tabelka'), (b'export', b'eksport')])),
            ],
            options={
                'db_table': 'warianty',
            },
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name='Vocabulary',
            fields=[
                ('id', models.CharField(max_length=64, serialize=False, primary_key=True, db_column=b'slownik')),
                ('description', models.TextField()),
                ('classifications', models.ManyToManyField(related_name='vocabularies', to='dictionary.Classification', blank=True)),
                ('editors', models.ManyToManyField(related_name='editable_vocabularies', to=settings.AUTH_USER_MODEL, blank=True)),
                ('lexemes', models.ManyToManyField(related_name='vocabularies', through='dictionary.LexemeAssociation', to='dictionary.Lexeme', blank=True)),
                ('managers', models.ManyToManyField(related_name='managed_vocabularies', to=settings.AUTH_USER_MODEL, blank=True)),
                ('viewers', models.ManyToManyField(related_name='visible_vocabularies', to=settings.AUTH_USER_MODEL, blank=True)),
            ],
            options={
                'ordering': ['id'],
                'db_table': 'slowniki',
                'permissions': (('manage_vocabulary', 'Can manage dictionaries'), ('manage_all_vocabularies', 'Manages all dictionaries')),
            },
            bases=(models.Model,),
        ),
        migrations.AddField(
            model_name='tabletemplate',
            name='variant',
            field=models.ForeignKey(to='dictionary.Variant'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='tableheader',
            name='table_template',
            field=models.ForeignKey(related_name='headers', to='dictionary.TableTemplate'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='tablecell',
            name='table_template',
            field=models.ForeignKey(related_name='table_cells', to='dictionary.TableTemplate'),
            preserve_default=True,
        ),
        migrations.AlterUniqueTogether(
            name='savedfilter',
            unique_together=set([('name', 'user')]),
        ),
        migrations.AddField(
            model_name='qualifierexclusionclass',
            name='vocabulary',
            field=models.ForeignKey(db_column=b'slownik', verbose_name='dictionary', to='dictionary.Vocabulary'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='qualifier',
            name='exclusion_class',
            field=models.ForeignKey(db_column=b'klasa', blank=True, to='dictionary.QualifierExclusionClass', null=True, verbose_name='exclusion class'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='qualifier',
            name='vocabulary',
            field=models.ForeignKey(related_name='qualifiers', db_column=b'slownik', verbose_name='dictionary', to='dictionary.Vocabulary'),
            preserve_default=True,
        ),
        migrations.AlterUniqueTogether(
            name='qualifier',
            unique_together=set([('label', 'vocabulary')]),
        ),
        migrations.AlterUniqueTogether(
            name='patternexample',
            unique_together=set([('pattern', 'gender')]),
        ),
        migrations.AddField(
            model_name='pattern',
            name='type',
            field=models.ForeignKey(db_column=b'typ', verbose_name='type', to='dictionary.PatternType'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='partofspeech',
            name='pos_name',
            field=models.ForeignKey(to='dictionary.POSName'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='paradygmatywsjp',
            name='pos',
            field=models.ForeignKey(to='dictionary.PartOfSpeech', db_column=b'pos'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='paradygmatywsjp',
            name='typr',
            field=models.ForeignKey(to='dictionary.PatternType', db_column=b'typr'),
            preserve_default=True,
        ),
        migrations.AlterUniqueTogether(
            name='lexemelist',
            unique_together=set([('filter', 'a_fronte', 'vocabularies')]),
        ),
        migrations.AddField(
            model_name='lexemeinflectionpattern',
            name='pattern',
            field=models.ForeignKey(db_column=b'w_id', verbose_name='pattern', to='dictionary.Pattern'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='lexemeinflectionpattern',
            name='qualifiers',
            field=models.ManyToManyField(to='dictionary.Qualifier', db_table=b'kwalifikatory_odmieniasiow', blank=True),
            preserve_default=True,
        ),
        migrations.AlterUniqueTogether(
            name='lexemeinflectionpattern',
            unique_together=set([('lexeme', 'index')]),
        ),
        migrations.AddField(
            model_name='lexemeindex',
            name='lexeme_list',
            field=models.ForeignKey(to='dictionary.LexemeList'),
            preserve_default=True,
        ),
        migrations.AlterUniqueTogether(
            name='lexemeindex',
            unique_together=set([('lexeme_list', 'lexeme')]),
        ),
        migrations.AddField(
            model_name='lexemeformqualifier',
            name='qualifier',
            field=models.ForeignKey(to='dictionary.Qualifier'),
            preserve_default=True,
        ),
        migrations.AlterUniqueTogether(
            name='lexemecv',
            unique_together=set([('lexeme', 'classification_value')]),
        ),
        migrations.AlterUniqueTogether(
            name='lexemeav',
            unique_together=set([('lexeme', 'attribute_value')]),
        ),
        migrations.AddField(
            model_name='lexemeattributevalue',
            name='lexemes',
            field=models.ManyToManyField(to='dictionary.Lexeme', through='dictionary.LexemeAV', blank=True),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='lexemeattribute',
            name='multilingual_name',
            field=models.ForeignKey(to='dictionary.MultilingualText', null=True),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='lexemeattribute',
            name='parts_of_speech',
            field=models.ManyToManyField(to='dictionary.PartOfSpeech'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='lexemeassociation',
            name='vocabulary',
            field=models.ForeignKey(to='dictionary.Vocabulary', db_column=b'slownik'),
            preserve_default=True,
        ),
        migrations.AlterUniqueTogether(
            name='lexemeassociation',
            unique_together=set([('lexeme', 'vocabulary')]),
        ),
        migrations.AddField(
            model_name='lexeme',
            name='owner_vocabulary',
            field=models.ForeignKey(related_name='owned_lexemes', db_column=b'slownik', to='dictionary.Vocabulary'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='lexeme',
            name='part_of_speech',
            field=models.ForeignKey(db_column=b'pos', verbose_name='POS', to='dictionary.PartOfSpeech'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='lexeme',
            name='patterns',
            field=models.ManyToManyField(to='dictionary.Pattern', through='dictionary.LexemeInflectionPattern'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='lexeme',
            name='qualifiers',
            field=models.ManyToManyField(to='dictionary.Qualifier', db_table=b'kwalifikatory_leksemow', blank=True),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='lexeme',
            name='qualifiers_cache',
            field=models.ManyToManyField(related_name='all_lexemes', through='dictionary.LexemeFormQualifier', to='dictionary.Qualifier'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='lexeme',
            name='responsible',
            field=models.ForeignKey(db_column=b'odpowiedzialny', blank=True, to=settings.AUTH_USER_MODEL, null=True),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='inputform',
            name='input_lexeme',
            field=models.ForeignKey(to='dictionary.InputLexeme'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='inflectioncharacteristic',
            name='part_of_speech',
            field=models.ForeignKey(to='dictionary.PartOfSpeech', db_column=b'pos'),
            preserve_default=True,
        ),
        migrations.AlterUniqueTogether(
            name='inflectioncharacteristic',
            unique_together=set([('symbol', 'part_of_speech')]),
        ),
        migrations.AddField(
            model_name='homonymnumber',
            name='lexeme',
            field=models.ForeignKey(to='dictionary.Lexeme'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='homonymnumber',
            name='variant',
            field=models.ForeignKey(to='dictionary.Variant'),
            preserve_default=True,
        ),
        migrations.AlterUniqueTogether(
            name='homonymnumber',
            unique_together=set([('lexeme', 'variant')]),
        ),
        migrations.AddField(
            model_name='history',
            name='lexeme',
            field=models.ForeignKey(db_column=b'lexeme_id_', blank=True, to='dictionary.Lexeme', null=True),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='history',
            name='pattern',
            field=models.ForeignKey(db_column=b'pattern_id_', blank=True, to='dictionary.Pattern', null=True),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='history',
            name='user',
            field=models.ForeignKey(to=settings.AUTH_USER_MODEL, db_column=b'user_id_'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='exportcell',
            name='attribute_values',
            field=models.ManyToManyField(to='dictionary.LexemeAttributeValue'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='exportcell',
            name='base_form_label',
            field=models.ForeignKey(to='dictionary.BaseFormLabel'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='exportcell',
            name='genders',
            field=models.ManyToManyField(to='dictionary.Gender'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='exportcell',
            name='pattern_types',
            field=models.ManyToManyField(to='dictionary.PatternType'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='exportcell',
            name='table_template',
            field=models.ForeignKey(related_name='export_cells', to='dictionary.TableTemplate'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='ending',
            name='pattern',
            field=models.ForeignKey(related_name='endings', db_column=b'w_id', to='dictionary.Pattern'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='ending',
            name='qualifiers',
            field=models.ManyToManyField(to='dictionary.Qualifier', db_table=b'kwalifikatory_zakonczen', blank=True),
            preserve_default=True,
        ),
        migrations.AlterUniqueTogether(
            name='ending',
            unique_together=set([('pattern', 'base_form_label', 'index')]),
        ),
        migrations.AddField(
            model_name='crossreferencetype',
            name='from_pos',
            field=models.ForeignKey(related_name='crtype_to', db_column=b'pos1', to='dictionary.PartOfSpeech'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='crossreferencetype',
            name='to_pos',
            field=models.ForeignKey(related_name='crtype_from', db_column=b'pos2', to='dictionary.PartOfSpeech'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='crossreference',
            name='from_lexeme',
            field=models.ForeignKey(related_name='refs_to', db_column=b'l_id_od', to='dictionary.Lexeme'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='crossreference',
            name='to_lexeme',
            field=models.ForeignKey(related_name='refs_from', db_column=b'l_id_do', verbose_name='targer number', to='dictionary.Lexeme'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='crossreference',
            name='type',
            field=models.ForeignKey(db_column=b'typods_id', verbose_name='type', to='dictionary.CrossReferenceType'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='classificationvalue',
            name='lexemes',
            field=models.ManyToManyField(to='dictionary.Lexeme', through='dictionary.LexemeCV', blank=True),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='classificationvalue',
            name='parent_node',
            field=models.ForeignKey(related_name='child_nodes', db_column=b'rodzic', blank=True, to='dictionary.ClassificationValue', null=True, verbose_name='parent value'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='classification',
            name='multilingual_name',
            field=models.ForeignKey(to='dictionary.MultilingualText', null=True),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='classification',
            name='parts_of_speech',
            field=models.ManyToManyField(to='dictionary.PartOfSpeech'),
            preserve_default=True,
        ),
        migrations.AddField(
            model_name='baseformlabel',
            name='lexical_class',
            field=models.ForeignKey(to='dictionary.LexicalClass'),
            preserve_default=True,
        ),
        migrations.AlterUniqueTogether(
            name='baseformlabel',
            unique_together=set([('symbol', 'lexical_class')]),
        ),
    ]