484 lines
21 KiB
Python
484 lines
21 KiB
Python
# Generated by Django 5.2.8 on 2025-11-27 12:17
|
|
|
|
import uuid
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
initial = True
|
|
|
|
dependencies = []
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="Account",
|
|
fields=[
|
|
(
|
|
"created_at",
|
|
models.DateTimeField(auto_now_add=True, verbose_name="Created At"),
|
|
),
|
|
(
|
|
"updated_at",
|
|
models.DateTimeField(
|
|
auto_now=True, verbose_name="Last Modified At"
|
|
),
|
|
),
|
|
(
|
|
"id",
|
|
models.UUIDField(
|
|
db_index=True,
|
|
default=uuid.uuid4,
|
|
editable=False,
|
|
primary_key=True,
|
|
serialize=False,
|
|
unique=True,
|
|
),
|
|
),
|
|
("name", models.CharField(max_length=255, verbose_name="Account Name")),
|
|
(
|
|
"email",
|
|
models.EmailField(
|
|
blank=True, max_length=254, null=True, verbose_name="Email"
|
|
),
|
|
),
|
|
(
|
|
"phone",
|
|
models.CharField(
|
|
blank=True,
|
|
max_length=20,
|
|
null=True,
|
|
verbose_name="Phone",
|
|
),
|
|
),
|
|
(
|
|
"website",
|
|
models.URLField(blank=True, null=True, verbose_name="Website"),
|
|
),
|
|
(
|
|
"industry",
|
|
models.CharField(
|
|
blank=True,
|
|
choices=[
|
|
("ADVERTISING", "ADVERTISING"),
|
|
("AGRICULTURE", "AGRICULTURE"),
|
|
("APPAREL & ACCESSORIES", "APPAREL & ACCESSORIES"),
|
|
("AUTOMOTIVE", "AUTOMOTIVE"),
|
|
("BANKING", "BANKING"),
|
|
("BIOTECHNOLOGY", "BIOTECHNOLOGY"),
|
|
(
|
|
"BUILDING MATERIALS & EQUIPMENT",
|
|
"BUILDING MATERIALS & EQUIPMENT",
|
|
),
|
|
("CHEMICAL", "CHEMICAL"),
|
|
("COMPUTER", "COMPUTER"),
|
|
("EDUCATION", "EDUCATION"),
|
|
("ELECTRONICS", "ELECTRONICS"),
|
|
("ENERGY", "ENERGY"),
|
|
("ENTERTAINMENT & LEISURE", "ENTERTAINMENT & LEISURE"),
|
|
("FINANCE", "FINANCE"),
|
|
("FOOD & BEVERAGE", "FOOD & BEVERAGE"),
|
|
("GROCERY", "GROCERY"),
|
|
("HEALTHCARE", "HEALTHCARE"),
|
|
("INSURANCE", "INSURANCE"),
|
|
("LEGAL", "LEGAL"),
|
|
("MANUFACTURING", "MANUFACTURING"),
|
|
("PUBLISHING", "PUBLISHING"),
|
|
("REAL ESTATE", "REAL ESTATE"),
|
|
("SERVICE", "SERVICE"),
|
|
("SOFTWARE", "SOFTWARE"),
|
|
("SPORTS", "SPORTS"),
|
|
("TECHNOLOGY", "TECHNOLOGY"),
|
|
("TELECOMMUNICATIONS", "TELECOMMUNICATIONS"),
|
|
("TELEVISION", "TELEVISION"),
|
|
("TRANSPORTATION", "TRANSPORTATION"),
|
|
("VENTURE CAPITAL", "VENTURE CAPITAL"),
|
|
],
|
|
max_length=255,
|
|
null=True,
|
|
verbose_name="Industry",
|
|
),
|
|
),
|
|
(
|
|
"number_of_employees",
|
|
models.PositiveIntegerField(
|
|
blank=True, null=True, verbose_name="Number of Employees"
|
|
),
|
|
),
|
|
(
|
|
"annual_revenue",
|
|
models.DecimalField(
|
|
blank=True,
|
|
decimal_places=2,
|
|
max_digits=15,
|
|
null=True,
|
|
verbose_name="Annual Revenue",
|
|
),
|
|
),
|
|
(
|
|
"address_line",
|
|
models.CharField(
|
|
blank=True, max_length=255, null=True, verbose_name="Address"
|
|
),
|
|
),
|
|
(
|
|
"city",
|
|
models.CharField(
|
|
blank=True, max_length=255, null=True, verbose_name="City"
|
|
),
|
|
),
|
|
(
|
|
"state",
|
|
models.CharField(
|
|
blank=True, max_length=255, null=True, verbose_name="State"
|
|
),
|
|
),
|
|
(
|
|
"postcode",
|
|
models.CharField(
|
|
blank=True, max_length=64, null=True, verbose_name="Postal Code"
|
|
),
|
|
),
|
|
(
|
|
"country",
|
|
models.CharField(
|
|
blank=True,
|
|
choices=[
|
|
("GB", "United Kingdom"),
|
|
("AF", "Afghanistan"),
|
|
("AX", "Aland Islands"),
|
|
("AL", "Albania"),
|
|
("DZ", "Algeria"),
|
|
("AS", "American Samoa"),
|
|
("AD", "Andorra"),
|
|
("AO", "Angola"),
|
|
("AI", "Anguilla"),
|
|
("AQ", "Antarctica"),
|
|
("AG", "Antigua and Barbuda"),
|
|
("AR", "Argentina"),
|
|
("AM", "Armenia"),
|
|
("AW", "Aruba"),
|
|
("AU", "Australia"),
|
|
("AT", "Austria"),
|
|
("AZ", "Azerbaijan"),
|
|
("BS", "Bahamas"),
|
|
("BH", "Bahrain"),
|
|
("BD", "Bangladesh"),
|
|
("BB", "Barbados"),
|
|
("BY", "Belarus"),
|
|
("BE", "Belgium"),
|
|
("BZ", "Belize"),
|
|
("BJ", "Benin"),
|
|
("BM", "Bermuda"),
|
|
("BT", "Bhutan"),
|
|
("BO", "Bolivia"),
|
|
("BA", "Bosnia and Herzegovina"),
|
|
("BW", "Botswana"),
|
|
("BV", "Bouvet Island"),
|
|
("BR", "Brazil"),
|
|
("IO", "British Indian Ocean Territory"),
|
|
("BN", "Brunei Darussalam"),
|
|
("BG", "Bulgaria"),
|
|
("BF", "Burkina Faso"),
|
|
("BI", "Burundi"),
|
|
("KH", "Cambodia"),
|
|
("CM", "Cameroon"),
|
|
("CA", "Canada"),
|
|
("CV", "Cape Verde"),
|
|
("KY", "Cayman Islands"),
|
|
("CF", "Central African Republic"),
|
|
("TD", "Chad"),
|
|
("CL", "Chile"),
|
|
("CN", "China"),
|
|
("CX", "Christmas Island"),
|
|
("CC", "Cocos (Keeling) Islands"),
|
|
("CO", "Colombia"),
|
|
("KM", "Comoros"),
|
|
("CG", "Congo"),
|
|
("CD", "Congo, The Democratic Republic of the"),
|
|
("CK", "Cook Islands"),
|
|
("CR", "Costa Rica"),
|
|
("CI", "Cote d'Ivoire"),
|
|
("HR", "Croatia"),
|
|
("CU", "Cuba"),
|
|
("CY", "Cyprus"),
|
|
("CZ", "Czech Republic"),
|
|
("DK", "Denmark"),
|
|
("DJ", "Djibouti"),
|
|
("DM", "Dominica"),
|
|
("DO", "Dominican Republic"),
|
|
("EC", "Ecuador"),
|
|
("EG", "Egypt"),
|
|
("SV", "El Salvador"),
|
|
("GQ", "Equatorial Guinea"),
|
|
("ER", "Eritrea"),
|
|
("EE", "Estonia"),
|
|
("ET", "Ethiopia"),
|
|
("FK", "Falkland Islands (Malvinas)"),
|
|
("FO", "Faroe Islands"),
|
|
("FJ", "Fiji"),
|
|
("FI", "Finland"),
|
|
("FR", "France"),
|
|
("GF", "French Guiana"),
|
|
("PF", "French Polynesia"),
|
|
("TF", "French Southern Territories"),
|
|
("GA", "Gabon"),
|
|
("GM", "Gambia"),
|
|
("GE", "Georgia"),
|
|
("DE", "Germany"),
|
|
("GH", "Ghana"),
|
|
("GI", "Gibraltar"),
|
|
("GR", "Greece"),
|
|
("GL", "Greenland"),
|
|
("GD", "Grenada"),
|
|
("GP", "Guadeloupe"),
|
|
("GU", "Guam"),
|
|
("GT", "Guatemala"),
|
|
("GG", "Guernsey"),
|
|
("GN", "Guinea"),
|
|
("GW", "Guinea-Bissau"),
|
|
("GY", "Guyana"),
|
|
("HT", "Haiti"),
|
|
("HM", "Heard Island and McDonald Islands"),
|
|
("VA", "Holy See (Vatican City State)"),
|
|
("HN", "Honduras"),
|
|
("HK", "Hong Kong"),
|
|
("HU", "Hungary"),
|
|
("IS", "Iceland"),
|
|
("IN", "India"),
|
|
("ID", "Indonesia"),
|
|
("IR", "Iran, Islamic Republic of"),
|
|
("IQ", "Iraq"),
|
|
("IE", "Ireland"),
|
|
("IM", "Isle of Man"),
|
|
("IL", "Israel"),
|
|
("IT", "Italy"),
|
|
("JM", "Jamaica"),
|
|
("JP", "Japan"),
|
|
("JE", "Jersey"),
|
|
("JO", "Jordan"),
|
|
("KZ", "Kazakhstan"),
|
|
("KE", "Kenya"),
|
|
("KI", "Kiribati"),
|
|
("KP", "Korea, Democratic People's Republic of"),
|
|
("KR", "Korea, Republic of"),
|
|
("KW", "Kuwait"),
|
|
("KG", "Kyrgyzstan"),
|
|
("LA", "Lao People's Democratic Republic"),
|
|
("LV", "Latvia"),
|
|
("LB", "Lebanon"),
|
|
("LS", "Lesotho"),
|
|
("LR", "Liberia"),
|
|
("LY", "Libyan Arab Jamahiriya"),
|
|
("LI", "Liechtenstein"),
|
|
("LT", "Lithuania"),
|
|
("LU", "Luxembourg"),
|
|
("MO", "Macao"),
|
|
("MK", "Macedonia, The Former Yugoslav Republic of"),
|
|
("MG", "Madagascar"),
|
|
("MW", "Malawi"),
|
|
("MY", "Malaysia"),
|
|
("MV", "Maldives"),
|
|
("ML", "Mali"),
|
|
("MT", "Malta"),
|
|
("MH", "Marshall Islands"),
|
|
("MQ", "Martinique"),
|
|
("MR", "Mauritania"),
|
|
("MU", "Mauritius"),
|
|
("YT", "Mayotte"),
|
|
("MX", "Mexico"),
|
|
("FM", "Micronesia, Federated States of"),
|
|
("MD", "Moldova"),
|
|
("MC", "Monaco"),
|
|
("MN", "Mongolia"),
|
|
("ME", "Montenegro"),
|
|
("MS", "Montserrat"),
|
|
("MA", "Morocco"),
|
|
("MZ", "Mozambique"),
|
|
("MM", "Myanmar"),
|
|
("NA", "Namibia"),
|
|
("NR", "Nauru"),
|
|
("NP", "Nepal"),
|
|
("NL", "Netherlands"),
|
|
("AN", "Netherlands Antilles"),
|
|
("NC", "New Caledonia"),
|
|
("NZ", "New Zealand"),
|
|
("NI", "Nicaragua"),
|
|
("NE", "Niger"),
|
|
("NG", "Nigeria"),
|
|
("NU", "Niue"),
|
|
("NF", "Norfolk Island"),
|
|
("MP", "Northern Mariana Islands"),
|
|
("NO", "Norway"),
|
|
("OM", "Oman"),
|
|
("PK", "Pakistan"),
|
|
("PW", "Palau"),
|
|
("PS", "Palestinian Territory, Occupied"),
|
|
("PA", "Panama"),
|
|
("PG", "Papua New Guinea"),
|
|
("PY", "Paraguay"),
|
|
("PE", "Peru"),
|
|
("PH", "Philippines"),
|
|
("PN", "Pitcairn"),
|
|
("PL", "Poland"),
|
|
("PT", "Portugal"),
|
|
("PR", "Puerto Rico"),
|
|
("QA", "Qatar"),
|
|
("RE", "Reunion"),
|
|
("RO", "Romania"),
|
|
("RU", "Russian Federation"),
|
|
("RW", "Rwanda"),
|
|
("BL", "Saint Barthelemy"),
|
|
("SH", "Saint Helena"),
|
|
("KN", "Saint Kitts and Nevis"),
|
|
("LC", "Saint Lucia"),
|
|
("MF", "Saint Martin"),
|
|
("PM", "Saint Pierre and Miquelon"),
|
|
("VC", "Saint Vincent and the Grenadines"),
|
|
("WS", "Samoa"),
|
|
("SM", "San Marino"),
|
|
("ST", "Sao Tome and Principe"),
|
|
("SA", "Saudi Arabia"),
|
|
("SN", "Senegal"),
|
|
("RS", "Serbia"),
|
|
("SC", "Seychelles"),
|
|
("SL", "Sierra Leone"),
|
|
("SG", "Singapore"),
|
|
("SK", "Slovakia"),
|
|
("SI", "Slovenia"),
|
|
("SB", "Solomon Islands"),
|
|
("SO", "Somalia"),
|
|
("ZA", "South Africa"),
|
|
("GS", "South Georgia and the South Sandwich Islands"),
|
|
("ES", "Spain"),
|
|
("LK", "Sri Lanka"),
|
|
("SD", "Sudan"),
|
|
("SR", "Suriname"),
|
|
("SJ", "Svalbard and Jan Mayen"),
|
|
("SZ", "Swaziland"),
|
|
("SE", "Sweden"),
|
|
("CH", "Switzerland"),
|
|
("SY", "Syrian Arab Republic"),
|
|
("TW", "Taiwan, Province of China"),
|
|
("TJ", "Tajikistan"),
|
|
("TZ", "Tanzania, United Republic of"),
|
|
("TH", "Thailand"),
|
|
("TL", "Timor-Leste"),
|
|
("TG", "Togo"),
|
|
("TK", "Tokelau"),
|
|
("TO", "Tonga"),
|
|
("TT", "Trinidad and Tobago"),
|
|
("TN", "Tunisia"),
|
|
("TR", "Turkey"),
|
|
("TM", "Turkmenistan"),
|
|
("TC", "Turks and Caicos Islands"),
|
|
("TV", "Tuvalu"),
|
|
("UG", "Uganda"),
|
|
("UA", "Ukraine"),
|
|
("AE", "United Arab Emirates"),
|
|
("US", "United States"),
|
|
("UM", "United States Minor Outlying Islands"),
|
|
("UY", "Uruguay"),
|
|
("UZ", "Uzbekistan"),
|
|
("VU", "Vanuatu"),
|
|
("VE", "Venezuela"),
|
|
("VN", "Viet Nam"),
|
|
("VG", "Virgin Islands, British"),
|
|
("VI", "Virgin Islands, U.S."),
|
|
("WF", "Wallis and Futuna"),
|
|
("EH", "Western Sahara"),
|
|
("YE", "Yemen"),
|
|
("ZM", "Zambia"),
|
|
("ZW", "Zimbabwe"),
|
|
],
|
|
max_length=3,
|
|
null=True,
|
|
verbose_name="Country",
|
|
),
|
|
),
|
|
(
|
|
"description",
|
|
models.TextField(blank=True, null=True, verbose_name="Notes"),
|
|
),
|
|
("is_active", models.BooleanField(default=True)),
|
|
],
|
|
options={
|
|
"verbose_name": "Account",
|
|
"verbose_name_plural": "Accounts",
|
|
"db_table": "accounts",
|
|
"ordering": ("-created_at",),
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="AccountEmail",
|
|
fields=[
|
|
(
|
|
"created_at",
|
|
models.DateTimeField(auto_now_add=True, verbose_name="Created At"),
|
|
),
|
|
(
|
|
"updated_at",
|
|
models.DateTimeField(
|
|
auto_now=True, verbose_name="Last Modified At"
|
|
),
|
|
),
|
|
(
|
|
"id",
|
|
models.UUIDField(
|
|
db_index=True,
|
|
default=uuid.uuid4,
|
|
editable=False,
|
|
primary_key=True,
|
|
serialize=False,
|
|
unique=True,
|
|
),
|
|
),
|
|
("message_subject", models.TextField(null=True)),
|
|
("message_body", models.TextField(null=True)),
|
|
("timezone", models.CharField(default="UTC", max_length=100)),
|
|
("scheduled_date_time", models.DateTimeField(null=True)),
|
|
("scheduled_later", models.BooleanField(default=False)),
|
|
("from_email", models.EmailField(max_length=254)),
|
|
("rendered_message_body", models.TextField(null=True)),
|
|
],
|
|
options={
|
|
"verbose_name": "Account Email",
|
|
"verbose_name_plural": "Account Emails",
|
|
"db_table": "account_email",
|
|
"ordering": ("-created_at",),
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name="AccountEmailLog",
|
|
fields=[
|
|
(
|
|
"created_at",
|
|
models.DateTimeField(auto_now_add=True, verbose_name="Created At"),
|
|
),
|
|
(
|
|
"updated_at",
|
|
models.DateTimeField(
|
|
auto_now=True, verbose_name="Last Modified At"
|
|
),
|
|
),
|
|
(
|
|
"id",
|
|
models.UUIDField(
|
|
db_index=True,
|
|
default=uuid.uuid4,
|
|
editable=False,
|
|
primary_key=True,
|
|
serialize=False,
|
|
unique=True,
|
|
),
|
|
),
|
|
("is_sent", models.BooleanField(default=False)),
|
|
],
|
|
options={
|
|
"verbose_name": "EmailLog",
|
|
"verbose_name_plural": "EmailLogs",
|
|
"db_table": "emailLogs",
|
|
"ordering": ("-created_at",),
|
|
},
|
|
),
|
|
]
|