From 88c8a55bcb62ed44289879de7912bce4c299216d Mon Sep 17 00:00:00 2001 From: Mojtaba-z Date: Sun, 14 Sep 2025 11:20:25 +0330 Subject: [PATCH] add mac field to device model --- apps/pos_device/migrations/0073_device_mac.py | 18 ++++++++++++++++++ apps/pos_device/models.py | 1 + 2 files changed, 19 insertions(+) create mode 100644 apps/pos_device/migrations/0073_device_mac.py diff --git a/apps/pos_device/migrations/0073_device_mac.py b/apps/pos_device/migrations/0073_device_mac.py new file mode 100644 index 0000000..bd16329 --- /dev/null +++ b/apps/pos_device/migrations/0073_device_mac.py @@ -0,0 +1,18 @@ +# Generated by Django 5.0 on 2025-09-14 07:49 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('pos_device', '0072_stakeholdershareamount_registering_organization'), + ] + + operations = [ + migrations.AddField( + model_name='device', + name='mac', + field=models.CharField(max_length=50, null=True), + ), + ] diff --git a/apps/pos_device/models.py b/apps/pos_device/models.py index 6ee0e9a..54221fa 100644 --- a/apps/pos_device/models.py +++ b/apps/pos_device/models.py @@ -33,6 +33,7 @@ class Device(BaseModel): device_identity = models.CharField(max_length=25, null=True) acceptor = models.CharField(max_length=50, null=True) terminal = models.CharField(max_length=50, null=True) + mac = models.CharField(max_length=50, null=True) serial = models.TextField(null=True, unique=True) password = models.CharField(max_length=25, null=True) multi_device = models.BooleanField(default=False)