add mac field to device model

This commit is contained in:
2025-09-14 11:20:25 +03:30
parent ea904c2fd2
commit 88c8a55bcb
2 changed files with 19 additions and 0 deletions

View File

@@ -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),
),
]

View File

@@ -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)