website/conservancy/supporters/migrations/0001_initial.py

65 lines
2.3 KiB
Python

# Generated by Django 4.2.11 on 2024-07-22 05:16
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name='Supporter',
fields=[
(
'id',
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name='ID',
),
),
('display_name', models.CharField(max_length=200)),
(
'display_until_date',
models.DateTimeField(
verbose_name='date until which this supporter name is displayed'
),
),
('ledger_entity_id', models.CharField(max_length=200)),
],
options={
'ordering': ('ledger_entity_id',),
},
),
migrations.CreateModel(
name='SustainerOrder',
fields=[
(
'id',
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name='ID',
),
),
('created_time', models.DateTimeField(auto_now_add=True)),
('name', models.CharField(max_length=255)),
('email', models.EmailField(max_length=254)),
('amount', models.DecimalField(decimal_places=2, max_digits=9)),
('paid_time', models.DateTimeField(null=True)),
('acknowledge_publicly', models.BooleanField(default=False)),
('add_to_mailing_list', models.BooleanField(default=False)),
('tshirt_size', models.CharField(max_length=50)),
('street', models.CharField(blank=True, max_length=255)),
('city', models.CharField(blank=True, max_length=255)),
('state', models.CharField(blank=True, max_length=255)),
('zip_code', models.CharField(blank=True, max_length=255)),
('country', models.CharField(blank=True, max_length=255)),
],
),
]