Ejemplo n.º 1
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('address', '0003_auto_20200830_1851'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Church',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=200)),
                ('picture', models.ImageField(blank=True, upload_to='')),
                ('description', models.TextField(blank=True, max_length=1000)),
                ('pastor_name', models.CharField(max_length=254)),
                ('phone',
                 phone_field.models.PhoneField(help_text='Phone Number',
                                               max_length=31)),
                ('is_active', models.BooleanField(default=True)),
                ('date_joined',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('slug', models.SlugField(unique=True)),
                ('address',
                 address.models.AddressField(
                     on_delete=django.db.models.deletion.CASCADE,
                     to='address.Address')),
                ('user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
Ejemplo n.º 2
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ("address", "0002_auto_20160213_1726"),
    ]

    operations = [
        migrations.CreateModel(
            name="Chapter",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("name", models.CharField(max_length=50)),
                ("slug", models.SlugField(default=None, null=True, unique=True)),
                (
                    "email",
                    models.EmailField(
                        blank=True, max_length=254, verbose_name="email address"
                    ),
                ),
                (
                    "website",
                    models.URLField(
                        blank=True,
                        help_text="You must include the full URL including https:// or http://",
                    ),
                ),
                (
                    "facebook",
                    models.URLField(
                        blank=True,
                        help_text="You must include the full URL including https:// or http://",
                    ),
                ),
                (
                    "balance",
                    models.DecimalField(
                        decimal_places=2,
                        default=0,
                        help_text="Balance chapter owes.",
                        max_digits=7,
                    ),
                ),
                ("balance_date", models.DateField(auto_now_add=True)),
                (
                    "tax",
                    models.PositiveIntegerField(
                        blank=True,
                        help_text="Tax number, if chapter participates in group exemption.",
                        null=True,
                        unique=True,
                    ),
                ),
                (
                    "greek",
                    models.CharField(
                        blank=True, help_text="Greek letter abbreviation", max_length=10
                    ),
                ),
                ("active", models.BooleanField(default=True)),
                ("colony", models.BooleanField(default=False)),
                ("school", models.CharField(blank=True, max_length=50, unique=True)),
                (
                    "latitude",
                    models.DecimalField(
                        blank=True, decimal_places=16, max_digits=22, null=True
                    ),
                ),
                (
                    "longitude",
                    models.DecimalField(
                        blank=True, decimal_places=16, max_digits=22, null=True
                    ),
                ),
                (
                    "school_type",
                    models.CharField(
                        choices=[("semester", "Semester"), ("quarter", "Quarter")],
                        default="semester",
                        max_length=10,
                    ),
                ),
                (
                    "council",
                    models.CharField(
                        default="none",
                        help_text="The name of the council of which your Chapter is a member, for example the IFC or PFC.  Please write 'none' if you are not recognized as a Fraternity or not a member of a council.",
                        max_length=55,
                        verbose_name="Name of Council",
                    ),
                ),
                (
                    "recognition",
                    models.CharField(
                        choices=[
                            ("fraternity", "Recognized as a Fraternity"),
                            (
                                "org",
                                "Recognized as a Student Organization NOT a Fraternity",
                            ),
                            (
                                "other",
                                "Recognized but not as a Fraternity or Student Organization",
                            ),
                            ("not_rec", "Not Recognized by University"),
                        ],
                        default="not_rec",
                        help_text="Please indicate if your chapter is recognized by your host college or university.",
                        max_length=10,
                        verbose_name="University Recognition",
                    ),
                ),
                (
                    "address",
                    address.models.AddressField(
                        blank=True,
                        help_text="We periodically need to mail things (shingles, badges, etc) to your chapter.",
                        null=True,
                        on_delete=django.db.models.deletion.SET_NULL,
                        to="address.Address",
                        unique=True,
                        verbose_name="Mailing Address",
                    ),
                ),
            ],
            options={
                "ordering": ["name"],
            },
        ),
        migrations.CreateModel(
            name="ChapterCurricula",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("major", models.CharField(max_length=100)),
                (
                    "chapter",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="curricula",
                        to="chapters.Chapter",
                    ),
                ),
            ],
        ),
    ]
Ejemplo n.º 3
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('character', '0002_auto_20191103_2032'),
        ('address', '0002_auto_20160213_1726'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Event',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=50)),
                ('date', models.DateField(default=django.utils.timezone.now)),
                ('hours', models.DecimalField(decimal_places=2, max_digits=5)),
                ('player_limit', models.PositiveIntegerField(default=0)),
                ('treasure',
                 models.DecimalField(decimal_places=1, default=0,
                                     max_digits=6)),
                ('public_notes', models.TextField(blank=True, max_length=500)),
                ('staff_notes', models.TextField(blank=True, max_length=500)),
                ('plot_notes', models.TextField(blank=True, max_length=500)),
                ('logistics_notes', models.TextField(blank=True,
                                                     max_length=500)),
            ],
        ),
        migrations.CreateModel(
            name='Player_Events',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('attendance_type',
                 models.CharField(choices=[('P', 'PC'), ('N', 'NPC'),
                                           ('O', 'Other')],
                                  default='P',
                                  max_length=1)),
                ('character_hours',
                 models.DecimalField(decimal_places=2, max_digits=5)),
                ('notes', models.TextField(blank=True, max_length=300)),
                ('treasure_taken',
                 models.DecimalField(decimal_places=1, default=0,
                                     max_digits=6)),
                ('treasure_returned',
                 models.DecimalField(decimal_places=1, default=0,
                                     max_digits=6)),
                ('character',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='character.Character')),
                ('event',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='event.Event')),
                ('player',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Location',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=150)),
                ('address',
                 address.models.AddressField(
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     to='address.Address')),
            ],
        ),
        migrations.CreateModel(
            name='Event_Type',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=50)),
                ('abbrev', models.SlugField(max_length=5)),
                ('notes', models.TextField(blank=True, max_length=300)),
                ('default_hours',
                 models.DecimalField(decimal_places=2,
                                     default=0.5,
                                     max_digits=5)),
                ('pcs_and_npcs', models.BooleanField(default=True)),
                ('is_leo', models.BooleanField(default=True)),
                ('default_location',
                 models.ForeignKey(
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     to='event.Location')),
            ],
        ),
        migrations.AddField(
            model_name='event',
            name='event_type',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='event.Event_Type'),
        ),
        migrations.AddField(
            model_name='event',
            name='location',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='event.Location'),
        ),
    ]
Ejemplo n.º 4
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('address', '0003_auto_20200830_1851'),
        ('auth', '0012_alter_user_first_name_max_length'),
        ('taggit', '0003_taggeditem_add_unique_index'),
    ]

    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')),
                ('email', models.EmailField(max_length=127, unique=True)),
                ('first_name', models.CharField(max_length=127)),
                ('last_name', models.CharField(max_length=127)),
                ('is_staff', models.BooleanField(default=False)),
                ('is_superuser', models.BooleanField(default=False)),
                ('is_active', models.BooleanField(default=True)),
                ('date_joined', models.DateTimeField(auto_now_add=True)),
                ('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={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Cause',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=191)),
                ('description', models.TextField()),
                ('slug', models.SlugField()),
                ('cause_image',
                 models.ImageField(
                     default=
                     'https://i.pinimg.com/originals/fa/98/67/fa9867a39c2ec093bad63e91fed2bacb.jpg',
                     upload_to='images/')),
                ('is_deleted', models.BooleanField(default=False)),
            ],
        ),
        migrations.CreateModel(
            name='CharityOrg',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=191)),
                ('description', models.TextField()),
                ('contact_email', models.EmailField(max_length=254)),
                ('paypal_email', models.EmailField(max_length=254)),
                ('slug', models.SlugField()),
                ('is_deleted', models.BooleanField(default=False)),
                ('charity_image',
                 models.FileField(
                     default=
                     'http://127.0.0.1:8000/media/https:/i.pinimg.com/originals/fa/98/67/fa9867a39c2ec093bad63e91fed2bacb.jpg',
                     null=True,
                     upload_to='images/',
                     verbose_name='')),
                ('authenticated_users',
                 models.ManyToManyField(to=settings.AUTH_USER_MODEL)),
                ('tags',
                 taggit.managers.TaggableManager(
                     help_text='A comma-separated list of tags.',
                     through='taggit.TaggedItem',
                     to='taggit.Tag',
                     verbose_name='Tags')),
            ],
        ),
        migrations.CreateModel(
            name='Order',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('contact_email', models.EmailField(max_length=254)),
                ('date', models.DateTimeField(auto_now_add=True)),
                ('paid', models.BooleanField(default=False)),
                ('order_id', models.CharField(max_length=50)),
                ('address',
                 address.models.AddressField(
                     on_delete=django.db.models.deletion.CASCADE,
                     to='address.address')),
                ('charities',
                 models.ManyToManyField(related_name='charity_orders',
                                        to='microDonation.CharityOrg')),
            ],
        ),
        migrations.CreateModel(
            name='LineItem',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('value', models.DecimalField(decimal_places=2, max_digits=7)),
                ('cause',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='microDonation.cause')),
                ('order',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='microDonation.order')),
            ],
        ),
        migrations.AddField(
            model_name='cause',
            name='charity',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='microDonation.charityorg'),
        ),
        migrations.AddField(
            model_name='cause',
            name='tags',
            field=taggit.managers.TaggableManager(
                help_text='A comma-separated list of tags.',
                through='taggit.TaggedItem',
                to='taggit.Tag',
                verbose_name='Tags'),
        ),
        migrations.CreateModel(
            name='CartItem',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('cart_id', models.CharField(max_length=50)),
                ('value', models.DecimalField(decimal_places=2, max_digits=7)),
                ('cause',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='microDonation.cause')),
            ],
        ),
    ]
Ejemplo n.º 5
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('address', '0002_auto_20160213_1726'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Character',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(default='Unnamed', max_length=100)),
                ('bio', models.TextField(blank=True, max_length=500)),
                ('player_notes', models.TextField(blank=True, max_length=500)),
                ('plot_notes', models.TextField(blank=True, max_length=500)),
                ('logistics_notes', models.TextField(blank=True, max_length=500)),
                ('admin_notes', models.TextField(blank=True, max_length=500)),
                ('bank', models.DecimalField(decimal_places=1, default=22.0, max_digits=6)),
                ('xp', models.DecimalField(decimal_places=4, default=50.0, max_digits=8)),
                ('hp', models.PositiveIntegerField(default=25)),
                ('is_alive', models.BooleanField(default=True)),
                ('is_active', models.BooleanField(default=True)),
                ('character_hours', models.DecimalField(decimal_places=2, default=0.0, max_digits=10)),
                ('image', models.ImageField(blank=True, upload_to=character.models.user_directory_path)),
            ],
        ),
        migrations.CreateModel(
            name='Character_Class',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
                ('abbrev', models.SlugField(max_length=5)),
                ('description', models.TextField(blank=True, max_length=500)),
            ],
        ),
        migrations.CreateModel(
            name='Character_Race',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
                ('notes', models.TextField(blank=True, max_length=300)),
                ('costuming_notes', models.TextField(blank=True, max_length=300)),
                ('is_pc_race', models.BooleanField(default=False)),
            ],
        ),
        migrations.CreateModel(
            name='Profile',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('bio', models.TextField(blank=True, max_length=500)),
                ('birth_date', models.DateField(blank=True, null=True)),
                ('date_joined', models.DateField(default=django.utils.timezone.now)),
                ('is_active', models.BooleanField(default=True)),
                ('is_admin', models.BooleanField(default=False)),
                ('is_staff', models.BooleanField(default=False)),
                ('is_logistics', models.BooleanField(default=False)),
                ('is_plot', models.BooleanField(default=False)),
                ('is_in_leo', models.BooleanField(default=False)),
                ('tokens', models.PositiveIntegerField(default=0)),
                ('unspent_hours', models.PositiveIntegerField(default=0)),
                ('total_hours', models.PositiveIntegerField(default=0)),
                ('address', address.models.AddressField(null=True, on_delete=django.db.models.deletion.SET_NULL, to='address.Address')),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Character_Subrace',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
                ('notes', models.TextField(blank=True, max_length=300)),
                ('character_race', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='character.Character_Race')),
            ],
        ),
        migrations.CreateModel(
            name='Character_Skill',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('multiplier', models.PositiveIntegerField(default=1)),
                ('character', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='character.Character')),
            ],
        ),
    ]