2022-02-03 16:19:03 -05:00
|
|
|
# Generated by Django 4.0.2 on 2022-02-03 21:12
|
|
|
|
|
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
|
2022-02-12 00:07:16 -05:00
|
|
|
dependencies = [
|
|
|
|
("membershipworks", "0001_initial"),
|
|
|
|
]
|
2022-02-03 16:19:03 -05:00
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2022-02-11 13:48:47 -05:00
|
|
|
name="CertificationDefinition",
|
2022-02-03 16:19:03 -05:00
|
|
|
fields=[
|
2022-02-11 13:48:47 -05:00
|
|
|
(
|
|
|
|
"certification_identifier",
|
|
|
|
models.AutoField(
|
|
|
|
db_column="Certification Identifier",
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"certification_name",
|
|
|
|
models.CharField(
|
|
|
|
blank=True,
|
|
|
|
db_column="Certification Name",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"department",
|
|
|
|
models.CharField(
|
|
|
|
blank=True, db_column="Department", max_length=255, null=True
|
|
|
|
),
|
|
|
|
),
|
2022-02-03 16:19:03 -05:00
|
|
|
],
|
|
|
|
options={
|
2022-02-11 13:48:47 -05:00
|
|
|
"db_table": "Certification Definitions",
|
|
|
|
"ordering": ("certification_name", "department"),
|
2022-02-03 16:19:03 -05:00
|
|
|
},
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
2022-02-11 13:48:47 -05:00
|
|
|
name="CmsRedRiverVeteransScholarship",
|
2022-02-03 16:19:03 -05:00
|
|
|
fields=[
|
2022-02-11 13:48:47 -05:00
|
|
|
("serial", models.AutoField(primary_key=True, serialize=False)),
|
|
|
|
(
|
|
|
|
"program_name",
|
|
|
|
models.CharField(db_column="Program Name", max_length=255),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"member_name",
|
|
|
|
models.CharField(
|
|
|
|
blank=True, db_column="Member Name", max_length=255, null=True
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"discount_percent",
|
|
|
|
models.DecimalField(
|
|
|
|
blank=True,
|
|
|
|
db_column="Discount Percent",
|
|
|
|
decimal_places=0,
|
|
|
|
max_digits=16,
|
|
|
|
null=True,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"discount_code",
|
|
|
|
models.CharField(
|
|
|
|
blank=True, db_column="Discount Code", max_length=255, null=True
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"membership_code",
|
|
|
|
models.CharField(
|
|
|
|
blank=True,
|
|
|
|
db_column="Membership Code",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"start_date",
|
|
|
|
models.DateField(blank=True, db_column="Start Date", null=True),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"end_date",
|
|
|
|
models.DateField(blank=True, db_column="End Date", null=True),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"program_amount",
|
|
|
|
models.DecimalField(
|
|
|
|
blank=True,
|
|
|
|
db_column="Program Amount",
|
|
|
|
decimal_places=0,
|
|
|
|
max_digits=16,
|
|
|
|
null=True,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"program_status",
|
|
|
|
models.CharField(
|
|
|
|
blank=True, db_column="Program Status", max_length=16, null=True
|
|
|
|
),
|
|
|
|
),
|
2022-02-03 16:19:03 -05:00
|
|
|
],
|
|
|
|
options={
|
2022-02-11 13:48:47 -05:00
|
|
|
"db_table": "CMS Red River Veterans Scholarship",
|
2022-02-03 16:19:03 -05:00
|
|
|
},
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
2022-02-11 13:48:47 -05:00
|
|
|
name="InstructorOrVendor",
|
2022-02-03 16:19:03 -05:00
|
|
|
fields=[
|
2022-02-11 13:48:47 -05:00
|
|
|
("serial", models.AutoField(primary_key=True, serialize=False)),
|
|
|
|
("name", models.CharField(db_column="Name", max_length=255)),
|
|
|
|
(
|
|
|
|
"instructor_agreement_date",
|
|
|
|
models.DateField(
|
|
|
|
blank=True, db_column="Instructor Agreement Date", null=True
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"w9_date",
|
|
|
|
models.DateField(blank=True, db_column="W9 date", null=True),
|
|
|
|
),
|
|
|
|
("phone", models.CharField(blank=True, max_length=255, null=True)),
|
|
|
|
(
|
|
|
|
"email_address",
|
|
|
|
models.CharField(
|
|
|
|
blank=True, db_column="email address", max_length=255, null=True
|
|
|
|
),
|
|
|
|
),
|
2022-02-03 16:19:03 -05:00
|
|
|
],
|
|
|
|
options={
|
2022-02-11 13:48:47 -05:00
|
|
|
"db_table": "Instructors and Vendors",
|
2022-02-03 16:19:03 -05:00
|
|
|
},
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
2022-02-11 13:48:47 -05:00
|
|
|
name="SpecialProgram",
|
2022-02-03 16:19:03 -05:00
|
|
|
fields=[
|
2022-02-11 13:48:47 -05:00
|
|
|
(
|
|
|
|
"program_name",
|
|
|
|
models.CharField(
|
|
|
|
db_column="Program Name",
|
|
|
|
max_length=255,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"discount_percent",
|
|
|
|
models.DecimalField(
|
|
|
|
blank=True,
|
|
|
|
db_column="Discount Percent",
|
|
|
|
decimal_places=0,
|
|
|
|
max_digits=16,
|
|
|
|
null=True,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"discount_code",
|
|
|
|
models.CharField(
|
|
|
|
blank=True, db_column="Discount Code", max_length=255, null=True
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"membership_code",
|
|
|
|
models.CharField(
|
|
|
|
blank=True,
|
|
|
|
db_column="Membership Code",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"start_date",
|
|
|
|
models.DateField(blank=True, db_column="Start Date", null=True),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"end_date",
|
|
|
|
models.DateField(blank=True, db_column="End Date", null=True),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"program_amount",
|
|
|
|
models.DecimalField(
|
|
|
|
blank=True,
|
|
|
|
db_column="Program Amount",
|
|
|
|
decimal_places=0,
|
|
|
|
max_digits=16,
|
|
|
|
null=True,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"program_status",
|
|
|
|
models.CharField(
|
|
|
|
blank=True, db_column="Program Status", max_length=16, null=True
|
|
|
|
),
|
|
|
|
),
|
2022-02-03 16:19:03 -05:00
|
|
|
],
|
|
|
|
options={
|
2022-02-11 13:48:47 -05:00
|
|
|
"db_table": "Special_Programs",
|
2022-02-03 16:19:03 -05:00
|
|
|
},
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
2022-02-11 13:48:47 -05:00
|
|
|
name="Waiver",
|
2022-02-03 16:19:03 -05:00
|
|
|
fields=[
|
2022-02-11 13:48:47 -05:00
|
|
|
(
|
|
|
|
"number",
|
|
|
|
models.AutoField(
|
|
|
|
db_column="Number", primary_key=True, serialize=False
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("name", models.CharField(db_column="Name", max_length=255)),
|
|
|
|
("date", models.DateField(db_column="Date")),
|
|
|
|
(
|
|
|
|
"emergency_contact_name",
|
|
|
|
models.CharField(
|
|
|
|
blank=True,
|
|
|
|
db_column="Emergency Contact Name",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"emergency_contact_number",
|
|
|
|
models.CharField(
|
|
|
|
blank=True,
|
|
|
|
db_column="Emergency Contact Number",
|
|
|
|
max_length=25,
|
|
|
|
null=True,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"waiver_version",
|
|
|
|
models.CharField(db_column="Waiver version", max_length=64),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"guardian_name",
|
|
|
|
models.CharField(
|
|
|
|
blank=True, db_column="Guardian Name", max_length=255, null=True
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"guardian_relation",
|
|
|
|
models.CharField(
|
|
|
|
blank=True,
|
|
|
|
db_column="Guardian Relation",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"guardian_date",
|
|
|
|
models.DateField(blank=True, db_column="Guardian Date", null=True),
|
|
|
|
),
|
2022-02-03 16:19:03 -05:00
|
|
|
],
|
|
|
|
options={
|
2022-02-11 13:48:47 -05:00
|
|
|
"db_table": "Waivers",
|
2022-02-03 16:19:03 -05:00
|
|
|
},
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
2022-02-11 13:48:47 -05:00
|
|
|
name="Certification",
|
2022-02-03 16:19:03 -05:00
|
|
|
fields=[
|
2022-02-11 13:48:47 -05:00
|
|
|
(
|
|
|
|
"number",
|
|
|
|
models.AutoField(
|
|
|
|
db_column="Number", primary_key=True, serialize=False
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("name", models.CharField(db_column="Name", max_length=255)),
|
|
|
|
(
|
|
|
|
"certified_by",
|
|
|
|
models.CharField(
|
|
|
|
blank=True, db_column="Certified_By", max_length=255, null=True
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("date", models.DateField(blank=True, db_column="Date", null=True)),
|
|
|
|
(
|
|
|
|
"version",
|
|
|
|
models.CharField(
|
|
|
|
blank=True, db_column="Version", max_length=255, null=True
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"shop_lead_notified",
|
|
|
|
models.DateTimeField(
|
|
|
|
blank=True, db_column="Shop Lead Notified", null=True
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"certification",
|
|
|
|
models.ForeignKey(
|
|
|
|
db_column="Certification",
|
|
|
|
on_delete=django.db.models.deletion.PROTECT,
|
|
|
|
to="paperwork.certificationdefinition",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"member",
|
|
|
|
models.ForeignKey(
|
|
|
|
blank=True,
|
|
|
|
db_column="uid",
|
|
|
|
db_constraint=False,
|
|
|
|
null=True,
|
|
|
|
on_delete=django.db.models.deletion.PROTECT,
|
|
|
|
to="membershipworks.member",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"notes",
|
|
|
|
models.CharField(
|
|
|
|
blank=True, db_column="Notes", max_length=255, null=True
|
|
|
|
),
|
|
|
|
),
|
2022-02-03 16:19:03 -05:00
|
|
|
],
|
|
|
|
options={
|
2022-02-11 13:48:47 -05:00
|
|
|
"db_table": "Certifications",
|
2022-02-03 16:19:03 -05:00
|
|
|
},
|
|
|
|
),
|
|
|
|
]
|