add pos device - fix closed quotas pagination

This commit is contained in:
2025-07-24 16:02:08 +03:30
parent f8dbe0ab29
commit 18fd27a9c4
9 changed files with 246 additions and 31 deletions

View File

@@ -1,10 +1,17 @@
from django.db import models
from apps.core.models import BaseModel
from apps.authentication.models import Organization
from django.contrib.postgres.fields import ArrayField
from apps.authorization.models import UserRelations
from apps.core.models import BaseModel
from django.db import models
class ProviderCompany(BaseModel):
user_relation = models.ForeignKey(
UserRelations,
related_name='pos_provider',
on_delete=models.CASCADE,
null=True
)
name_fa = models.CharField(max_length=250, null=True)
name_en = models.CharField(max_length=250, null=True)
activation = models.BooleanField(default=False)