SHKeeper
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
import uuid
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [("members", "0001_initial")]
|
||||
operations = [
|
||||
migrations.AddField(model_name="account", name="last_shkeeper_sync", field=models.DateTimeField(null=True)),
|
||||
migrations.CreateModel(name="CryptoInvoice", fields=[
|
||||
("id", models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
|
||||
("tier", models.CharField(max_length=48)),
|
||||
("usd_amount", models.DecimalField(max_digits=12, decimal_places=2)),
|
||||
("crypto", models.CharField(max_length=32)),
|
||||
("provider_id", models.CharField(blank=True, max_length=128)),
|
||||
("wallet", models.CharField(blank=True, max_length=512)),
|
||||
("crypto_amount", models.CharField(blank=True, max_length=128)),
|
||||
("status", models.CharField(default="creating", max_length=24)),
|
||||
("credited_at", models.DateTimeField(null=True)),
|
||||
("access_start", models.DateTimeField(null=True)),
|
||||
("access_end", models.DateTimeField(db_index=True, null=True)),
|
||||
("last_checked_at", models.DateTimeField(null=True)),
|
||||
("created_at", models.DateTimeField(auto_now_add=True)),
|
||||
("account", models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to="members.account")),
|
||||
], options={"constraints": [models.UniqueConstraint(condition=models.Q(credited_at__isnull=True), fields=("account",), name="one_uncredited_crypto_invoice")]}),
|
||||
]
|
||||
Reference in New Issue
Block a user