ERD استخراجشده از مدلها
Mermaid ER diagram - روابط قطعی فقط در صورت استخراج مستقیم تکمیل میشوند.
erDiagram
COMPANY {
string name_en
string name_fa
string abbreviation
string logo
}
PROJECT {
string name
string name_fa
string company
string company_name
string key
string logo
string image
string primary_color
string secondary_color
string description
}
PROVINCE {
string name
}
CITY {
string name
string province
boolean is_active
}
REGION {
string name
string verbose_name
string city
}
DISTRICT {
string verbose_name
number no
string city
}
ACTIVECITY {
string city
string project
}
FIELDVALIDATION {
string name
number min_value
number max_value
string value_error_msg_en
string value_error_msg_fa
number min_lenght
number max_lenght
string lenght_error_msg_en
string lenght_error_msg_fa
boolean is_mandatory
}
ROLE {
string title
string title_abbreviation
string verbose_name
string description
number priority
boolean is_active
}
ROLEASSIGNMENT {
string user
string role
boolean is_deleted
string project
}
EXTENDEDUSER {
string MANAGER
string CUSTOMER
string PROMOTER
string SUPPORT
string ROLES
string FORM_NOT_COMPLETE
string FORM_COMPLETE
string READY_TO_ASSIGN
string STATUS
string user
}
DOCUMENT {
string name
string verbose_name
string abbreviation
string description
boolean is_mandatory
}
DOCUMENTPHOTO {
string NOT_CHECKED
string CONFIRMED
string REJECTED
string CONFIRMATION_CHOICES
string user
string document
string file
datetime datetime_created
datetime datetime_last_change
string supervisor_confirm
}
OTP {
string phone_number
string otp
string verification_token
datetime datetime_requested
}
Company
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
name_en | CharField | نیازمند بررسی | - | - | name_en = models.CharField(max_length=255, blank=True, null=True, default=None) |
name_fa | CharField | نیازمند بررسی | - | - | name_fa = models.CharField(max_length=255, blank=True, null=True, default=None) |
abbreviation | CharField | نیازمند بررسی | - | - | abbreviation = models.CharField(max_length=255, blank=True, null=True, default=None) |
logo | TextField | نیازمند بررسی | - | - | logo = models.TextField(blank=True, null=True, default=None) |
منابع کد
auth_app/models.py:16- Company
Project
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
name | CharField | نیازمند بررسی | - | - | name = models.CharField(max_length=255, blank=True, null=True, default=None) |
name_fa | CharField | نیازمند بررسی | - | - | name_fa = models.CharField(max_length=255, blank=True, null=True, default=None) |
company | ForeignKey | نیازمند بررسی | - | - | company = models.ForeignKey(Company, on_delete=models.CASCADE, blank=True, null=True, default=None) |
company_name | CharField | نیازمند بررسی | - | - | company_name = models.CharField(max_length=255, blank=True, null=True, default=None) |
key | CharField | نیازمند بررسی | - | - | key = models.CharField(max_length=20, blank=True, null=True, default=None) |
logo | TextField | نیازمند بررسی | - | - | logo = models.TextField(blank=True, null=True, default=None) |
image | TextField | نیازمند بررسی | - | - | image = models.TextField(blank=True, null=True, default=None) |
primary_color | CharField | نیازمند بررسی | - | - | primary_color = models.CharField(max_length=20, blank=True, null=True, default=None) |
secondary_color | CharField | نیازمند بررسی | - | - | secondary_color = models.CharField(max_length=20, blank=True, null=True, default=None) |
description | TextField | نیازمند بررسی | - | - | description = models.TextField(blank=True, null=True, default=None) |
is_active | BooleanField | نیازمند بررسی | - | - | is_active = models.BooleanField(blank=True, default=True) |
promoting_type | CharField | نیازمند بررسی | - | - | promoting_type = models.CharField(max_length=20, blank=True, null=True, default=None) |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(blank=True, null=True, default=None) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(blank=True, null=True, default=None) |
منابع کد
auth_app/models.py:26- Project
Province
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
name | CharField | نیازمند بررسی | - | - | name = models.CharField(max_length=35) |
منابع کد
auth_app/models.py:50- Province
City
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
name | CharField | نیازمند بررسی | - | - | name = models.CharField(max_length=35) |
province | ForeignKey | نیازمند بررسی | - | - | province = models.ForeignKey(Province, on_delete=models.CASCADE) |
is_active | BooleanField | نیازمند بررسی | - | - | is_active = models.BooleanField(default=False, blank=True) |
منابع کد
auth_app/models.py:54- City
Region
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
name | CharField | نیازمند بررسی | - | - | name = models.CharField(max_length=35, blank=True, null=True, default=None) |
verbose_name | CharField | نیازمند بررسی | - | - | verbose_name = models.CharField(max_length=35, blank=True, null=True, default=None) |
city | ForeignKey | نیازمند بررسی | - | - | city = models.ForeignKey(City, on_delete=models.CASCADE, blank=True, null=True, default=None) |
منابع کد
auth_app/models.py:65- Region
District
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
verbose_name | CharField | نیازمند بررسی | - | - | verbose_name = models.CharField(max_length=35, blank=True, null=True, default=None) |
no | IntegerField | نیازمند بررسی | - | - | no = models.IntegerField(blank=True, null=True, default=None) |
city | ForeignKey | نیازمند بررسی | - | - | city = models.ForeignKey(City, on_delete=models.CASCADE, blank=True, null=True, default=None) |
منابع کد
auth_app/models.py:71- District
ActiveCity
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
city | ForeignKey | نیازمند بررسی | - | - | city = models.ForeignKey(City, on_delete=models.CASCADE) |
project | ForeignKey | نیازمند بررسی | - | - | project = models.ForeignKey(Project, on_delete=models.CASCADE) |
منابع کد
auth_app/models.py:77- ActiveCity
FieldValidation
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
name | CharField | نیازمند بررسی | - | - | name = models.CharField(max_length=30, blank=True, null=True, default=None) |
min_value | BigIntegerField | نیازمند بررسی | - | - | min_value = models.BigIntegerField(blank=True, null=True, default=None) |
max_value | BigIntegerField | نیازمند بررسی | - | - | max_value = models.BigIntegerField(blank=True, null=True, default=None) |
value_error_msg_en | CharField | نیازمند بررسی | - | - | value_error_msg_en = models.CharField(max_length=255, blank=True, null=True, default=None) |
value_error_msg_fa | CharField | نیازمند بررسی | - | - | value_error_msg_fa = models.CharField(max_length=255, blank=True, null=True, default=None) |
min_lenght | IntegerField | نیازمند بررسی | - | - | min_lenght = models.IntegerField(blank=True, null=True, default=None) |
max_lenght | IntegerField | نیازمند بررسی | - | - | max_lenght = models.IntegerField(blank=True, null=True, default=None) |
lenght_error_msg_en | CharField | نیازمند بررسی | - | - | lenght_error_msg_en = models.CharField(max_length=255, blank=True, null=True, default=None) |
lenght_error_msg_fa | CharField | نیازمند بررسی | - | - | lenght_error_msg_fa = models.CharField(max_length=255, blank=True, null=True, default=None) |
is_mandatory | BooleanField | نیازمند بررسی | - | - | is_mandatory = models.BooleanField(blank=True, default=False) |
mandatory_error_msg_en | CharField | نیازمند بررسی | - | - | mandatory_error_msg_en = models.CharField(max_length=255, blank=True, null=True, default=None) |
mandatory_error_msg_fa | CharField | نیازمند بررسی | - | - | mandatory_error_msg_fa = models.CharField(max_length=255, blank=True, null=True, default=None) |
regex | CharField | نیازمند بررسی | - | - | regex = models.CharField(max_length=255, blank=True, null=True, default=None) |
regex_error_msg_en | CharField | نیازمند بررسی | - | - | regex_error_msg_en = models.CharField(max_length=255, blank=True, null=True, default=None) |
regex_error_msg_fa | CharField | نیازمند بررسی | - | - | regex_error_msg_fa = models.CharField(max_length=255, blank=True, null=True, default=None) |
min_choice_count | IntegerField | نیازمند بررسی | - | - | min_choice_count = models.IntegerField(blank=True, null=True, default=None) |
max_choice_count | IntegerField | نیازمند بررسی | - | - | max_choice_count = models.IntegerField(blank=True, null=True, default=None) |
choice_count_error_msg_en | CharField | نیازمند بررسی | - | - | choice_count_error_msg_en = models.CharField(max_length=255, blank=True, null=True, default=None) |
choice_count_error_msg_fa | CharField | نیازمند بررسی | - | - | choice_count_error_msg_fa = models.CharField(max_length=255, blank=True, null=True, default=None) |
منابع کد
auth_app/models.py:85- FieldValidation
Role
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
title | CharField | نیازمند بررسی | - | - | title = models.CharField(max_length=25, help_text="Manager, Customer") |
title_abbreviation | CharField | نیازمند بررسی | - | - | title_abbreviation = models.CharField(max_length=1, help_text="M, C") |
verbose_name | CharField | نیازمند بررسی | - | - | verbose_name = models.CharField(max_length=40, blank=True, null=True, default=None) |
description | TextField | نیازمند بررسی | - | - | description = models.TextField(blank=True, null=True, default=None) |
priority | IntegerField | نیازمند بررسی | - | - | priority = models.IntegerField(blank=True, default=0) |
is_active | BooleanField | نیازمند بررسی | - | - | is_active = models.BooleanField(blank=True, default=True) |
منابع کد
auth_app/models.py:108- Role
RoleAssignment
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
user | ForeignKey | نیازمند بررسی | - | - | user = models.ForeignKey(User, on_delete=models.CASCADE, related_name='auth_app_roleassignment') |
role | ForeignKey | نیازمند بررسی | - | - | role = models.ForeignKey(Role, on_delete=models.CASCADE) |
is_deleted | BooleanField | نیازمند بررسی | - | - | is_deleted = models.BooleanField(blank=True, default=False) |
project | ForeignKey | نیازمند بررسی | - | - | project = models.ForeignKey(Project, on_delete=models.CASCADE, null=True, default=None) |
منابع کد
auth_app/models.py:117- RoleAssignment
ExtendedUser
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
MANAGER | نیازمند بررسی | نیازمند بررسی | - | - | MANAGER = 'M' |
CUSTOMER | نیازمند بررسی | نیازمند بررسی | - | - | CUSTOMER = 'C' |
PROMOTER | نیازمند بررسی | نیازمند بررسی | - | - | PROMOTER = 'P' |
SUPPORT | نیازمند بررسی | نیازمند بررسی | - | - | SUPPORT = 'S' |
ROLES | نیازمند بررسی | نیازمند بررسی | - | - | ROLES = ( |
FORM_NOT_COMPLETE | نیازمند بررسی | نیازمند بررسی | - | - | FORM_NOT_COMPLETE = 'F_N_C' |
FORM_COMPLETE | نیازمند بررسی | نیازمند بررسی | - | - | FORM_COMPLETE = 'F_C' |
READY_TO_ASSIGN | نیازمند بررسی | نیازمند بررسی | - | - | READY_TO_ASSIGN = 'R' |
STATUS | نیازمند بررسی | نیازمند بررسی | - | - | STATUS = ( |
user | OneToOneField | نیازمند بررسی | - | - | user = models.OneToOneField(User, on_delete=models.CASCADE) |
full_name | CharField | نیازمند بررسی | - | - | full_name = models.CharField(max_length=80, blank=True, null=True, default=None) |
national_code | CharField | نیازمند بررسی | - | - | national_code = models.CharField(max_length=10, blank=True, null=True) |
role | CharField | نیازمند بررسی | - | - | role = models.CharField(choices=ROLES, max_length=1, default=PROMOTER) |
roles | ManyToManyField | نیازمند بررسی | - | - | roles = models.ManyToManyField(Role, help_text=_('user roles'), blank=True) |
province | ForeignKey | نیازمند بررسی | - | - | province = models.ForeignKey(Province, on_delete=models.CASCADE, blank=True, null=True, default=None) |
city | ForeignKey | نیازمند بررسی | - | - | city = models.ForeignKey(City, on_delete=models.CASCADE, blank=True, null=True, default=None) |
insurance_number | CharField | نیازمند بررسی | - | - | insurance_number = models.CharField(max_length=255, blank=True, null=True) |
iban | CharField | نیازمند بررسی | - | - | iban = models.CharField(max_length=24, blank=True, null=True) |
birthـcertificateـnumber | CharField | نیازمند بررسی | - | - | birthـcertificateـnumber = models.CharField(max_length=30, blank=True, null=True, verbose_name='شماره شناسنامه') |
birthday | DateField | نیازمند بررسی | - | - | birthday = models.DateField(blank=True, null=True, verbose_name='') |
gender | BooleanField | نیازمند بررسی | - | - | gender = models.BooleanField(blank=True, null=True, default=False) |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(auto_now_add=True, blank=True, null=True) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(auto_now=True, blank=True, null=True) |
status | CharField | نیازمند بررسی | - | - | status = models.CharField(choices=STATUS, max_length=20, default=READY_TO_ASSIGN, blank=True, null=True) |
منابع کد
auth_app/models.py:128- ExtendedUser
Document
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
name | CharField | نیازمند بررسی | - | - | name = models.CharField(max_length=255, blank=True, null=True, default=None) |
verbose_name | CharField | نیازمند بررسی | - | - | verbose_name = models.CharField(max_length=255, blank=True, null=True, default=None) |
abbreviation | CharField | نیازمند بررسی | - | - | abbreviation = models.CharField(max_length=255, blank=True, null=True, default=None) |
description | TextField | نیازمند بررسی | - | - | description = models.TextField(blank=True, null=True, default=None) |
is_mandatory | BooleanField | نیازمند بررسی | - | - | is_mandatory = models.BooleanField(default=False) |
منابع کد
auth_app/models.py:212- Document
DocumentPhoto
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
NOT_CHECKED | نیازمند بررسی | نیازمند بررسی | - | - | NOT_CHECKED = 'NOT_CHECKED' |
CONFIRMED | نیازمند بررسی | نیازمند بررسی | - | - | CONFIRMED = 'CONFIRMED' |
REJECTED | نیازمند بررسی | نیازمند بررسی | - | - | REJECTED = 'REJECTED' |
CONFIRMATION_CHOICES | نیازمند بررسی | نیازمند بررسی | - | - | CONFIRMATION_CHOICES = ( |
user | ForeignKey | نیازمند بررسی | - | - | user = models.ForeignKey(User, on_delete=models.CASCADE) |
document | ForeignKey | نیازمند بررسی | - | - | document = models.ForeignKey(Document, on_delete=models.CASCADE, blank=True, null=True, default=None) |
file | TextField | نیازمند بررسی | - | - | file = models.TextField(blank=True, null=True, default=None) |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(auto_now_add=True, blank=True) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(auto_now=True, blank=True, null=True) |
supervisor_confirm | CharField | نیازمند بررسی | - | - | supervisor_confirm = models.CharField(max_length=12, blank=True, choices=CONFIRMATION_CHOICES, |
is_deleted | BooleanField | نیازمند بررسی | - | - | is_deleted = models.BooleanField(default=False, blank=True) |
is_checked | BooleanField | نیازمند بررسی | - | - | is_checked = models.BooleanField(default=False, blank=True) |
confirm_status | CharField | نیازمند بررسی | - | - | confirm_status = models.CharField(max_length=12, blank=True, choices=CONFIRMATION_CHOICES, |
منابع کد
auth_app/models.py:223- DocumentPhoto
OTP
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
phone_number | CharField | نیازمند بررسی | - | - | phone_number = models.CharField(max_length=16) |
otp | CharField | نیازمند بررسی | - | - | otp = models.CharField(max_length=5, blank=True) |
verification_token | TextField | نیازمند بررسی | - | - | verification_token = models.TextField(blank=True) |
datetime_requested | DateTimeField | نیازمند بررسی | - | - | datetime_requested = models.DateTimeField(blank=True, null=True, default=None) |
منابع کد
auth_app/models.py:249- OTP
SupervisorChangeLog
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
supervisor_record | ForeignKey | نیازمند بررسی | - | - | supervisor_record = models.ForeignKey('Supervisor', on_delete=models.CASCADE) |
created | BooleanField | نیازمند بررسی | - | - | created = models.BooleanField(blank=True, default=False) |
is_active_set_to | BooleanField | نیازمند بررسی | - | - | is_active_set_to = models.BooleanField(blank=True, default=False) |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(blank=True) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(blank=True) |
منابع کد
auth_app/models.py:262- SupervisorChangeLog
Supervisor
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
supervisor | ForeignKey | نیازمند بررسی | - | - | supervisor = models.ForeignKey(User, on_delete=models.CASCADE, related_name='Supervisor_Supervisor') |
promoter | ForeignKey | نیازمند بررسی | - | - | promoter = models.ForeignKey(User, on_delete=models.CASCADE, related_name='Supervisor_Promoter') |
project | ForeignKey | نیازمند بررسی | - | - | project = models.ForeignKey(Project, on_delete=models.CASCADE) |
is_active | BooleanField | نیازمند بررسی | - | - | is_active = models.BooleanField(blank=True, default=True) |
منابع کد
auth_app/models.py:279- Supervisor
AdminMenu
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
project | ForeignKey | نیازمند بررسی | - | - | project = models.ForeignKey(Project, on_delete=models.CASCADE) |
role | ForeignKey | نیازمند بررسی | - | - | role = models.ForeignKey(Role, on_delete=models.CASCADE) |
parent | ForeignKey | نیازمند بررسی | - | - | parent = models.ForeignKey('AdminMenu', on_delete=models.CASCADE, related_name='parent_menu', null=True, blank=True, |
has_submenu | BooleanField | نیازمند بررسی | - | - | has_submenu = models.BooleanField(blank=True, default=False) |
priority | IntegerField | نیازمند بررسی | - | - | priority = models.IntegerField() |
name | CharField | نیازمند بررسی | - | - | name = models.CharField(max_length=40, blank=True, null=True, default=None) |
verbose_name | CharField | نیازمند بررسی | - | - | verbose_name = models.CharField(max_length=60, blank=True, null=True, default=None) |
active_icon | TextField | نیازمند بررسی | - | - | active_icon = models.TextField(blank=True, null=True, default=None) |
deactive_icon | TextField | نیازمند بررسی | - | - | deactive_icon = models.TextField(blank=True, null=True, default=None) |
has_iframe | BooleanField | نیازمند بررسی | - | - | has_iframe = models.BooleanField(blank=True, default=False) |
iframe_link | TextField | نیازمند بررسی | - | - | iframe_link = models.TextField(blank=True, null=True, default=None) |
frontend_route_name | CharField | نیازمند بررسی | - | - | frontend_route_name = models.CharField(max_length=80, blank=True, null=True, default=None) |
frontend_route_url | CharField | نیازمند بررسی | - | - | frontend_route_url = models.CharField(max_length=255, blank=True, null=True, default=None) |
frontend_api_queryparams | CharField | نیازمند بررسی | - | - | frontend_api_queryparams = models.CharField(max_length=255, blank=True, null=True, default=None) |
frontend_route_params | JSONField | نیازمند بررسی | - | - | frontend_route_params = models.JSONField(blank=True, null=True, default=None) |
is_active | BooleanField | نیازمند بررسی | - | - | is_active = models.BooleanField(blank=True, default=True) |
منابع کد
auth_app/models.py:312- AdminMenu
QuestionAnswerTypeValidation
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
VISITAPP | نیازمند بررسی | نیازمند بررسی | - | - | VISITAPP = 'V' |
SURVEYAPP | نیازمند بررسی | نیازمند بررسی | - | - | SURVEYAPP = 'S' |
IS_FOR | نیازمند بررسی | نیازمند بررسی | - | - | IS_FOR = ( |
is_for | CharField | نیازمند بررسی | - | - | is_for = models.CharField(max_length=1, blank=True, default='V', choices=IS_FOR) |
visit_question | ForeignKey | نیازمند بررسی | - | - | visit_question = models.ForeignKey(Question, on_delete=models.CASCADE, blank=True, null=True, default=None) |
survey_question | ForeignKey | نیازمند بررسی | - | - | survey_question = models.ForeignKey(SurveyQuestion, on_delete=models.CASCADE, blank=True, null=True, default=None) |
validation | ForeignKey | نیازمند بررسی | - | - | validation = models.ForeignKey(FieldValidation, on_delete=models.CASCADE, blank=True, null=True, default=None) |
answer_type | ForeignKey | نیازمند بررسی | - | - | answer_type = models.ForeignKey(AnswerType, on_delete=models.CASCADE) |
منابع کد
auth_app/models.py:336- QuestionAnswerTypeValidation
UploadedFile
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
EDUCATION | نیازمند بررسی | نیازمند بررسی | - | - | EDUCATION = 'EDU' |
ETC | نیازمند بررسی | نیازمند بررسی | - | - | ETC = "ETC" |
TYPE_CHOICES | نیازمند بررسی | نیازمند بررسی | - | - | TYPE_CHOICES = ( |
file | TextField | نیازمند بررسی | - | - | file = models.TextField(blank=True, null=True, default=None) |
name | CharField | نیازمند بررسی | - | - | name = models.CharField(max_length=40, blank=True, null=True, default=None) |
type | CharField | نیازمند بررسی | - | - | type = models.CharField(max_length=3, blank=True, null=True, default=None, choices=TYPE_CHOICES) |
description | TextField | نیازمند بررسی | - | - | description = models.TextField(blank=True, null=True, default=None) |
icon | TextField | نیازمند بررسی | - | - | icon = models.TextField(blank=True, null=True, default=None) |
uploaded_by | ForeignKey | نیازمند بررسی | - | - | uploaded_by = models.ForeignKey(User, on_delete=models.CASCADE, blank=True, null=True, default=None) |
project | ForeignKey | نیازمند بررسی | - | - | project = models.ForeignKey(Project, on_delete=models.CASCADE, blank=True, null=True, default=None) |
is_deleted | BooleanField | نیازمند بررسی | - | - | is_deleted = models.BooleanField(blank=True, default=False) |
priority | IntegerField | نیازمند بررسی | - | - | priority = models.IntegerField(blank=True, default=0) |
منابع کد
auth_app/models.py:350- UploadedFile
AuthenticationImage
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
user | ForeignKey | نیازمند بررسی | - | - | user = models.ForeignKey(User, on_delete=models.CASCADE, blank=True) |
image | TextField | نیازمند بررسی | - | - | image = models.TextField(blank=True) |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(blank=True, null=True, default=None) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(blank=True, null=True, default=None) |
منابع کد
auth_app/models.py:368- AuthenticationImage
AuthenticationValidationLog
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
creator | ForeignKey | نیازمند بررسی | - | - | creator = models.ForeignKey(User, on_delete=models.CASCADE, blank=True, null=True, default=None) |
survey_fillout | ForeignKey | نیازمند بررسی | - | - | survey_fillout = models.ForeignKey(SurveyFillOut, on_delete=models.CASCADE, blank=True, null=True, default=None) |
visit | ForeignKey | نیازمند بررسی | - | - | visit = models.ForeignKey(Visit, on_delete=models.CASCADE, blank=True, null=True, default=None) |
national_id | CharField | نیازمند بررسی | - | - | national_id = models.CharField(max_length=12, blank=True, null=True, default=None) |
phone_number | CharField | نیازمند بررسی | - | - | phone_number = models.CharField(max_length=20, blank=True, null=True, default=None) |
sheba_number | CharField | نیازمند بررسی | - | - | sheba_number = models.CharField(max_length=50, blank=True, null=True, default=None) |
sheba_message | TextField | نیازمند بررسی | - | - | sheba_message = models.TextField(blank=True, null=True, default=None) |
phone_message | TextField | نیازمند بررسی | - | - | phone_message = models.TextField(blank=True, null=True, default=None) |
birth_date | CharField | نیازمند بررسی | - | - | birth_date = models.CharField(max_length=50, blank=True, null=True, default=None) |
message | ForeignKey | نیازمند بررسی | - | - | message = models.ForeignKey(Config, on_delete=models.CASCADE, blank=True, null=True, default=None) |
is_sheba_valid | BooleanField | نیازمند بررسی | - | - | is_sheba_valid = models.BooleanField(blank=True, default=False) |
is_phone_valid | BooleanField | نیازمند بررسی | - | - | is_phone_valid = models.BooleanField(blank=True, default=False) |
is_valid | BooleanField | نیازمند بررسی | - | - | is_valid = models.BooleanField(blank=True, default=False) |
is_new | BooleanField | نیازمند بررسی | - | - | is_new = models.BooleanField(blank=True, default=False) |
is_main | BooleanField | نیازمند بررسی | - | - | is_main = models.BooleanField(blank=True, default=False) |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(auto_now_add=True, blank=True, null=True) |
منابع کد
auth_app/models.py:384- AuthenticationValidationLog
ViewMethod
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
GET | نیازمند بررسی | نیازمند بررسی | - | - | GET = 'GET' |
POST | نیازمند بررسی | نیازمند بررسی | - | - | POST = "POST" |
PUT | نیازمند بررسی | نیازمند بررسی | - | - | PUT = "PUT" |
DELETE | نیازمند بررسی | نیازمند بررسی | - | - | DELETE = "DELETE" |
OPTIONS | نیازمند بررسی | نیازمند بررسی | - | - | OPTIONS = "OPTIONS" |
PATCH | نیازمند بررسی | نیازمند بررسی | - | - | PATCH = "PATCH" |
METHOD_CHOICES | نیازمند بررسی | نیازمند بررسی | - | - | METHOD_CHOICES = ( |
view_name | CharField | نیازمند بررسی | - | - | view_name = models.CharField(_('view name'), max_length=255, blank=False, null=False) |
method | CharField | نیازمند بررسی | - | - | method = models.CharField(_('method name'), max_length=10, blank=True, null=True, default=None, |
منابع کد
auth_app/models.py:405- ViewMethod
RoleView
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
role | ForeignKey | نیازمند بررسی | - | - | role = models.ForeignKey(Role, on_delete=models.CASCADE) |
view_method_name | ForeignKey | نیازمند بررسی | - | - | view_method_name = models.ForeignKey(ViewMethod, on_delete=models.CASCADE) |
can_create | BooleanField | نیازمند بررسی | - | - | can_create = models.BooleanField(blank=True, default=False) |
can_update | BooleanField | نیازمند بررسی | - | - | can_update = models.BooleanField(blank=True, default=False) |
can_delete | BooleanField | نیازمند بررسی | - | - | can_delete = models.BooleanField(blank=True, default=False) |
can_view | BooleanField | نیازمند بررسی | - | - | can_view = models.BooleanField(blank=True, default=False) |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(auto_now_add=True, blank=True) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(auto_now=True, blank=True, null=True) |
منابع کد
auth_app/models.py:428- RoleView
ModelField
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
model_name | CharField | نیازمند بررسی | - | - | model_name = models.CharField(max_length=255, blank=False, null=False) |
field_name | CharField | نیازمند بررسی | - | - | field_name = models.CharField(max_length=255, blank=False, null=False) |
field_type | CharField | نیازمند بررسی | - | - | field_type = models.CharField(max_length=255, blank=False, null=False) |
منابع کد
auth_app/models.py:439- ModelField
RoleViewModelField
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
role_view | ForeignKey | نیازمند بررسی | - | - | role_view = models.ForeignKey(RoleView, on_delete=models.CASCADE) |
model_field | ForeignKey | نیازمند بررسی | - | - | model_field = models.ForeignKey(ModelField, on_delete=models.CASCADE) |
can_update | BooleanField | نیازمند بررسی | - | - | can_update = models.BooleanField(blank=True, default=False) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(auto_now=True, blank=True, null=True) |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(auto_now_add=True, blank=True) |
منابع کد
auth_app/models.py:445- RoleViewModelField
Limiter
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
key | CharField | نیازمند بررسی | - | - | key = models.CharField(max_length=255, blank=True, null=True, default=None) |
value | CharField | نیازمند بررسی | - | - | value = models.CharField(max_length=255, blank=True, null=True, default=None) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(auto_now=True, blank=True, null=True) |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(auto_now_add=True, blank=True) |
منابع کد
auth_app/models.py:453- Limiter
RoleViewLimiter
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
role_view | ForeignKey | نیازمند بررسی | - | - | role_view = models.ForeignKey(RoleView, on_delete=models.CASCADE) |
limiter | ForeignKey | نیازمند بررسی | - | - | limiter = models.ForeignKey(Limiter, on_delete=models.CASCADE) |
is_active | BooleanField | نیازمند بررسی | - | - | is_active = models.BooleanField(blank=True, default=False) |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(auto_now_add=True, blank=True) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(auto_now=True, blank=True, null=True) |
منابع کد
auth_app/models.py:460- RoleViewLimiter
LogLimiter
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
key | CharField | نیازمند بررسی | - | - | key = models.CharField(max_length=255, blank=True, null=True, default=None) |
value | CharField | نیازمند بررسی | - | - | value = models.CharField(max_length=255, blank=True, null=True, default=None) |
model | CharField | نیازمند بررسی | - | - | model = models.CharField(max_length=255, blank=True, null=True, default=None) |
view_name | CharField | نیازمند بررسی | - | - | view_name = models.CharField(max_length=255, blank=True, null=True, default=None) |
is_get | BooleanField | نیازمند بررسی | - | - | is_get = models.BooleanField(blank=True, default=False) |
is_put | BooleanField | نیازمند بررسی | - | - | is_put = models.BooleanField(blank=True, default=False) |
is_patch | BooleanField | نیازمند بررسی | - | - | is_patch = models.BooleanField(blank=True, default=False) |
is_options | BooleanField | نیازمند بررسی | - | - | is_options = models.BooleanField(blank=True, default=False) |
is_delete | BooleanField | نیازمند بررسی | - | - | is_delete = models.BooleanField(blank=True, default=False) |
is_post | BooleanField | نیازمند بررسی | - | - | is_post = models.BooleanField(blank=True, default=False) |
is_solved | BooleanField | نیازمند بررسی | - | - | is_solved = models.BooleanField(blank=True, default=False) |
user | CharField | نیازمند بررسی | - | - | user = models.CharField(max_length=255, blank=True, null=True, default=None) |
project | CharField | نیازمند بررسی | - | - | project = models.CharField(max_length=255, blank=True, null=True, default=None) |
role_view_limiter | ForeignKey | نیازمند بررسی | - | - | role_view_limiter = models.ForeignKey(RoleViewLimiter, on_delete=models.CASCADE) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(auto_now=True, blank=True, null=True) |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(auto_now_add=True, blank=True) |
منابع کد
auth_app/models.py:468- LogLimiter
Config
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
key | CharField | نیازمند بررسی | - | - | key = models.CharField(max_length=255, unique=True) |
value | TextField | نیازمند بررسی | - | - | value = models.TextField(blank=True, null=True, default=None) |
category | CharField | نیازمند بررسی | - | - | category = models.CharField(max_length=50, blank=True, null=True, default=None) |
منابع کد
config/models.py:10- Config
AddIn
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
key | CharField | نیازمند بررسی | - | - | key = models.CharField(max_length=24) |
name | CharField | نیازمند بررسی | - | - | name = models.CharField(max_length=40, blank=True, null=True, default=None) |
verbose_name | CharField | نیازمند بررسی | - | - | verbose_name = models.CharField(max_length=40, blank=True, null=True, default=None) |
app_model_name | CharField | نیازمند بررسی | - | - | app_model_name = models.CharField(max_length=150, blank=True, null=True, default=None) |
is_active | BooleanField | نیازمند بررسی | - | - | is_active = models.BooleanField(blank=True, default=True) |
منابع کد
config/models.py:15- AddIn
NavMenu
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
title | CharField | نیازمند بررسی | - | - | title = models.CharField(max_length=255, blank=True, null=True, default=None) |
title_fa | CharField | نیازمند بررسی | - | - | title_fa = models.CharField(max_length=254, blank=True, null=True, default=None) |
active_icon | TextField | نیازمند بررسی | - | - | active_icon = models.TextField(blank=True, null=True, default=None) |
active_icon_thumbnail | TextField | نیازمند بررسی | - | - | active_icon_thumbnail = models.TextField(blank=True, null=True, default=None) |
deactive_icon | TextField | نیازمند بررسی | - | - | deactive_icon = models.TextField(blank=True, null=True, default=None) |
deactive_icon_thumbnail | TextField | نیازمند بررسی | - | - | deactive_icon_thumbnail = models.TextField(blank=True, null=True, default=None) |
priority | IntegerField | نیازمند بررسی | - | - | priority = models.IntegerField(blank=True, null=True, default=None) |
role | ForeignKey | نیازمند بررسی | - | - | role = models.ForeignKey(Role, on_delete=models.CASCADE, null=True, blank=True) |
is_landing | BooleanField | نیازمند بررسی | - | - | is_landing = models.BooleanField(default=False) |
route | CharField | نیازمند بررسی | - | - | route = models.CharField(max_length=255, blank=True, null=True, default=None) |
منابع کد
config/models.py:23- NavMenu
MediaType
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
title | CharField | نیازمند بررسی | - | - | title = models.CharField(max_length=255, blank=True, null=True, default=None) |
title_fa | CharField | نیازمند بررسی | - | - | title_fa = models.CharField(max_length=255, blank=True, null=True, default=None) |
is_active | BooleanField | نیازمند بررسی | - | - | is_active = models.BooleanField(blank=True, null=True, default=True) |
منابع کد
config/models.py:35- MediaType
MediaManager
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
title | CharField | نیازمند بررسی | - | - | title = models.CharField(max_length=255, blank=True, null=True, default=None) |
title_fa | CharField | نیازمند بررسی | - | - | title_fa = models.CharField(max_length=254, blank=True, null=True, default=None) |
image_1 | TextField | نیازمند بررسی | - | - | image_1 = models.TextField(blank=True, null=True, default=None) |
image_1_alter | CharField | نیازمند بررسی | - | - | image_1_alter = models.CharField(max_length=40, blank=True, null=True, default=None) |
image_1_thumbnail | TextField | نیازمند بررسی | - | - | image_1_thumbnail = models.TextField(blank=True, null=True, default=None) |
image_2 | TextField | نیازمند بررسی | - | - | image_2 = models.TextField(blank=True, null=True, default=None) |
image_2_alter | CharField | نیازمند بررسی | - | - | image_2_alter = models.CharField(max_length=40, blank=True, null=True, default=None) |
image_2_thumbnail | TextField | نیازمند بررسی | - | - | image_2_thumbnail = models.TextField(blank=True, null=True, default=None) |
client | IntegerField | نیازمند بررسی | - | - | client = models.IntegerField(choices=Client.choices, blank=True, null=True, default=None) |
type | ForeignKey | نیازمند بررسی | - | - | type = models.ForeignKey(MediaType, on_delete=models.CASCADE, blank=True, null=True, default=None) |
redirect_url | TextField | نیازمند بررسی | - | - | redirect_url = models.TextField(max_length=255, blank=True, null=True, default=None) |
page_url | TextField | نیازمند بررسی | - | - | page_url = models.TextField(max_length=255, blank=True, null=True, default=None) |
is_active | BooleanField | نیازمند بررسی | - | - | is_active = models.BooleanField(default=False, blank=True) |
body_copy | TextField | نیازمند بررسی | - | - | body_copy = models.TextField(blank=True, null=True, default=None) |
منابع کد
config/models.py:44- MediaManager
TagType
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
name | CharField | نیازمند بررسی | - | - | name = models.CharField(max_length=40, null=True, default=None, blank=True) |
verbose | CharField | نیازمند بررسی | - | - | verbose = models.CharField(max_length=40, null=True, default=None, blank=True) |
منابع کد
config/models.py:72- TagType
TagManager
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
title | CharField | نیازمند بررسی | - | - | title = models.CharField(max_length=255, null=True, default=None, blank=True) |
title_fa | CharField | نیازمند بررسی | - | - | title_fa = models.CharField(max_length=255, null=True, default=None, blank=True) |
type | ForeignKey | نیازمند بررسی | - | - | type = models.ForeignKey(TagType, on_delete=models.CASCADE, blank=True, null=True, default=None) |
icon | TextField | نیازمند بررسی | - | - | icon = models.TextField(null=True, default=None) |
icon_thumbnail | TextField | نیازمند بررسی | - | - | icon_thumbnail = models.TextField(null=True, default=None) |
image | TextField | نیازمند بررسی | - | - | image = models.TextField(null=True, default=None) |
image_thumbnail | TextField | نیازمند بررسی | - | - | image_thumbnail = models.TextField(null=True, default=None) |
priority | IntegerField | نیازمند بررسی | - | - | priority = models.IntegerField(blank=True, default=0) |
is_active | BooleanField | نیازمند بررسی | - | - | is_active = models.BooleanField(blank=True, null=True, default=True) |
is_visible | BooleanField | نیازمند بررسی | - | - | is_visible = models.BooleanField(blank=True, null=True, default=True) |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(auto_now_add=True, null=True, blank=True) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(auto_now=True, null=True, blank=True) |
منابع کد
config/models.py:77- TagManager
SpecificationType
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
name | CharField | نیازمند بررسی | - | - | name = models.CharField(max_length=25) |
verbose_name | CharField | نیازمند بررسی | - | - | verbose_name = models.CharField(max_length=32, blank=True, null=True, default=None) |
category | CharField | نیازمند بررسی | - | - | category = models.CharField(max_length=25, blank=True, null=True, default=None) |
initial | BooleanField | نیازمند بررسی | - | - | initial = models.BooleanField(blank=True, default=False) |
منابع کد
main/models.py:12- SpecificationType
Company
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
name_en | CharField | نیازمند بررسی | - | - | name_en = models.CharField(max_length=255, blank=True, null=True, default=None) |
name_fa | CharField | نیازمند بررسی | - | - | name_fa = models.CharField(max_length=255, blank=True, null=True, default=None) |
abbreviation | CharField | نیازمند بررسی | - | - | abbreviation = models.CharField(max_length=255, blank=True, null=True, default=None) |
logo | TextField | نیازمند بررسی | - | - | logo = models.TextField(blank=True, null=True, default=None) |
منابع کد
main/models.py:18- Company
RequestLog
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
endpoint_url | CharField | نیازمند بررسی | - | - | endpoint_url = models.CharField(max_length=255, null=True) |
method | CharField | نیازمند بررسی | - | - | method = models.CharField(max_length=255, null=True) |
user_name | CharField | نیازمند بررسی | - | - | user_name = models.CharField(max_length=255, null=True) |
response_code | PositiveSmallIntegerField | نیازمند بررسی | - | - | response_code = models.PositiveSmallIntegerField() |
remote_address | CharField | نیازمند بررسی | - | - | remote_address = models.CharField(max_length=20, null=True) |
device_id | CharField | نیازمند بررسی | - | - | device_id = models.CharField(max_length=255, null=True) |
exec_time | IntegerField | نیازمند بررسی | - | - | exec_time = models.IntegerField(null=True) |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField( null=True, blank=True) |
datetime_response_received | DateTimeField | نیازمند بررسی | - | - | datetime_response_received = models.DateTimeField(null=True, blank=True) |
referer | CharField | نیازمند بررسی | - | - | referer = models.CharField(max_length=255, null=True) |
sent_data | CharField | نیازمند بررسی | - | - | sent_data = models.CharField(max_length=2056, null=True) |
منابع کد
main/models.py:28- RequestLog
Country
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
name | CharField | نیازمند بررسی | - | - | name = models.CharField(max_length=35) |
is_active | BooleanField | نیازمند بررسی | - | - | is_active = models.BooleanField(default=False, blank=True) |
منابع کد
main/models.py:41- Country
Province
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
name | CharField | نیازمند بررسی | - | - | name = models.CharField(max_length=35) |
country | ForeignKey | نیازمند بررسی | - | - | country = models.ForeignKey(Country, on_delete=models.CASCADE, blank=True, null=True, default=None) |
is_active | BooleanField | نیازمند بررسی | - | - | is_active = models.BooleanField(default=False, blank=True) |
منابع کد
main/models.py:45- Province
City
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
name | CharField | نیازمند بررسی | - | - | name = models.CharField(max_length=35) |
province | ForeignKey | نیازمند بررسی | - | - | province = models.ForeignKey(Province, on_delete=models.CASCADE) |
is_active | BooleanField | نیازمند بررسی | - | - | is_active = models.BooleanField(default=False, blank=True) |
منابع کد
main/models.py:50- City
Config
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
key | CharField | نیازمند بررسی | - | - | key = models.CharField(max_length=255, unique=True) |
value | TextField | نیازمند بررسی | - | - | value = models.TextField(blank=True, null=True, default=None) |
category | CharField | نیازمند بررسی | - | - | category = models.CharField(max_length=50, blank=True, null=True, default=None) |
منابع کد
main/models.py:60- Config
ViewMethod
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
view_name | CharField | نیازمند بررسی | - | - | view_name = models.CharField(_('view name'), max_length=255) |
method | CharField | نیازمند بررسی | - | - | method = models.CharField(max_length=10, blank=True, null=True, default=None) |
is_public | BooleanField | نیازمند بررسی | - | - | is_public = models.BooleanField(blank=True, default=False) |
منابع کد
main/models.py:70- ViewMethod
Role
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(_('datetime created'), blank=True) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(_('datetime last change'), blank=True) |
role_title | CharField | نیازمند بررسی | - | - | role_title = models.CharField(_('role title'), max_length=90, unique=True) |
description | TextField | نیازمند بررسی | - | - | description = models.TextField(_('role description')) |
allowed_view_methods | ManyToManyField | نیازمند بررسی | - | - | allowed_view_methods = models.ManyToManyField(ViewMethod, help_text=_('any user with this role has permission to'), blank=True) |
منابع کد
main/models.py:81- Role
RoleAssignment
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
user | ForeignKey | نیازمند بررسی | - | - | user = models.ForeignKey(User, on_delete=models.CASCADE) |
role | ForeignKey | نیازمند بررسی | - | - | role = models.ForeignKey(Role, on_delete=models.CASCADE) |
is_deleted | BooleanField | نیازمند بررسی | - | - | is_deleted = models.BooleanField(default=False) |
منابع کد
main/models.py:96- RoleAssignment
Address
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
user | ForeignKey | نیازمند بررسی | - | - | user = models.ForeignKey(User, on_delete=models.CASCADE, blank=True, null=True, default=None) |
title | CharField | نیازمند بررسی | - | - | title = models.CharField(max_length=255, blank=True, null=True, default=None) |
address | TextField | نیازمند بررسی | - | - | address = models.TextField(null=True, blank=True, default=None) |
postal_code | CharField | نیازمند بررسی | - | - | postal_code = models.CharField(max_length=16, null=True, blank=True, default=None) |
type | ForeignKey | نیازمند بررسی | - | - | type = models.ForeignKey(SpecificationType, on_delete=models.CASCADE, related_name='address_type', blank=True, null=True) |
is_deleted | BooleanField | نیازمند بررسی | - | - | is_deleted = models.BooleanField(blank=True, default=False) |
city | ForeignKey | نیازمند بررسی | - | - | city = models.ForeignKey(City, on_delete=models.CASCADE, null=True, blank=True, default=None) |
longitude | DecimalField | نیازمند بررسی | - | - | longitude = models.DecimalField(max_digits=22, decimal_places=16, blank=True, null=True) |
latitude | DecimalField | نیازمند بررسی | - | - | latitude = models.DecimalField(max_digits=22, decimal_places=16, blank=True, null=True) |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(null=True, blank=True, default=None) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(null=True, blank=True, default=None) |
منابع کد
main/models.py:105- Address
Profile
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
user | OneToOneField | نیازمند بررسی | - | - | user = models.OneToOneField(User, on_delete=models.CASCADE, blank=True, null=True, default=None) |
first_name | CharField | نیازمند بررسی | - | - | first_name = models.CharField(max_length=128, null=True, blank=True, default=None) |
last_name | CharField | نیازمند بررسی | - | - | last_name = models.CharField(max_length=128, null=True, blank=True, default=None) |
national_code | CharField | نیازمند بررسی | - | - | national_code = models.CharField(max_length=10, null=True, blank=True, default=None) |
birth_date | DateField | نیازمند بررسی | - | - | birth_date = models.DateField(null=True, blank=True, default=None) |
job | CharField | نیازمند بررسی | - | - | job = models.CharField(max_length=200, null=True, blank=True, default=None) |
sheba | CharField | نیازمند بررسی | - | - | sheba = models.CharField(max_length=26, null=True, blank=True, default=None) |
landline_phone | CharField | نیازمند بررسی | - | - | landline_phone = models.CharField(max_length=32, null=True, blank=True, default=None) |
gender | BooleanField | نیازمند بررسی | - | - | gender = models.BooleanField(blank=True, null=True, default=None) |
city | ForeignKey | نیازمند بررسی | - | - | city = models.ForeignKey(City, on_delete=models.CASCADE, null=True, blank=True, default=None) |
roles | ManyToManyField | نیازمند بررسی | - | - | roles = models.ManyToManyField(Role, help_text=_('user roles'), blank=True) |
job_role | ForeignKey | نیازمند بررسی | - | - | job_role = models.ForeignKey(SpecificationType, on_delete=models.CASCADE, related_name='job_type', blank=True, null=True) |
skin_type | ForeignKey | نیازمند بررسی | - | - | skin_type = models.ForeignKey(SpecificationType, on_delete=models.CASCADE, related_name='skin_type', blank=True, null=True) |
hair_type | ForeignKey | نیازمند بررسی | - | - | hair_type = models.ForeignKey(SpecificationType, on_delete=models.CASCADE, related_name='hair_type', blank=True, null=True) |
منابع کد
main/models.py:128- Profile
PhoneOTP
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
code | CharField | نیازمند بررسی | - | - | code = models.CharField(max_length=5, blank=True) |
phone_number | CharField | نیازمند بررسی | - | - | phone_number = models.CharField(max_length=15) |
datetime_requested | DateTimeField | نیازمند بررسی | - | - | datetime_requested = models.DateTimeField(blank=True) |
verification_token | TextField | نیازمند بررسی | - | - | verification_token = models.TextField(blank=True) |
wrong_answers_count | IntegerField | نیازمند بررسی | - | - | wrong_answers_count = models.IntegerField(blank=True, default=0) |
منابع کد
main/models.py:146- PhoneOTP
MessageTemplate
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
key | CharField | نیازمند بررسی | - | - | key = models.CharField(max_length=30, null=False, blank=False, unique=True) |
type | CharField | نیازمند بررسی | - | - | type = models.CharField(max_length=10, default="SMS") # OR EMAIL |
view | CharField | نیازمند بررسی | - | - | view = models.CharField(max_length=255, blank=True, null=True, default=None) |
path | CharField | نیازمند بررسی | - | - | path = models.CharField(max_length=255, blank=True, null=True, default=None) |
to | CharField | نیازمند بررسی | - | - | to = models.CharField(max_length=100, blank=True, null=True, default=None) |
msg_template | TextField | نیازمند بررسی | - | - | msg_template = models.TextField() |
url_name | CharField | نیازمند بررسی | - | - | url_name = models.CharField(max_length=255, blank=True, null=True, default=None) |
is_deleted | BooleanField | نیازمند بررسی | - | - | is_deleted = models.BooleanField(default=False) |
منابع کد
notification/models.py:6- MessageTemplate
DateConvert
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
jalali_date | CharField | نیازمند بررسی | - | - | jalali_date = models.CharField(max_length=12) |
miladi_datetime | DateTimeField | نیازمند بررسی | - | - | miladi_datetime = models.DateTimeField() |
miladi_date | DateField | نیازمند بررسی | - | - | miladi_date = models.DateField(blank=True, null=True, default=None) |
miladi_year | IntegerField | نیازمند بررسی | - | - | miladi_year = models.IntegerField(null=True, blank=True, default=None) |
miladi_month | IntegerField | نیازمند بررسی | - | - | miladi_month = models.IntegerField(null=True, blank=True, default=None) |
miladi_day | IntegerField | نیازمند بررسی | - | - | miladi_day = models.IntegerField(null=True, blank=True, default=None) |
jalali_year | IntegerField | نیازمند بررسی | - | - | jalali_year = models.IntegerField(null=True, blank=True, default=None) |
jalali_month | IntegerField | نیازمند بررسی | - | - | jalali_month = models.IntegerField(null=True, blank=True, default=None) |
jalali_day | IntegerField | نیازمند بررسی | - | - | jalali_day = models.IntegerField(null=True, blank=True, default=None) |
jalali_month_name | CharField | نیازمند بررسی | - | - | jalali_month_name = models.CharField(max_length=16, null=True, blank=True, default=None) |
miladi_month_name | CharField | نیازمند بررسی | - | - | miladi_month_name = models.CharField(max_length=16, null=True, blank=True, default=None) |
jalali_season_name | CharField | نیازمند بررسی | - | - | jalali_season_name = models.CharField(max_length=16, null=True, blank=True, default=None) |
miladi_season_name | CharField | نیازمند بررسی | - | - | miladi_season_name = models.CharField(max_length=16, null=True, blank=True, default=None) |
jalali_year_quarter | IntegerField | نیازمند بررسی | - | - | jalali_year_quarter = models.IntegerField(null=True, blank=True, default=None) |
miladi_year_quarter | IntegerField | نیازمند بررسی | - | - | miladi_year_quarter = models.IntegerField(null=True, blank=True, default=None) |
miladi_day_of_the_week | IntegerField | نیازمند بررسی | - | - | miladi_day_of_the_week = models.IntegerField(null=True, blank=True, default=None) |
jalali_day_of_the_week | IntegerField | نیازمند بررسی | - | - | jalali_day_of_the_week = models.IntegerField(null=True, blank=True, default=None) |
miladi_week_no | IntegerField | نیازمند بررسی | - | - | miladi_week_no = models.IntegerField(null=True, blank=True, default=None) |
jalali_week_no | IntegerField | نیازمند بررسی | - | - | jalali_week_no = models.IntegerField(null=True, blank=True, default=None) |
custom_week_no | IntegerField | نیازمند بررسی | - | - | custom_week_no = models.IntegerField(null=True, blank=True, default=None) |
project_week_no | IntegerField | نیازمند بررسی | - | - | project_week_no = models.IntegerField(null=True, blank=True, default=None) |
miladi_day_name | CharField | نیازمند بررسی | - | - | miladi_day_name = models.CharField(max_length=10, null=True, blank=True, default=None) |
jalali_day_name | CharField | نیازمند بررسی | - | - | jalali_day_name = models.CharField(max_length=10, null=True, blank=True, default=None) |
منابع کد
report/models.py:7- DateConvert
ReportCensus
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
cencus | ForeignKey | نیازمند بررسی | - | - | cencus = models.ForeignKey(Census, on_delete=models.CASCADE, null=True, default=None, blank=True) |
start_date | CharField | نیازمند بررسی | - | - | start_date = models.CharField(max_length=12) |
boardlable | CharField | نیازمند بررسی | - | - | boardlable = models.CharField(max_length=150, null=True, default=None) |
store_name | CharField | نیازمند بررسی | - | - | store_name = models.CharField(max_length=120, null=True, default=None) |
province | CharField | نیازمند بررسی | - | - | province = models.CharField(max_length=60, null=True, default=None) |
city | CharField | نیازمند بررسی | - | - | city = models.CharField(max_length=60, null=True, default=None) |
منابع کد
report/models.py:42- ReportCensus
DateMatch
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
month | CharField | نیازمند بررسی | - | - | month = models.CharField(max_length=20, null=True, blank=True, default=None) |
datetime | DateTimeField | نیازمند بررسی | - | - | datetime = models.DateTimeField(null=True, blank=True, default=None) |
date | DateField | نیازمند بررسی | - | - | date = models.DateField(null=True, blank=True, default=None) |
number | BigIntegerField | نیازمند بررسی | - | - | number = models.BigIntegerField(null=True, blank=True, default=None) |
منابع کد
report/models.py:50- DateMatch
SurveyReportCategory
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
name | CharField | نیازمند بررسی | - | - | name = models.CharField(max_length=30) |
verbose_name | CharField | نیازمند بررسی | - | - | verbose_name = models.CharField(max_length=30) |
منابع کد
survey/models.py:9- SurveyReportCategory
SurveyQuestionType
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
name | CharField | نیازمند بررسی | - | - | name = models.CharField(max_length=30) |
verbose_name | CharField | نیازمند بررسی | - | - | verbose_name = models.CharField(max_length=40, default="") |
is_mandatory | BooleanField | نیازمند بررسی | - | - | is_mandatory = models.BooleanField(blank=True, default=False) |
survey_report_category | ForeignKey | نیازمند بررسی | - | - | survey_report_category = models.ForeignKey( |
description | TextField | نیازمند بررسی | - | - | description = models.TextField(default="") |
has_score | BooleanField | نیازمند بررسی | - | - | has_score = models.BooleanField(blank=True, default=False) |
score_depends_on | ForeignKey | نیازمند بررسی | - | - | score_depends_on = models.ForeignKey('SurveyQuestionType', related_name="score_depends_on_question_type", on_delete=models.CASCADE, blank=Tr |
score_min | IntegerField | نیازمند بررسی | - | - | score_min = models.IntegerField(blank=True, null=True, default=None) |
score_max | IntegerField | نیازمند بررسی | - | - | score_max = models.IntegerField(blank=True, null=True, default=None) |
prevents_visit_if_score_lte | IntegerField | نیازمند بررسی | - | - | prevents_visit_if_score_lte = models.IntegerField(blank=True, null=True, default=None) |
is_active | BooleanField | نیازمند بررسی | - | - | is_active = models.BooleanField(blank=True, default=True) |
منابع کد
survey/models.py:14- SurveyQuestionType
Survey
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
name | CharField | نیازمند بررسی | - | - | name = models.CharField(max_length=40, blank=True, null=True, default=None) |
project | ForeignKey | نیازمند بررسی | - | - | project = models.ForeignKey(Project, on_delete=models.CASCADE, null=True, default=None) |
category | IntegerField | نیازمند بررسی | - | - | category = models.IntegerField(blank=True, null=True, default=None) |
verbose_name | CharField | نیازمند بررسی | - | - | verbose_name = models.CharField(max_length=40, blank=True, null=True, default=None) |
is_active | BooleanField | نیازمند بررسی | - | - | is_active = models.BooleanField(blank=True, default=True) |
icon | TextField | نیازمند بررسی | - | - | icon = models.TextField(blank=True, null=True, default=None) |
has_phone_verification | BooleanField | نیازمند بررسی | - | - | has_phone_verification = models.BooleanField(blank=True, null=True, default=False) |
sms_text | CharField | نیازمند بررسی | - | - | sms_text = models.CharField(max_length=255, blank=True, null=True, default=None) |
is_mandatory_city | BooleanField | نیازمند بررسی | - | - | is_mandatory_city = models.BooleanField(blank=True, null=True, default=False) |
add_ins | ManyToManyField | نیازمند بررسی | - | - | add_ins = models.ManyToManyField(AddIn) |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(blank=True) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(blank=True) |
منابع کد
survey/models.py:29- Survey
SurveyQuestion
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
survey_question_type | ForeignKey | نیازمند بررسی | - | - | survey_question_type = models.ForeignKey( |
text | TextField | نیازمند بررسی | - | - | text = models.TextField() |
survey | ForeignKey | نیازمند بررسی | - | - | survey = models.ForeignKey(Survey, on_delete=models.CASCADE, null=True, default=1) |
validation | ForeignKey | نیازمند بررسی | - | - | validation = models.ForeignKey(FieldValidation, on_delete=models.CASCADE, null=True, blank=True, default=None) |
short_text | CharField | نیازمند بررسی | - | - | short_text = models.CharField( |
answer_type | ManyToManyField | نیازمند بررسی | - | - | answer_type = models.ManyToManyField(AnswerType) |
has_bool_expected_value | BooleanField | نیازمند بررسی | - | - | has_bool_expected_value = models.BooleanField(blank=True, default=False) |
bool_unexpected_value | BooleanField | نیازمند بررسی | - | - | bool_unexpected_value = models.BooleanField( |
score | IntegerField | نیازمند بررسی | - | - | score = models.IntegerField(blank=True, null=True, default=None) |
priority | IntegerField | نیازمند بررسی | - | - | priority = models.IntegerField(blank=True, null=True, default=None) |
answer_choices | ManyToManyField | نیازمند بررسی | - | - | answer_choices = models.ManyToManyField( |
dropdown_choices | ManyToManyField | نیازمند بررسی | - | - | dropdown_choices = models.ManyToManyField(AnswerChoice, related_name='survey_dropdown_choices') |
radio_choices | ManyToManyField | نیازمند بررسی | - | - | radio_choices = models.ManyToManyField(AnswerChoice, related_name='survey_radio_choices') |
customer_category | CharField | نیازمند بررسی | - | - | customer_category = models.CharField( |
is_mandatory | BooleanField | نیازمند بررسی | - | - | is_mandatory = models.BooleanField(blank=True, default=False) |
is_active | BooleanField | نیازمند بررسی | - | - | is_active = models.BooleanField(default=True, blank=True) |
survey_report_category | ForeignKey | نیازمند بررسی | - | - | survey_report_category = models.ForeignKey( |
description | TextField | نیازمند بررسی | - | - | description = models.TextField(blank=True, null=True, default=None) |
is_for_decision | BooleanField | نیازمند بررسی | - | - | is_for_decision = models.BooleanField(blank=True, default=False) |
decision_rank | IntegerField | نیازمند بررسی | - | - | decision_rank = models.IntegerField(blank=True, null=True, default=None) |
منابع کد
survey/models.py:53- SurveyQuestion
OuterEntryConfig
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
project | ForeignKey | نیازمند بررسی | - | - | project = models.ForeignKey(Project, on_delete=models.CASCADE) |
survey | ForeignKey | نیازمند بررسی | - | - | survey = models.ForeignKey(Survey, on_delete=models.CASCADE, blank=True, null=True, default=None) |
building | ForeignKey | نیازمند بررسی | - | - | building = models.ForeignKey('visit.Building', on_delete=models.CASCADE, blank=True, null=True, default=None) |
url | TextField | نیازمند بررسی | - | - | url = models.TextField(blank=True, null=True, default=None) |
qr_icon | TextField | نیازمند بررسی | - | - | qr_icon = models.TextField(blank=True, null=True, default=None) |
image | TextField | نیازمند بررسی | - | - | image = models.TextField(blank=True, null=True, default=None) |
logo | TextField | نیازمند بررسی | - | - | logo = models.TextField(blank=True, null=True, default=None) |
منابع کد
survey/models.py:85- OuterEntryConfig
SurveyFillOut
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
INITIAL | نیازمند بررسی | نیازمند بررسی | - | - | INITIAL = '0' |
COMPLETED | نیازمند بررسی | نیازمند بررسی | - | - | COMPLETED = '1' |
CONFIRMED | نیازمند بررسی | نیازمند بررسی | - | - | CONFIRMED = '2' |
STATUS_CHOICES | نیازمند بررسی | نیازمند بررسی | - | - | STATUS_CHOICES = ( |
survey | ForeignKey | نیازمند بررسی | - | - | survey = models.ForeignKey(Survey, on_delete=models.CASCADE) |
visit | ForeignKey | نیازمند بررسی | - | - | visit = models.ForeignKey(to='visit.Visit', on_delete=models.CASCADE, blank=True, null=True, default=None) |
outer_entry | ForeignKey | نیازمند بررسی | - | - | outer_entry = models.ForeignKey(OuterEntryConfig, on_delete=models.CASCADE, blank=True, null=True, default=None) |
outer_entry_int_user_id | BigIntegerField | نیازمند بررسی | - | - | outer_entry_int_user_id = models.BigIntegerField(blank=True, null=True, default=None) |
device_id | TextField | نیازمند بررسی | - | - | device_id = models.TextField(blank=True, null=True, default=None) |
user | ForeignKey | نیازمند بررسی | - | - | user = models.ForeignKey(User, on_delete=models.CASCADE, blank=True, null=True, default=None) |
province | ForeignKey | نیازمند بررسی | - | - | province = models.ForeignKey(Province, on_delete=models.CASCADE, null=True, blank=True, default=None) |
city | ForeignKey | نیازمند بررسی | - | - | city = models.ForeignKey(City, on_delete=models.CASCADE, null=True, blank=True, default=None) |
longitude | DecimalField | نیازمند بررسی | - | - | longitude = models.DecimalField( |
latitude | DecimalField | نیازمند بررسی | - | - | latitude = models.DecimalField( |
phone_verified | BooleanField | نیازمند بررسی | - | - | phone_verified = models.BooleanField(blank=True, default=False) |
phone_number | CharField | نیازمند بررسی | - | - | phone_number = models.CharField(max_length=16, blank=True, null=True, default=None) |
is_closed | BooleanField | نیازمند بررسی | - | - | is_closed = models.BooleanField(blank=True, default=False) |
is_deleted | BooleanField | نیازمند بررسی | - | - | is_deleted = models.BooleanField(blank=True, default=False) |
status | CharField | نیازمند بررسی | - | - | status = models.CharField(max_length=1, default='0', choices=STATUS_CHOICES, blank=True) |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(blank=True) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(blank=True) |
منابع کد
survey/models.py:95- SurveyFillOut
FillOutPhoneVerification
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
phone_number | CharField | نیازمند بررسی | - | - | phone_number = models.CharField(max_length=16) |
survey_fill_out | ForeignKey | نیازمند بررسی | - | - | survey_fill_out = models.ForeignKey(SurveyFillOut, on_delete=models.CASCADE) |
code | CharField | نیازمند بررسی | - | - | code = models.CharField(max_length=5, blank=True) |
verification_token | TextField | نیازمند بررسی | - | - | verification_token = models.TextField(blank=True) |
datetime_requested | DateTimeField | نیازمند بررسی | - | - | datetime_requested = models.DateTimeField(blank=True, null=True, default=None) |
منابع کد
survey/models.py:168- FillOutPhoneVerification
SurveyAnswer
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
survey_fill_out | ForeignKey | نیازمند بررسی | - | - | survey_fill_out = models.ForeignKey(SurveyFillOut, on_delete=models.CASCADE, null=True, blank=True, default=None) |
survey_question | ForeignKey | نیازمند بررسی | - | - | survey_question = models.ForeignKey(SurveyQuestion, on_delete=models.CASCADE) |
score | IntegerField | نیازمند بررسی | - | - | score = models.IntegerField(blank=True, null=True, default=None) |
number | IntegerField | نیازمند بررسی | - | - | number = models.IntegerField(blank=True, null=True, default=None) |
bool | BooleanField | نیازمند بررسی | - | - | bool = models.BooleanField(blank=True, null=True, default=None) |
text | CharField | نیازمند بررسی | - | - | text = models.CharField(max_length=255, blank=True, null=True, default=None) |
description | TextField | نیازمند بررسی | - | - | description = models.TextField(blank=True, null=True, default=None) |
price | BigIntegerField | نیازمند بررسی | - | - | price = models.BigIntegerField(blank=True, null=True, default=None) |
multichoice | ManyToManyField | نیازمند بررسی | - | - | multichoice = models.ManyToManyField( |
dropdown | ForeignKey | نیازمند بررسی | - | - | dropdown = models.ForeignKey(AnswerChoice, on_delete=models.CASCADE, blank=True, null=True, default=None, related_name='survey_dropdown') |
radio | ForeignKey | نیازمند بررسی | - | - | radio = models.ForeignKey(AnswerChoice, on_delete=models.CASCADE, blank=True, null=True, default=None, related_name='survey_radio') |
bool_is_expected | BooleanField | نیازمند بررسی | - | - | bool_is_expected = models.BooleanField(blank=True, null=True, default=None) |
longitude | DecimalField | نیازمند بررسی | - | - | longitude = models.DecimalField( |
latitude | DecimalField | نیازمند بررسی | - | - | latitude = models.DecimalField( |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(blank=True, null=True, default=None) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(blank=True, null=True, default=None) |
منابع کد
survey/models.py:181- SurveyAnswer
SurveyPhotoType
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
name | CharField | نیازمند بررسی | - | - | name = models.CharField(max_length=30) |
verbose_name | CharField | نیازمند بررسی | - | - | verbose_name = models.CharField(max_length=40, default="") |
min | IntegerField | نیازمند بررسی | - | - | min = models.IntegerField(blank=True, default=1) |
max | IntegerField | نیازمند بررسی | - | - | max = models.IntegerField(blank=True, default=20) |
survey | ForeignKey | نیازمند بررسی | - | - | survey = models.ForeignKey(Survey, on_delete=models.CASCADE, blank=True, null=True, default=None) |
survey_question | ForeignKey | نیازمند بررسی | - | - | survey_question = models.ForeignKey( |
is_mandatory | BooleanField | نیازمند بررسی | - | - | is_mandatory = models.BooleanField(blank=True, default=False) |
survey_report_category | ForeignKey | نیازمند بررسی | - | - | survey_report_category = models.ForeignKey( |
description | TextField | نیازمند بررسی | - | - | description = models.TextField(default="") |
is_active | BooleanField | نیازمند بررسی | - | - | is_active = models.BooleanField(blank=True, default=True) |
منابع کد
survey/models.py:210- SurveyPhotoType
SurveyPhoto
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
NOT_CHECKED | نیازمند بررسی | نیازمند بررسی | - | - | NOT_CHECKED = 'NOT_CHECKED' |
CONFIRMED | نیازمند بررسی | نیازمند بررسی | - | - | CONFIRMED = 'CONFIRMED' |
REJECTED | نیازمند بررسی | نیازمند بررسی | - | - | REJECTED = 'REJECTED' |
CONFIRMATION_CHOICES | نیازمند بررسی | نیازمند بررسی | - | - | CONFIRMATION_CHOICES = ( |
creator | ForeignKey | نیازمند بررسی | - | - | creator = models.ForeignKey(User, on_delete=models.CASCADE, blank=True, null=True, default=None) |
survey_photo_type | ForeignKey | نیازمند بررسی | - | - | survey_photo_type = models.ForeignKey(SurveyPhotoType, on_delete=models.CASCADE) |
survey_fill_out | ForeignKey | نیازمند بررسی | - | - | survey_fill_out = models.ForeignKey(SurveyFillOut, on_delete=models.CASCADE, null=True, blank=True, default=None) |
link | URLField | نیازمند بررسی | - | - | link = models.URLField(blank=True, null=True, default=None) |
longitude | DecimalField | نیازمند بررسی | - | - | longitude = models.DecimalField( |
latitude | DecimalField | نیازمند بررسی | - | - | latitude = models.DecimalField( |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(blank=True) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(blank=True) |
recognition_status | IntegerField | نیازمند بررسی | - | - | recognition_status = models.IntegerField(blank=True, null=True, default=None) |
supervision_location_confirm | CharField | نیازمند بررسی | - | - | supervision_location_confirm = models.CharField(max_length=12, blank=True, choices=CONFIRMATION_CHOICES, default='NOT_CHECKED') |
supervision_confirm | CharField | نیازمند بررسی | - | - | supervision_confirm = models.CharField(max_length=12, blank=True, choices=CONFIRMATION_CHOICES, default='NOT_CHECKED') |
is_deleted | BooleanField | نیازمند بررسی | - | - | is_deleted = models.BooleanField(default=False, blank=True) |
is_checked | BooleanField | نیازمند بررسی | - | - | is_checked = models.BooleanField(default=False, blank=True) |
is_favourite | BooleanField | نیازمند بررسی | - | - | is_favourite = models.BooleanField(default=False, blank=True) |
منابع کد
survey/models.py:225- SurveyPhoto
SurveyRule
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
title | CharField | نیازمند بررسی | - | - | title = models.CharField(max_length=40) |
description | TextField | نیازمند بررسی | - | - | description = models.TextField(default="") |
score_begin | IntegerField | نیازمند بررسی | - | - | score_begin = models.IntegerField() |
score_end | IntegerField | نیازمند بررسی | - | - | score_end = models.IntegerField() |
result | CharField | نیازمند بررسی | - | - | result = models.CharField(max_length=10) |
is_active | BooleanField | نیازمند بررسی | - | - | is_active = models.BooleanField(default=True) |
survey | ForeignKey | نیازمند بررسی | - | - | survey = models.ForeignKey(Survey, on_delete=models.CASCADE) |
منابع کد
survey/models.py:265- SurveyRule
Plan
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
title | TextField | نیازمند بررسی | - | - | title = models.TextField(max_length=255, blank=True, null=True) |
description | TextField | نیازمند بررسی | - | - | description = models.TextField(max_length=255, blank=True, null=True) |
limited_create_number | IntegerField | نیازمند بررسی | - | - | limited_create_number = models.IntegerField(blank=True, null=True, validators=[MinValueValidator(1)]) |
duration_day | IntegerField | نیازمند بررسی | - | - | duration_day = models.IntegerField(default=90, blank=True, validators=[MinValueValidator(1)], null=True) |
max_length | IntegerField | نیازمند بررسی | - | - | max_length = models.IntegerField(default=8, validators=[MinValueValidator(1)]) |
min_length | IntegerField | نیازمند بررسی | - | - | min_length = models.IntegerField(default=6, validators=[MinValueValidator(1)]) |
extera_back_half_allowed | BooleanField | نیازمند بررسی | - | - | extera_back_half_allowed = models.BooleanField(default=True, blank=True) |
back_half_allowed | BooleanField | نیازمند بررسی | - | - | back_half_allowed = models.BooleanField(default=True, blank=True) |
lower_case_characters | BooleanField | نیازمند بررسی | - | - | lower_case_characters = models.BooleanField(default=True, blank=True) |
number_characters | BooleanField | نیازمند بررسی | - | - | number_characters = models.BooleanField(default=True, blank=True) |
upper_case_characters | BooleanField | نیازمند بررسی | - | - | upper_case_characters = models.BooleanField(default=True, blank=True) |
other_characters | BooleanField | نیازمند بررسی | - | - | other_characters = models.BooleanField(default=True, blank=True) |
eternal_allowed | BooleanField | نیازمند بررسی | - | - | eternal_allowed = models.BooleanField(default=False, blank=True) |
price | IntegerField | نیازمند بررسی | - | - | price = models.IntegerField(blank=True, null=True, default=None) |
has_advertise_plan | BooleanField | نیازمند بررسی | - | - | has_advertise_plan = models.BooleanField(default=False, blank=True) |
has_sms_plan | BooleanField | نیازمند بررسی | - | - | has_sms_plan = models.BooleanField(default=False, blank=True) |
is_active | BooleanField | نیازمند بررسی | - | - | is_active = models.BooleanField(default=True, blank=True) |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(auto_now_add=True, blank=True) |
منابع کد
url_utility/models.py:19- Plan
UserPlan
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
user | ForeignKey | نیازمند بررسی | - | - | user = models.ForeignKey(User, on_delete=models.CASCADE, null=True, blank=True) |
plan | ForeignKey | نیازمند بررسی | - | - | plan = models.ForeignKey(Plan, on_delete=models.CASCADE) |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(auto_now_add=True, blank=True) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(auto_now=True, blank=True) |
is_active | BooleanField | نیازمند بررسی | - | - | is_active = models.BooleanField(default=True) |
expires_at | DateTimeField | نیازمند بررسی | - | - | expires_at = models.DateTimeField(null=True, blank=True) |
is_deleted | BooleanField | نیازمند بررسی | - | - | is_deleted = models.BooleanField(default=False, blank=True) |
منابع کد
url_utility/models.py:72- UserPlan
ShortUrl
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
user_plan | ForeignKey | نیازمند بررسی | - | - | user_plan = models.ForeignKey(UserPlan, on_delete=models.CASCADE) |
long_url | TextField | نیازمند بررسی | - | - | long_url = models.TextField(max_length=255, unique=True) |
url | TextField | نیازمند بررسی | - | - | url = models.TextField(max_length=255, blank=True, null=True) |
title | TextField | نیازمند بررسی | - | - | title = models.TextField(max_length=255, blank=True, null=True) |
description | TextField | نیازمند بررسی | - | - | description = models.TextField(max_length=255, blank=True, null=True) |
is_eternal | BooleanField | نیازمند بررسی | - | - | is_eternal = models.BooleanField(default=False, blank=True) |
back_half | TextField | نیازمند بررسی | - | - | back_half = models.TextField(max_length=255, blank=True, default='') |
is_active | BooleanField | نیازمند بررسی | - | - | is_active = models.BooleanField(default=True, blank=True) |
is_deleted | BooleanField | نیازمند بررسی | - | - | is_deleted = models.BooleanField(default=False, blank=True) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(auto_now=True, blank=True) |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(auto_now_add=True, blank=True) |
domain | CharField | نیازمند بررسی | - | - | domain = models.CharField(max_length=255, blank=True, default=None, null=True) |
منابع کد
url_utility/models.py:106- ShortUrl
ClickLog
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
user_plan | ForeignKey | نیازمند بررسی | - | - | user_plan = models.ForeignKey(UserPlan, on_delete=models.CASCADE, null=True, blank=True) |
ip_address | GenericIPAddressField | نیازمند بررسی | - | - | ip_address = models.GenericIPAddressField(protocol='both', null=True, blank=True) |
short_url | ForeignKey | نیازمند بررسی | - | - | short_url = models.ForeignKey(ShortUrl, on_delete=models.CASCADE, null=True, blank=True) |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(auto_now_add=True, blank=True) |
user_agent | CharField | نیازمند بررسی | - | - | user_agent = models.CharField(max_length=255, null=True, blank=True) |
منابع کد
url_utility/models.py:248- ClickLog
Message
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
type | CharField | نیازمند بررسی | - | - | type = models.CharField(max_length=30, null=False, blank=False) |
msg_pattern | TextField | نیازمند بررسی | - | - | msg_pattern = models.TextField() |
is_deleted | BooleanField | نیازمند بررسی | - | - | is_deleted = models.BooleanField(default=False) |
منابع کد
utils/models.py:8- Message
RequestLog
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
endpoint_url | CharField | نیازمند بررسی | - | - | endpoint_url = models.CharField(max_length=255, null=True) |
method | CharField | نیازمند بررسی | - | - | method = models.CharField(max_length=255, null=True) |
user_name | CharField | نیازمند بررسی | - | - | user_name = models.CharField(max_length=255, null=True) |
response_code | PositiveSmallIntegerField | نیازمند بررسی | - | - | response_code = models.PositiveSmallIntegerField() |
remote_address | CharField | نیازمند بررسی | - | - | remote_address = models.CharField(max_length=20, null=True) |
device_id | CharField | نیازمند بررسی | - | - | device_id = models.CharField(max_length=255, null=True) |
exec_time | IntegerField | نیازمند بررسی | - | - | exec_time = models.IntegerField(null=True) |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField( null=True, blank=True) |
datetime_response_received | DateTimeField | نیازمند بررسی | - | - | datetime_response_received = models.DateTimeField(null=True, blank=True) |
referer | CharField | نیازمند بررسی | - | - | referer = models.CharField(max_length=255, null=True) |
sent_data | CharField | نیازمند بررسی | - | - | sent_data = models.CharField(max_length=2056, null=True) |
منابع کد
utils/models.py:17- RequestLog
Conversation
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
STATUS_CHOICES | نیازمند بررسی | نیازمند بررسی | - | - | STATUS_CHOICES = ( |
TYPE_CHOICES | نیازمند بررسی | نیازمند بررسی | - | - | TYPE_CHOICES = ( |
title | CharField | نیازمند بررسی | - | - | title = models.CharField(max_length=255, null=False, blank=False) |
subject | CharField | نیازمند بررسی | - | - | subject = models.CharField(max_length=255, null=False, blank=False) |
type | IntegerField | نیازمند بررسی | - | - | type = models.IntegerField(choices=TYPE_CHOICES, blank=True, null=True, default=None) |
creator | ForeignKey | نیازمند بررسی | - | - | creator = models.ForeignKey(User, on_delete=models.CASCADE, blank=True, null=True) |
visit | ForeignKey | نیازمند بررسی | - | - | visit = models.ForeignKey(Visit, on_delete=models.CASCADE, blank=True, null=True, default=None) |
elevator | ForeignKey | نیازمند بررسی | - | - | elevator = models.ForeignKey(Elevator, on_delete=models.CASCADE, blank=True, null=True, default=None) |
date_created | DateTimeField | نیازمند بررسی | - | - | date_created = models.DateTimeField(auto_now_add=True, blank=True) |
datetime_last_changed | DateTimeField | نیازمند بررسی | - | - | datetime_last_changed = models.DateTimeField(auto_now=True, blank=True) |
status | IntegerField | نیازمند بررسی | - | - | status = models.IntegerField(choices=STATUS_CHOICES, default=1) |
assigned_role | ForeignKey | نیازمند بررسی | - | - | assigned_role = models.ForeignKey(Role, on_delete=models.CASCADE, blank=True, null=True, default=None) |
assigned_person | ForeignKey | نیازمند بررسی | - | - | assigned_person = models.ForeignKey(RoleAssignment, on_delete=models.CASCADE, blank=True, null=True, default=None) |
is_deleted | BooleanField | نیازمند بررسی | - | - | is_deleted = models.BooleanField(default=False) |
منابع کد
utils/models.py:32- Conversation
ConversationMessage
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
conversation | ForeignKey | نیازمند بررسی | - | - | conversation = models.ForeignKey(Conversation, on_delete=models.CASCADE) |
body | TextField | نیازمند بررسی | - | - | body = models.TextField() |
user | ForeignKey | نیازمند بررسی | - | - | user = models.ForeignKey(User, on_delete=models.CASCADE, blank=True, null=True) |
is_seen | BooleanField | نیازمند بررسی | - | - | is_seen = models.BooleanField(default=False) |
parent | ForeignKey | نیازمند بررسی | - | - | parent = models.ForeignKey('ConversationMessage', null=True, blank=True, on_delete=models.CASCADE, related_name='ConversationMessageParent' |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(auto_now_add=True, blank=True) |
datetime_last_changed | DateTimeField | نیازمند بررسی | - | - | datetime_last_changed = models.DateTimeField(auto_now=True, blank=True) |
is_deleted | BooleanField | نیازمند بررسی | - | - | is_deleted = models.BooleanField(default=False) |
منابع کد
utils/models.py:61- ConversationMessage
MoreInfoKey
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
key | CharField | نیازمند بررسی | - | - | key = models.CharField(max_length=50) |
منابع کد
visit/models.py:5- MoreInfoKey
MoreInfo
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
key | ForeignKey | نیازمند بررسی | - | - | key = models.ForeignKey(MoreInfoKey, on_delete=models.CASCADE) |
value | CharField | نیازمند بررسی | - | - | value = models.CharField(max_length=255, null=True, default=None) |
منابع کد
visit/models.py:8- MoreInfo
AnswerType
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
name | CharField | نیازمند بررسی | - | - | name = models.CharField(max_length=30) |
field | CharField | نیازمند بررسی | - | - | field = models.CharField(max_length=30) |
priority | BigIntegerField | نیازمند بررسی | - | - | priority = models.BigIntegerField(default=1) |
منابع کد
visit/models.py:12- AnswerType
AnswerChoice
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
question | ForeignKey | نیازمند بررسی | - | - | question = models.ForeignKey('Question', related_name="related_question", on_delete=models.CASCADE, blank=True, null=True, default=None) |
answer | CharField | نیازمند بررسی | - | - | answer = models.CharField(max_length=100) |
score | IntegerField | نیازمند بررسی | - | - | score = models.IntegerField(blank=True, null=True, default=None) |
منابع کد
visit/models.py:18- AnswerChoice
VisitType
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
title | CharField | نیازمند بررسی | - | - | title = models.CharField(max_length=40, blank=True, null=True, default=None) |
verbose_name | CharField | نیازمند بررسی | - | - | verbose_name = models.CharField(max_length=40, blank=True, null=True, default=None) |
description | TextField | نیازمند بررسی | - | - | description = models.TextField(blank=True, null=True, default=None) |
has_supervision | BooleanField | نیازمند بررسی | - | - | has_supervision = models.BooleanField(blank=True, default=False) |
is_active | BooleanField | نیازمند بررسی | - | - | is_active = models.BooleanField(blank=True, default=True) |
default_wage | BigIntegerField | نیازمند بررسی | - | - | default_wage = models.BigIntegerField(blank=True, default=0) |
project | ForeignKey | نیازمند بررسی | - | - | project = models.ForeignKey(Project, on_delete=models.CASCADE, blank=True, null=True, default=None) |
surveys | ManyToManyField | نیازمند بررسی | - | - | surveys = models.ManyToManyField(Survey) |
add_ins | ManyToManyField | نیازمند بررسی | - | - | add_ins = models.ManyToManyField(AddIn) |
منابع کد
visit/models.py:25- VisitType
ReportCategory
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
name | CharField | نیازمند بررسی | - | - | name = models.CharField(max_length=30) |
verbose_name | CharField | نیازمند بررسی | - | - | verbose_name = models.CharField(max_length=30) |
project | ForeignKey | نیازمند بررسی | - | - | project = models.ForeignKey(Project, on_delete=models.CASCADE, null=True, default=None) |
visit_type | ForeignKey | نیازمند بررسی | - | - | visit_type = models.ForeignKey(VisitType, on_delete=models.CASCADE, blank=True, null=True, default=None) |
is_for_supervision | BooleanField | نیازمند بررسی | - | - | is_for_supervision = models.BooleanField(blank=True, default=False) |
منابع کد
visit/models.py:38- ReportCategory
QuestionType
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
name | CharField | نیازمند بررسی | - | - | name = models.CharField(max_length=30) |
project | ForeignKey | نیازمند بررسی | - | - | project = models.ForeignKey(Project, on_delete=models.CASCADE, null=True, default=None) |
visit_type | ForeignKey | نیازمند بررسی | - | - | visit_type = models.ForeignKey(VisitType, on_delete=models.CASCADE, blank=True, null=True, default=None) |
verbose_name | CharField | نیازمند بررسی | - | - | verbose_name = models.CharField(max_length=40, default="") |
is_mandatory | BooleanField | نیازمند بررسی | - | - | is_mandatory = models.BooleanField(blank=True, default=False) |
report_category | ForeignKey | نیازمند بررسی | - | - | report_category = models.ForeignKey( |
description | TextField | نیازمند بررسی | - | - | description = models.TextField(default="") |
is_for_supervision | BooleanField | نیازمند بررسی | - | - | is_for_supervision = models.BooleanField(blank=True, default=False) |
is_active | BooleanField | نیازمند بررسی | - | - | is_active = models.BooleanField(blank=True, default=True) |
منابع کد
visit/models.py:45- QuestionType
Question
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
TGENERAL | نیازمند بررسی | نیازمند بررسی | - | - | TGENERAL = 'GE' |
TSHELF | نیازمند بررسی | نیازمند بررسی | - | - | TSHELF = 'SH' |
TSALE | نیازمند بررسی | نیازمند بررسی | - | - | TSALE = 'SA' |
TVIOLATION | نیازمند بررسی | نیازمند بررسی | - | - | TVIOLATION = 'V' |
TFACTOR | نیازمند بررسی | نیازمند بررسی | - | - | TFACTOR = 'FA' |
QUESTIONS_CHOICES | نیازمند بررسی | نیازمند بررسی | - | - | QUESTIONS_CHOICES = ( |
ABOOL | نیازمند بررسی | نیازمند بررسی | - | - | ABOOL = 'YN' |
AMULTICHOICE | نیازمند بررسی | نیازمند بررسی | - | - | AMULTICHOICE = 'MC' |
ASCORE | نیازمند بررسی | نیازمند بررسی | - | - | ASCORE = 'SC' |
ADESC | نیازمند بررسی | نیازمند بررسی | - | - | ADESC = 'DE' |
ANUMBER | نیازمند بررسی | نیازمند بررسی | - | - | ANUMBER = 'NO' |
APRICE | نیازمند بررسی | نیازمند بررسی | - | - | APRICE = 'PR' |
ANSWER_TYPE_CHOICES | نیازمند بررسی | نیازمند بررسی | - | - | ANSWER_TYPE_CHOICES = ( |
type | CharField | نیازمند بررسی | - | - | type = models.CharField(max_length=2, choices=QUESTIONS_CHOICES) |
question_type | ForeignKey | نیازمند بررسی | - | - | question_type = models.ForeignKey( |
text | TextField | نیازمند بررسی | - | - | text = models.TextField() |
short_text | CharField | نیازمند بررسی | - | - | short_text = models.CharField( |
answer_type | ManyToManyField | نیازمند بررسی | - | - | answer_type = models.ManyToManyField(AnswerType) |
has_bool_expected_value | BooleanField | نیازمند بررسی | - | - | has_bool_expected_value = models.BooleanField(blank=True, default=False) |
bool_unexpected_value | BooleanField | نیازمند بررسی | - | - | bool_unexpected_value = models.BooleanField( |
score | IntegerField | نیازمند بررسی | - | - | score = models.IntegerField(blank=True, null=True, default=None) |
priority | IntegerField | نیازمند بررسی | - | - | priority = models.IntegerField(blank=True, null=True, default=None) |
product | ForeignKey | نیازمند بررسی | - | - | product = models.ForeignKey( |
answer_choices | ManyToManyField | نیازمند بررسی | - | - | answer_choices = models.ManyToManyField( |
dropdown_choices | ManyToManyField | نیازمند بررسی | - | - | dropdown_choices = models.ManyToManyField(AnswerChoice, related_name='dropdown_choices') |
radio_choices | ManyToManyField | نیازمند بررسی | - | - | radio_choices = models.ManyToManyField(AnswerChoice, related_name='radio_choices') |
customer_category | CharField | نیازمند بررسی | - | - | customer_category = models.CharField( |
is_mandatory | BooleanField | نیازمند بررسی | - | - | is_mandatory = models.BooleanField(blank=True, default=False) |
is_active | BooleanField | نیازمند بررسی | - | - | is_active = models.BooleanField(default=True, blank=True) |
report_category | ForeignKey | نیازمند بررسی | - | - | report_category = models.ForeignKey( |
description | TextField | نیازمند بررسی | - | - | description = models.TextField(blank=True, null=True, default=None) |
is_for_decision | BooleanField | نیازمند بررسی | - | - | is_for_decision = models.BooleanField(blank=True, default=False) |
decision_rank | IntegerField | نیازمند بررسی | - | - | decision_rank = models.IntegerField(blank=True, null=True, default=None) |
منابع کد
visit/models.py:58- Question
Visit
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
NOTVISITED | نیازمند بررسی | نیازمند بررسی | - | - | NOTVISITED = '0' |
INPROGRESS | نیازمند بررسی | نیازمند بررسی | - | - | INPROGRESS = '1' |
COMPLETED | نیازمند بررسی | نیازمند بررسی | - | - | COMPLETED = '2' |
APPROVED | نیازمند بررسی | نیازمند بررسی | - | - | APPROVED = '3' |
REJECTED | نیازمند بررسی | نیازمند بررسی | - | - | REJECTED = '4' |
RETRY | نیازمند بررسی | نیازمند بررسی | - | - | RETRY = '5' |
SUSPEND | نیازمند بررسی | نیازمند بررسی | - | - | SUSPEND = '6' |
STATUS_CHOICES | نیازمند بررسی | نیازمند بررسی | - | - | STATUS_CHOICES = ( |
type | ForeignKey | نیازمند بررسی | - | - | type = models.ForeignKey(VisitType, on_delete=models.CASCADE, blank=True, null=True, default=None) |
creator | ForeignKey | نیازمند بررسی | - | - | creator = models.ForeignKey( |
expert | ForeignKey | نیازمند بررسی | - | - | expert = models.ForeignKey( |
promoter | ForeignKey | نیازمند بررسی | - | - | promoter = models.ForeignKey( |
building | ForeignKey | نیازمند بررسی | - | - | building = models.ForeignKey('Building', on_delete=models.CASCADE, blank=True, null=True, default=None) |
elevator | ManyToManyField | نیازمند بررسی | - | - | elevator = models.ManyToManyField('Elevator', related_name='visit_elevator', blank=True, null=True, default=None) |
visit_turn | IntegerField | نیازمند بررسی | - | - | visit_turn = models.IntegerField(blank=True, null=True, default=None) |
status | CharField | نیازمند بررسی | - | - | status = models.CharField(max_length=1, choices=STATUS_CHOICES, default='0') |
is_deleted | BooleanField | نیازمند بررسی | - | - | is_deleted = models.BooleanField(blank=True, default=False) |
checked_by | ForeignKey | نیازمند بررسی | - | - | checked_by = models.ForeignKey( |
rejection_reason | TextField | نیازمند بررسی | - | - | rejection_reason = models.TextField(default=None, null=True, blank=True) |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(blank=True) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(blank=True) |
start_datetime | DateTimeField | نیازمند بررسی | - | - | start_datetime = models.DateTimeField(blank=True, null=True, default=None) |
visit_comment | TextField | نیازمند بررسی | - | - | visit_comment = models.TextField(null=True, default=None) |
is_last_day | BooleanField | نیازمند بررسی | - | - | is_last_day = models.BooleanField(blank=True, default=False) |
comment_publisher | ForeignKey | نیازمند بررسی | - | - | comment_publisher = models.ForeignKey( |
prevented_by_score | BooleanField | نیازمند بررسی | - | - | prevented_by_score = models.BooleanField(blank=True, default=False) |
is_active | BooleanField | نیازمند بررسی | - | - | is_active = models.BooleanField(blank=True, default=False) |
is_deleted | BooleanField | نیازمند بررسی | - | - | is_deleted = models.BooleanField(blank=True, default=False) |
has_due_date | BooleanField | نیازمند بررسی | - | - | has_due_date = models.BooleanField(blank=True, default=False) |
due_date | DateField | نیازمند بررسی | - | - | due_date = models.DateField(blank=True, null=True, default=None) |
total_wage | BigIntegerField | نیازمند بررسی | - | - | total_wage = models.BigIntegerField(blank=True, null=True, default=None) |
supervision_status | CharField | نیازمند بررسی | - | - | supervision_status = models.CharField(max_length=1, choices=STATUS_CHOICES, blank=True, default='0') |
منابع کد
visit/models.py:119- Visit
Client
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
CUSTOMER | نیازمند بررسی | نیازمند بررسی | - | - | CUSTOMER = "Customer" |
BUSINESS | نیازمند بررسی | نیازمند بررسی | - | - | BUSINESS = "Business" |
TYPES | نیازمند بررسی | نیازمند بررسی | - | - | TYPES = ( |
name | CharField | نیازمند بررسی | - | - | name = models.CharField(max_length=255, blank=True, null=True, default=None) |
name_fa | CharField | نیازمند بررسی | - | - | name_fa = models.CharField(max_length=255, blank=True, null=True, default=None) |
avatar_photo | TextField | نیازمند بررسی | - | - | avatar_photo = models.TextField(blank=True, null=True, default=None) |
description | TextField | نیازمند بررسی | - | - | description = models.TextField(blank=True, null=True, default=None) |
visit_types | ManyToManyField | نیازمند بررسی | - | - | visit_types = models.ManyToManyField(Visit) |
type | CharField | نیازمند بررسی | - | - | type = models.CharField(max_length=10, choices=TYPES, default="Customer") |
منابع کد
visit/models.py:189- Client
UserClient
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
client | ForeignKey | نیازمند بررسی | - | - | client = models.ForeignKey(Client, on_delete=models.CASCADE) |
user | ForeignKey | نیازمند بررسی | - | - | user = models.ForeignKey(User, on_delete=models.CASCADE) |
منابع کد
visit/models.py:203- UserClient
ProductModel
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
name | CharField | نیازمند بررسی | - | - | name = models.CharField(max_length=255, blank=True, null=True, default=None) |
name_fa | CharField | نیازمند بررسی | - | - | name_fa = models.CharField(max_length=255, blank=True, null=True, default=None) |
model_number | CharField | نیازمند بررسی | - | - | model_number = models.CharField(max_length=255, blank=True, null=True, default=None) |
description | TextField | نیازمند بررسی | - | - | description = models.TextField(blank=True, null=True, default=None) |
model_number | CharField | نیازمند بررسی | - | - | model_number = models.CharField(max_length=20, blank=True, null=True, default=None) |
type | CharField | نیازمند بررسی | - | - | type = models.CharField(max_length=25, blank=True, null=True, default=None) |
منابع کد
visit/models.py:207- ProductModel
Product
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
model | ForeignKey | نیازمند بررسی | - | - | model = models.ForeignKey(ProductModel, on_delete=models.CASCADE, blank=True, null=True, default=None) |
serial_number | CharField | نیازمند بررسی | - | - | serial_number = models.CharField(max_length=255, blank=True, null=True, default=None) |
is_used | BooleanField | نیازمند بررسی | - | - | is_used = models.BooleanField(blank=True, default=False) |
status | CharField | نیازمند بررسی | - | - | status = models.CharField(max_length=25, blank=True, null=True, default=None) |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(blank=True, null=True, default=None) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(blank=True, null=True, default=None) |
منابع کد
visit/models.py:215- Product
Elevator
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
ELEVATOR_TYPE_CHOICES | نیازمند بررسی | نیازمند بررسی | - | - | ELEVATOR_TYPE_CHOICES = [ |
USAGE_TYPE_CHOICES | نیازمند بررسی | نیازمند بررسی | - | - | USAGE_TYPE_CHOICES = [ |
OPERATION_TYPE_CHOICES | نیازمند بررسی | نیازمند بررسی | - | - | OPERATION_TYPE_CHOICES = [ |
MOTOR_TYPE_CHOICES | نیازمند بررسی | نیازمند بررسی | - | - | MOTOR_TYPE_CHOICES = [ |
MOTOR_ENCODER_TYPE_CHOICES | نیازمند بررسی | نیازمند بررسی | - | - | MOTOR_ENCODER_TYPE_CHOICES = [ |
CONTROL_PANEL_TYPE_CHOICES | نیازمند بررسی | نیازمند بررسی | - | - | CONTROL_PANEL_TYPE_CHOICES = [ |
DOOR1_TYPE_CHOICES | نیازمند بررسی | نیازمند بررسی | - | - | DOOR1_TYPE_CHOICES = [ |
DOOR2_TYPE_CHOICES | نیازمند بررسی | نیازمند بررسی | - | - | DOOR2_TYPE_CHOICES = [ |
DOOR3_TYPE_CHOICES | نیازمند بررسی | نیازمند بررسی | - | - | DOOR3_TYPE_CHOICES = [ |
CONTROL_SYSTEM_TYPE_CHOICES | نیازمند بررسی | نیازمند بررسی | - | - | CONTROL_SYSTEM_TYPE_CHOICES = [ |
EMERGENCY_SYSTEM_TYPE_CHOICES | نیازمند بررسی | نیازمند بررسی | - | - | EMERGENCY_SYSTEM_TYPE_CHOICES = [ |
INPUT_VOLTAGE_CHOICES | نیازمند بررسی | نیازمند بررسی | - | - | INPUT_VOLTAGE_CHOICES = [ |
WEIGHT_SENSOR_CHOICES | نیازمند بررسی | نیازمند بررسی | - | - | WEIGHT_SENSOR_CHOICES = [ |
FIREFIGHTER_MODE_CHOICES | نیازمند بررسی | نیازمند بررسی | - | - | FIREFIGHTER_MODE_CHOICES = [ |
STANDARD_TYPE_CHOICES | نیازمند بررسی | نیازمند بررسی | - | - | STANDARD_TYPE_CHOICES = [ |
LANDING_CALL_COMM_TYPE_CHOICES | نیازمند بررسی | نیازمند بررسی | - | - | LANDING_CALL_COMM_TYPE_CHOICES = [ |
title | CharField | نیازمند بررسی | - | - | title = models.CharField(max_length=255, blank=True, null=True, default=None) |
type | CharField | نیازمند بررسی | - | - | type = models.CharField(max_length=25, blank=True, null=True, default=None) |
capacity | CharField | نیازمند بررسی | - | - | capacity = models.CharField(max_length=10, blank=True, null=True, default=None) |
number_of_floors | IntegerField | نیازمند بررسی | - | - | number_of_floors = models.IntegerField(blank=True, default=1) |
elevator_type | CharField | نیازمند بررسی | - | - | elevator_type = models.CharField(max_length=25, blank=True, null=True, default=None, choices=ELEVATOR_TYPE_CHOICES) |
usage_type | CharField | نیازمند بررسی | - | - | usage_type = models.CharField(max_length=25, blank=True, null=True, default=None, choices=USAGE_TYPE_CHOICES) |
cabin_capacity_kg | IntegerField | نیازمند بررسی | - | - | cabin_capacity_kg = models.IntegerField(blank=True, null=True, default=None) |
stops_count | IntegerField | نیازمند بررسی | - | - | stops_count = models.IntegerField(blank=True, null=True, default=None) |
operation_type | CharField | نیازمند بررسی | - | - | operation_type = models.CharField(max_length=25, blank=True, null=True, default=None, choices=OPERATION_TYPE_CHOICES) |
motor_type | CharField | نیازمند بررسی | - | - | motor_type = models.CharField(max_length=25, blank=True, null=True, default=None, choices=MOTOR_TYPE_CHOICES) |
motor_brand | CharField | نیازمند بررسی | - | - | motor_brand = models.CharField(max_length=25, blank=True, null=True, default=None) |
motor_power_kw | IntegerField | نیازمند بررسی | - | - | motor_power_kw = models.IntegerField(blank=True, null=True, default=None) |
motor_nameplate_image | TextField | نیازمند بررسی | - | - | motor_nameplate_image = models.TextField(max_length=25, blank=True, null=True, default=None) |
motor_encoder_type | CharField | نیازمند بررسی | - | - | motor_encoder_type = models.CharField(max_length=25, blank=True, null=True, default=None, choices=MOTOR_ENCODER_TYPE_CHOICES) |
elevator_speed_mps | IntegerField | نیازمند بررسی | - | - | elevator_speed_mps = models.IntegerField(blank=True, null=True, default=None) |
control_panel_brand | CharField | نیازمند بررسی | - | - | control_panel_brand = models.CharField(max_length=25, blank=True, null=True, default=None) |
control_panel_serial | CharField | نیازمند بررسی | - | - | control_panel_serial = models.CharField(max_length=25, blank=True, null=True, default=None) |
control_panel_image | TextField | نیازمند بررسی | - | - | control_panel_image = models.TextField(max_length=25, blank=True, null=True, default=None) |
control_panel_type | CharField | نیازمند بررسی | - | - | control_panel_type = models.CharField(max_length=25, blank=True, null=True, default=None, choices=CONTROL_PANEL_TYPE_CHOICES) |
door_brand | CharField | نیازمند بررسی | - | - | door_brand = models.CharField(max_length=25, blank=True, null=True, default=None) |
door_count | IntegerField | نیازمند بررسی | - | - | door_count = models.IntegerField(blank=True, null=True, default=None) |
door1_type | CharField | نیازمند بررسی | - | - | door1_type = models.CharField(max_length=25, blank=True, null=True, default=None, choices=DOOR1_TYPE_CHOICES) |
door1_voltage | CharField | نیازمند بررسی | - | - | door1_voltage = models.CharField(max_length=25, blank=True, null=True, default=None) |
door2_type | CharField | نیازمند بررسی | - | - | door2_type = models.CharField(max_length=25, blank=True, null=True, default=None, choices=DOOR2_TYPE_CHOICES) |
door2_voltage | CharField | نیازمند بررسی | - | - | door2_voltage = models.CharField(max_length=25, blank=True, null=True, default=None) |
door3_type | CharField | نیازمند بررسی | - | - | door3_type = models.CharField(max_length=25, blank=True, null=True, default=None, choices=DOOR3_TYPE_CHOICES) |
door3_voltage | CharField | نیازمند بررسی | - | - | door3_voltage = models.CharField(max_length=25, blank=True, null=True, default=None) |
inverter_type | CharField | نیازمند بررسی | - | - | inverter_type = models.CharField(max_length=25, blank=True, null=True, default=None) |
inverter_power | CharField | نیازمند بررسی | - | - | inverter_power = models.CharField(max_length=25, blank=True, null=True, default=None) |
control_system_type | CharField | نیازمند بررسی | - | - | control_system_type = models.CharField(max_length=25, blank=True, null=True, default=None, choices=CONTROL_SYSTEM_TYPE_CHOICES) |
emergency_system_type | CharField | نیازمند بررسی | - | - | emergency_system_type = models.CharField(max_length=25, blank=True, null=True, default=None, choices=EMERGENCY_SYSTEM_TYPE_CHOICES) |
input_voltage | CharField | نیازمند بررسی | - | - | input_voltage = models.CharField(max_length=25, blank=True, null=True, default=None, choices=INPUT_VOLTAGE_CHOICES) |
weight_sensor | CharField | نیازمند بررسی | - | - | weight_sensor = models.CharField(max_length=25, blank=True, null=True, default=None, choices=WEIGHT_SENSOR_CHOICES) |
firefighter_mode | CharField | نیازمند بررسی | - | - | firefighter_mode = models.CharField(max_length=25, blank=True, null=True, default=None, choices=FIREFIGHTER_MODE_CHOICES) |
standard_type | CharField | نیازمند بررسی | - | - | standard_type = models.CharField(max_length=25, blank=True, null=True, default=None, choices=STANDARD_TYPE_CHOICES) |
landing_call_comm_type | CharField | نیازمند بررسی | - | - | landing_call_comm_type = models.CharField(max_length=25, blank=True, null=True, default=None, choices=LANDING_CALL_COMM_TYPE_CHOICES) |
منابع کد
visit/models.py:230- Elevator
ProductElevator
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
product | ForeignKey | نیازمند بررسی | - | - | product = models.ForeignKey(Product, on_delete=models.CASCADE) |
elevator | ForeignKey | نیازمند بررسی | - | - | elevator = models.ForeignKey(Elevator, on_delete=models.CASCADE) |
is_active | BooleanField | نیازمند بررسی | - | - | is_active = models.BooleanField(blank=True, default=True) |
منابع کد
visit/models.py:360- ProductElevator
Building
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
APARTMENT | نیازمند بررسی | نیازمند بررسی | - | - | APARTMENT = "Apartment" |
COMPLEX | نیازمند بررسی | نیازمند بررسی | - | - | COMPLEX = "Complex" |
TYPES | نیازمند بررسی | نیازمند بررسی | - | - | TYPES = ( |
name | CharField | نیازمند بررسی | - | - | name = models.CharField(max_length=255, blank=True, null=True, default=None) |
verbose_name | CharField | نیازمند بررسی | - | - | verbose_name = models.CharField(max_length=255, blank=True, null=True, default=None) |
type | CharField | نیازمند بررسی | - | - | type = models.CharField(max_length=10, choices=TYPES, default="Complex") |
parent | ForeignKey | نیازمند بررسی | - | - | parent = models.ForeignKey('Building', on_delete=models.CASCADE, related_name="parent_building", blank=True, null=True, default=None) |
address | TextField | نیازمند بررسی | - | - | address = models.TextField(blank=True, null=True, default=None) |
longitude | DecimalField | نیازمند بررسی | - | - | longitude = models.DecimalField(max_digits=22, decimal_places=16, blank=True, null=True) |
latitude | DecimalField | نیازمند بررسی | - | - | latitude = models.DecimalField(max_digits=22, decimal_places=16, blank=True, null=True) |
city | ForeignKey | نیازمند بررسی | - | - | city = models.ForeignKey(City, on_delete=models.CASCADE, blank=True, null=True, default=None) |
is_visiting | BooleanField | نیازمند بررسی | - | - | is_visiting = models.BooleanField(blank=True, default=False) |
code | CharField | نیازمند بررسی | - | - | code = models.CharField(max_length=25, unique=True) |
منابع کد
visit/models.py:369- Building
BuildingElevator
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
building | ForeignKey | نیازمند بررسی | - | - | building = models.ForeignKey(Building, on_delete=models.CASCADE) |
elevator | ForeignKey | نیازمند بررسی | - | - | elevator = models.ForeignKey(Elevator, on_delete=models.CASCADE) |
منابع کد
visit/models.py:387- BuildingElevator
BuildingClient
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
building | ForeignKey | نیازمند بررسی | - | - | building = models.ForeignKey(Building, on_delete=models.CASCADE) |
client | ForeignKey | نیازمند بررسی | - | - | client = models.ForeignKey(Client, on_delete=models.CASCADE) |
منابع کد
visit/models.py:391- BuildingClient
Answer
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
visit | ForeignKey | نیازمند بررسی | - | - | visit = models.ForeignKey(Visit, on_delete=models.CASCADE, null=True, blank=True, default=None) |
question | ForeignKey | نیازمند بررسی | - | - | question = models.ForeignKey(Question, on_delete=models.CASCADE) |
score | IntegerField | نیازمند بررسی | - | - | score = models.IntegerField(blank=True, null=True, default=None) |
number | IntegerField | نیازمند بررسی | - | - | number = models.IntegerField(blank=True, null=True, default=None) |
bool | BooleanField | نیازمند بررسی | - | - | bool = models.BooleanField(blank=True, null=True, default=None) |
text | CharField | نیازمند بررسی | - | - | text = models.CharField(max_length=255, blank=True, null=True, default=None) |
description | TextField | نیازمند بررسی | - | - | description = models.TextField(blank=True, null=True, default=None) |
price | BigIntegerField | نیازمند بررسی | - | - | price = models.BigIntegerField(blank=True, null=True, default=None) |
multichoice | ManyToManyField | نیازمند بررسی | - | - | multichoice = models.ManyToManyField( |
dropdown | ForeignKey | نیازمند بررسی | - | - | dropdown = models.ForeignKey(AnswerChoice, on_delete=models.CASCADE, blank=True, null=True, default=None, related_name='dropdown') |
radio | ForeignKey | نیازمند بررسی | - | - | radio = models.ForeignKey(AnswerChoice, on_delete=models.CASCADE, blank=True, null=True, default=None, related_name='radio') |
bool_is_expected | BooleanField | نیازمند بررسی | - | - | bool_is_expected = models.BooleanField(blank=True, null=True, default=None) |
longitude | DecimalField | نیازمند بررسی | - | - | longitude = models.DecimalField( |
latitude | DecimalField | نیازمند بررسی | - | - | latitude = models.DecimalField( |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(blank=True, null=True, default=None) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(blank=True, null=True, default=None) |
منابع کد
visit/models.py:395- Answer
PhotoType
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
name | CharField | نیازمند بررسی | - | - | name = models.CharField(max_length=30) |
project | ForeignKey | نیازمند بررسی | - | - | project = models.ForeignKey(Project, on_delete=models.CASCADE, null=True, default=None) |
visit_type | ForeignKey | نیازمند بررسی | - | - | visit_type = models.ForeignKey(VisitType, on_delete=models.CASCADE, blank=True, null=True, default=None) |
verbose_name | CharField | نیازمند بررسی | - | - | verbose_name = models.CharField(max_length=40, default="") |
min | IntegerField | نیازمند بررسی | - | - | min = models.IntegerField(blank=True, default=1) |
max | IntegerField | نیازمند بررسی | - | - | max = models.IntegerField(blank=True, default=20) |
question | ForeignKey | نیازمند بررسی | - | - | question = models.ForeignKey( |
is_mandatory | BooleanField | نیازمند بررسی | - | - | is_mandatory = models.BooleanField(blank=True, default=False) |
report_category | ForeignKey | نیازمند بررسی | - | - | report_category = models.ForeignKey( |
description | TextField | نیازمند بررسی | - | - | description = models.TextField(default="") |
is_for_supervision | BooleanField | نیازمند بررسی | - | - | is_for_supervision = models.BooleanField(blank=True, default=False) |
is_active | BooleanField | نیازمند بررسی | - | - | is_active = models.BooleanField(blank=True, default=True) |
منابع کد
visit/models.py:426- PhotoType
Photo
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
NOT_CHECKED | نیازمند بررسی | نیازمند بررسی | - | - | NOT_CHECKED = 'NOT_CHECKED' |
CONFIRMED | نیازمند بررسی | نیازمند بررسی | - | - | CONFIRMED = 'CONFIRMED' |
REJECTED | نیازمند بررسی | نیازمند بررسی | - | - | REJECTED = 'REJECTED' |
CONFIRMATION_CHOICES | نیازمند بررسی | نیازمند بررسی | - | - | CONFIRMATION_CHOICES = ( |
creator | ForeignKey | نیازمند بررسی | - | - | creator = models.ForeignKey(User, on_delete=models.CASCADE, blank=True, null=True, default=None) |
type | ForeignKey | نیازمند بررسی | - | - | type = models.ForeignKey(PhotoType, on_delete=models.CASCADE) |
link | URLField | نیازمند بررسی | - | - | link = models.URLField(blank=True, null=True, default=None) |
visit | ForeignKey | نیازمند بررسی | - | - | visit = models.ForeignKey(Visit, on_delete=models.CASCADE) |
longitude | DecimalField | نیازمند بررسی | - | - | longitude = models.DecimalField( |
latitude | DecimalField | نیازمند بررسی | - | - | latitude = models.DecimalField( |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(blank=True) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(blank=True) |
supervision_location_confirm | CharField | نیازمند بررسی | - | - | supervision_location_confirm = models.CharField(max_length=12, blank=True, choices=CONFIRMATION_CHOICES, default='NOT_CHECKED') |
supervision_confirm | CharField | نیازمند بررسی | - | - | supervision_confirm = models.CharField(max_length=12, blank=True, choices=CONFIRMATION_CHOICES, default='NOT_CHECKED') |
recognition_status | IntegerField | نیازمند بررسی | - | - | recognition_status = models.IntegerField(blank=True, null=True, default=None) |
is_deleted | BooleanField | نیازمند بررسی | - | - | is_deleted = models.BooleanField(default=False, blank=True) |
is_checked | BooleanField | نیازمند بررسی | - | - | is_checked = models.BooleanField(default=False, blank=True) |
is_favourite | BooleanField | نیازمند بررسی | - | - | is_favourite = models.BooleanField(default=False, blank=True) |
منابع کد
visit/models.py:443- Photo
VisitRate
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
created_by | ForeignKey | نیازمند بررسی | - | - | created_by = models.ForeignKey(User, on_delete=models.CASCADE, blank=True, null=True, default=None) |
visit | ForeignKey | نیازمند بررسی | - | - | visit = models.ForeignKey(Visit, on_delete=models.CASCADE) |
question_type | ForeignKey | نیازمند بررسی | - | - | question_type = models.ForeignKey(QuestionType, on_delete=models.CASCADE, blank=True, null=True, default=None) |
photo_type | ForeignKey | نیازمند بررسی | - | - | photo_type = models.ForeignKey(PhotoType, on_delete=models.CASCADE, blank=True, null=True, default=None) |
rate | IntegerField | نیازمند بررسی | - | - | rate = models.IntegerField(validators=[MaxValueValidator(10000), MinValueValidator(0)]) |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(blank=True, null=True, default=None) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(blank=True, null=True, default=None) |
منابع کد
visit/models.py:482- VisitRate
Census
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
porslineid | CharField | نیازمند بررسی | - | - | porslineid = models.CharField(max_length=20, null=True, default=None) |
province | CharField | نیازمند بررسی | - | - | province = models.CharField(max_length=60, null=True, default=None) |
city | CharField | نیازمند بررسی | - | - | city = models.CharField(max_length=60, null=True, default=None) |
storefront_photo | TextField | نیازمند بررسی | - | - | storefront_photo = models.TextField(null=True, default=None) |
store_situation | TextField | نیازمند بررسی | - | - | store_situation = models.TextField(null=True, default=None) |
store_name | CharField | نیازمند بررسی | - | - | store_name = models.CharField(max_length=120, null=True, default=None) |
store_owner | CharField | نیازمند بررسی | - | - | store_owner = models.CharField(max_length=40, null=True, default=None) |
store_address | TextField | نیازمند بررسی | - | - | store_address = models.TextField(null=True, default=None) |
postalcode | CharField | نیازمند بررسی | - | - | postalcode = models.CharField(max_length=10, null=True, default=None) |
phone | CharField | نیازمند بررسی | - | - | phone = models.CharField(max_length=200, null=True, default=None) |
mobile | CharField | نیازمند بررسی | - | - | mobile = models.CharField(max_length=200, null=True, default=None) |
banknum | CharField | نیازمند بررسی | - | - | banknum = models.CharField(max_length=50, null=True, default=None) |
boardlable | CharField | نیازمند بررسی | - | - | boardlable = models.CharField(max_length=150, null=True, default=None) |
meter | IntegerField | نیازمند بررسی | - | - | meter = models.IntegerField(null=True, default=None) |
isavailable | BooleanField | نیازمند بررسی | - | - | isavailable = models.BooleanField(null=True, default=None) |
hamakri | BooleanField | نیازمند بررسی | - | - | hamakri = models.BooleanField(null=True, default=None) |
visitcard_photo | TextField | نیازمند بررسی | - | - | visitcard_photo = models.TextField(null=True, default=None) |
vitrin_photo | TextField | نیازمند بررسی | - | - | vitrin_photo = models.TextField(null=True, default=None) |
gift_photo | TextField | نیازمند بررسی | - | - | gift_photo = models.TextField(null=True, default=None) |
pop_photo | TextField | نیازمند بررسی | - | - | pop_photo = models.TextField(null=True, default=None) |
selfie_photo | TextField | نیازمند بررسی | - | - | selfie_photo = models.TextField(null=True, default=None) |
promoter_code | CharField | نیازمند بررسی | - | - | promoter_code = models.CharField(max_length=50, null=True, default=None) |
location | CharField | نیازمند بررسی | - | - | location = models.CharField(max_length=60, null=True, default=None) |
longitude | DecimalField | نیازمند بررسی | - | - | longitude = models.DecimalField( |
latitude | DecimalField | نیازمند بررسی | - | - | latitude = models.DecimalField( |
start_date | CharField | نیازمند بررسی | - | - | start_date = models.CharField(max_length=30, null=True, default=None) |
finish_date | CharField | نیازمند بررسی | - | - | finish_date = models.CharField(max_length=30, null=True, default=None) |
photo | URLField | نیازمند بررسی | - | - | photo = models.URLField(blank=True, null=True, default=None) |
منابع کد
visit/models.py:514- Census
FieldsTranstaltion
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
key | CharField | نیازمند بررسی | - | - | key = models.CharField(max_length=200) |
value | CharField | نیازمند بررسی | - | - | value = models.CharField(max_length=250, null=True) |
منابع کد
visit/models.py:547- FieldsTranstaltion
FoulAlarm
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
is_deleted | BooleanField | نیازمند بررسی | - | - | is_deleted = models.BooleanField(blank=True, default=False) |
منابع کد
visit/models.py:552- FoulAlarm
Ticket
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
WAITING | نیازمند بررسی | نیازمند بررسی | - | - | WAITING = 'W' |
ANSWERED | نیازمند بررسی | نیازمند بررسی | - | - | ANSWERED = 'A' |
CLOSED | نیازمند بررسی | نیازمند بررسی | - | - | CLOSED = 'C' |
STATUS_CHOICES | نیازمند بررسی | نیازمند بررسی | - | - | STATUS_CHOICES = ( |
visit | ForeignKey | نیازمند بررسی | - | - | visit = models.ForeignKey(Visit, on_delete=models.CASCADE, blank=True, null=True, default=None) |
project | ForeignKey | نیازمند بررسی | - | - | project = models.ForeignKey(Project, on_delete=models.CASCADE, null=True, default=None) |
building | ForeignKey | نیازمند بررسی | - | - | building = models.ForeignKey(Building, on_delete=models.CASCADE, blank=True, null=True, default=None) |
creator | ForeignKey | نیازمند بررسی | - | - | creator = models.ForeignKey(User, on_delete=models.CASCADE, blank=True) |
title | CharField | نیازمند بررسی | - | - | title = models.CharField(max_length=35, null=True, blank=True, default=None) |
subject | CharField | نیازمند بررسی | - | - | subject = models.CharField(max_length=60, blank=True, null=True, default=None) |
status | CharField | نیازمند بررسی | - | - | status = models.CharField(max_length=1, default='W', choices=STATUS_CHOICES, blank=True) |
is_deleted | BooleanField | نیازمند بررسی | - | - | is_deleted = models.BooleanField(blank=True, default=False) |
role_assignee | ForeignKey | نیازمند بررسی | - | - | role_assignee = models.ForeignKey(Role, on_delete=models.CASCADE) |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(blank=True) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(blank=True) |
منابع کد
visit/models.py:561- Ticket
TicketMessage
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
ticket | ForeignKey | نیازمند بررسی | - | - | ticket = models.ForeignKey(Ticket, on_delete=models.CASCADE) |
created_by | ForeignKey | نیازمند بررسی | - | - | created_by = models.ForeignKey(User, on_delete=models.CASCADE, blank=True) |
created_by_role_assignment | ForeignKey | نیازمند بررسی | - | - | created_by_role_assignment = models.ForeignKey(RoleAssignment, on_delete=models.CASCADE, blank=True, null=True, default=None) |
body | TextField | نیازمند بررسی | - | - | body = models.TextField(blank=True, null=True, default=None) |
is_deleted | BooleanField | نیازمند بررسی | - | - | is_deleted = models.BooleanField(blank=True, default=False) |
parent | ForeignKey | نیازمند بررسی | - | - | parent = models.ForeignKey('TicketMessage', related_name='TicketMessageParent', on_delete=models.CASCADE, blank=True, null=True, default=Non |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(blank=True) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(blank=True) |
منابع کد
visit/models.py:596- TicketMessage
TicketMessageAttachment
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
ticket_message | ForeignKey | نیازمند بررسی | - | - | ticket_message = models.ForeignKey(TicketMessage, on_delete=models.CASCADE) |
link | TextField | نیازمند بررسی | - | - | link = models.TextField() |
is_deleted | BooleanField | نیازمند بررسی | - | - | is_deleted = models.BooleanField(blank=True, default=False) |
منابع کد
visit/models.py:621- TicketMessageAttachment
VisitRule
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
title | CharField | نیازمند بررسی | - | - | title = models.CharField(max_length=40) |
description | TextField | نیازمند بررسی | - | - | description = models.TextField(default="") |
score_begin | IntegerField | نیازمند بررسی | - | - | score_begin = models.IntegerField() |
score_end | IntegerField | نیازمند بررسی | - | - | score_end = models.IntegerField() |
result | CharField | نیازمند بررسی | - | - | result = models.CharField(max_length=10) |
is_active | BooleanField | نیازمند بررسی | - | - | is_active = models.BooleanField(default=True) |
visit | ForeignKey | نیازمند بررسی | - | - | visit = models.ForeignKey(Visit, on_delete=models.CASCADE) |
منابع کد
visit/models.py:631- VisitRule
Currency
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
name_en | CharField | نیازمند بررسی | - | - | name_en = models.CharField(max_length=50, blank=True, null=True, default=None) |
name_fa | CharField | نیازمند بررسی | - | - | name_fa = models.CharField(max_length=50, blank=True, null=True, default=None) |
abbreviation | CharField | نیازمند بررسی | - | - | abbreviation = models.CharField(max_length=10, unique=True, help_text="it is key for this table!") |
منابع کد
wallet/models.py:13- Currency
Layer
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
key | CharField | نیازمند بررسی | - | - | key = models.CharField(max_length=16, unique=True, blank=True, null=True, default=None) |
title | CharField | نیازمند بررسی | - | - | title = models.CharField(max_length=50) |
verbose_name | CharField | نیازمند بررسی | - | - | verbose_name = models.CharField(max_length=50, blank=True, null=True, default=None) |
priority | IntegerField | نیازمند بررسی | - | - | priority = models.IntegerField(blank=True, default=0) |
is_active | BooleanField | نیازمند بررسی | - | - | is_active = models.BooleanField(blank=True, default=True) |
منابع کد
wallet/models.py:19- Layer
WalletType
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
name_en | CharField | نیازمند بررسی | - | - | name_en = models.CharField(max_length=50, blank=True, null=True, default=None) |
name_fa | CharField | نیازمند بررسی | - | - | name_fa = models.CharField(max_length=50, blank=True, null=True, default=None) |
key | CharField | نیازمند بررسی | - | - | key = models.CharField(max_length=10, unique=True) |
is_general | BooleanField | نیازمند بررسی | - | - | is_general = models.BooleanField(blank=True, default=False) |
منابع کد
wallet/models.py:27- WalletType
Account
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
user | OneToOneField | نیازمند بررسی | - | - | user = models.OneToOneField(User, on_delete=models.CASCADE) |
signature_identifier | UUIDField | نیازمند بررسی | - | - | signature_identifier = models.UUIDField(blank=True, default=uuid.uuid4, editable=False, unique=True) |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(blank=True) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(blank=True) |
منابع کد
wallet/models.py:33- Account
Wallet
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
account | ForeignKey | نیازمند بررسی | - | - | account = models.ForeignKey(Account, on_delete=models.CASCADE) |
type | ForeignKey | نیازمند بررسی | - | - | type = models.ForeignKey(WalletType, on_delete=models.CASCADE) |
public_address | TextField | نیازمند بررسی | - | - | public_address = models.TextField(max_length=42, editable=False, blank=True) |
short_address | TextField | نیازمند بررسی | - | - | short_address = models.TextField(max_length=16, editable=False, blank=True, null=True, default=None, unique=True) |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(blank=True) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(blank=True) |
منابع کد
wallet/models.py:51- Wallet
TransactionType
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
key | CharField | نیازمند بررسی | - | - | key = models.CharField(max_length=10, unique=True) |
name | CharField | نیازمند بررسی | - | - | name = models.CharField(max_length=30, blank=True, null=True, default=None) |
verbose_name | CharField | نیازمند بررسی | - | - | verbose_name = models.CharField(max_length=30, blank=True, null=True, default=None) |
config | TextField | نیازمند بررسی | - | - | config = models.TextField() |
min_amount | BigIntegerField | نیازمند بررسی | - | - | min_amount = models.BigIntegerField(blank=True, null=True, default=None) |
max_amount | BigIntegerField | نیازمند بررسی | - | - | max_amount = models.BigIntegerField(blank=True, null=True, default=None) |
max_acceptable_rest_amount | IntegerField | نیازمند بررسی | - | - | max_acceptable_rest_amount = models.IntegerField(blank=True, default=0) |
rest_config | TextField | نیازمند بررسی | - | - | rest_config = models.TextField(null=True, default=None) |
users_hint | TextField | نیازمند بررسی | - | - | users_hint = models.TextField(blank=True, null=True, default=None) |
منابع کد
wallet/models.py:72- TransactionType
AllowedTransactionRule
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
from_layer | ForeignKey | نیازمند بررسی | - | - | from_layer = models.ForeignKey(Layer, on_delete=models.CASCADE) |
transaction_type | ForeignKey | نیازمند بررسی | - | - | transaction_type = models.ForeignKey(TransactionType, on_delete=models.CASCADE) |
wallet_type | ForeignKey | نیازمند بررسی | - | - | wallet_type = models.ForeignKey(WalletType, on_delete=models.CASCADE, null=True, default=None) |
currency | ForeignKey | نیازمند بررسی | - | - | currency = models.ForeignKey(Currency, on_delete=models.CASCADE, null=True, default=None) |
منابع کد
wallet/models.py:83- AllowedTransactionRule
WalletTransaction
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
creator | ForeignKey | نیازمند بررسی | - | - | creator = models.ForeignKey(User, on_delete=models.CASCADE) |
type | ForeignKey | نیازمند بررسی | - | - | type = models.ForeignKey(TransactionType, on_delete=models.CASCADE, null=True, default=None) |
description | CharField | نیازمند بررسی | - | - | description = models.CharField(max_length=255, blank=True, null=True, default=None) |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(blank=True, null=True, default=None) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(blank=True, null=True, default=None) |
is_reversed | BooleanField | نیازمند بررسی | - | - | is_reversed = models.BooleanField(default=False, blank=True, null=True) |
منابع کد
wallet/models.py:89- WalletTransaction
WalletInvoice
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
id | UUIDField | نیازمند بررسی | - | - | id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) |
type | CharField | نیازمند بررسی | - | - | type = models.CharField(choices=TYPES.choices, max_length=50, blank=True, null=True) |
expert | ForeignKey | نیازمند بررسی | - | - | expert = models.ForeignKey(User, on_delete=models.CASCADE, blank=True, null=True, default=None, related_name='invoice_expert') |
visit | ForeignKey | نیازمند بررسی | - | - | visit = models.ForeignKey(Visit, on_delete=models.CASCADE, blank=True, null=True, default=None) |
client | ForeignKey | نیازمند بررسی | - | - | client = models.ForeignKey(User, on_delete=models.CASCADE, blank=True, null=True, default=None, related_name='invoice_client') |
amount_rials | BigIntegerField | نیازمند بررسی | - | - | amount_rials = models.BigIntegerField(default=0) |
payable_amount_rials | BigIntegerField | نیازمند بررسی | - | - | payable_amount_rials = models.BigIntegerField(blank=True, default=0) |
description | TextField | نیازمند بررسی | - | - | description = models.TextField(blank=True, null=True, default=None) |
is_closed | BooleanField | نیازمند بررسی | - | - | is_closed = models.BooleanField(blank=True, default=False) |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(blank=True, null=True, default=None) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(blank=True, null=True, default=None) |
status | CharField | نیازمند بررسی | - | - | status = models.CharField(choices=STATUS.choices, default=STATUS.INITIAL, max_length=18, blank=True) |
منابع کد
wallet/models.py:108- WalletInvoice
CodeForWalletInvoice
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
wallet_invoice | ForeignKey | نیازمند بررسی | - | - | wallet_invoice = models.ForeignKey(WalletInvoice, on_delete=models.CASCADE) |
code | CharField | نیازمند بررسی | - | - | code = models.CharField(max_length=5, blank=True) |
verification_token | TextField | نیازمند بررسی | - | - | verification_token = models.TextField(blank=True) |
datetime_requested | DateTimeField | نیازمند بررسی | - | - | datetime_requested = models.DateTimeField(blank=True, null=True, default=None) |
منابع کد
wallet/models.py:144- CodeForWalletInvoice
RefTransaction
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
wallet_invoice | ForeignKey | نیازمند بررسی | - | - | wallet_invoice = models.ForeignKey(WalletInvoice, on_delete=models.CASCADE, blank=True, null=True, default=None) |
data | TextField | نیازمند بررسی | - | - | data = models.TextField(blank=True, null=True, default=None) |
منابع کد
wallet/models.py:164- RefTransaction
TransactionLineType
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
side | CharField | نیازمند بررسی | - | - | side = models.CharField(max_length=6, blank=True, null=True, default=None) |
indicator | IntegerField | نیازمند بررسی | - | - | indicator = models.IntegerField(blank=True, default=1) |
affects_on | CharField | نیازمند بررسی | - | - | affects_on = models.CharField(max_length=255, blank=True, null=True, default=None) |
has_ref | BooleanField | نیازمند بررسی | - | - | has_ref = models.BooleanField(blank=True, default=False) |
needs_special_access | BooleanField | نیازمند بررسی | - | - | needs_special_access = models.BooleanField(blank=True, default=False) |
منابع کد
wallet/models.py:168- TransactionLineType
WalletTransactionLine
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
transaction | ForeignKey | نیازمند بررسی | - | - | transaction = models.ForeignKey(WalletTransaction, on_delete=models.CASCADE) |
wallet | ForeignKey | نیازمند بررسی | - | - | wallet = models.ForeignKey(Wallet, on_delete=models.CASCADE, blank=True, null=True, default=None) |
layer | ForeignKey | نیازمند بررسی | - | - | layer = models.ForeignKey(Layer, on_delete=models.CASCADE) |
currency | ForeignKey | نیازمند بررسی | - | - | currency = models.ForeignKey(Currency, on_delete=models.CASCADE) |
type | ForeignKey | نیازمند بررسی | - | - | type = models.ForeignKey(TransactionLineType, on_delete=models.CASCADE) |
amount | BigIntegerField | نیازمند بررسی | - | - | amount = models.BigIntegerField() |
ref | ForeignKey | نیازمند بررسی | - | - | ref = models.ForeignKey(RefTransaction, on_delete=models.CASCADE, blank=True, null=True, default=None) |
منابع کد
wallet/models.py:175- WalletTransactionLine
VariableConfig
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
key | CharField | نیازمند بررسی | - | - | key = models.CharField(max_length=255, unique=True) |
value | BigIntegerField | نیازمند بررسی | - | - | value = models.BigIntegerField() |
منابع کد
wallet/models.py:195- VariableConfig
WareType
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
name | CharField | نیازمند بررسی | - | - | name = models.CharField(max_length=255, blank=True, null=True, default=None) |
verbose_name | CharField | نیازمند بررسی | - | - | verbose_name = models.CharField(max_length=255, blank=True, null=True, default=None) |
icon | TextField | نیازمند بررسی | - | - | icon = models.TextField(blank=True, null=True, default=None) |
منابع کد
warehouse/models.py:7- WareType
Unit
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
unit_en | CharField | نیازمند بررسی | - | - | unit_en = models.CharField(max_length=30, blank=True, null=True, default=None) |
unit_fa | CharField | نیازمند بررسی | - | - | unit_fa = models.CharField(max_length=30, blank=True, null=True, default=None) |
unit_abbreviation | CharField | نیازمند بررسی | - | - | unit_abbreviation = models.CharField(max_length=12, blank=True, null=True, default=None) |
منابع کد
warehouse/models.py:13- Unit
Ware
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
name_en | CharField | نیازمند بررسی | - | - | name_en = models.CharField(max_length=255, blank=True, null=True, default=None) |
name_fa | CharField | نیازمند بررسی | - | - | name_fa = models.CharField(max_length=255, blank=True, null=True, default=None) |
type | ForeignKey | نیازمند بررسی | - | - | type = models.ForeignKey(WareType, on_delete=models.CASCADE, blank=True, null=True, default=None) |
is_for_use | BooleanField | نیازمند بررسی | - | - | is_for_use = models.BooleanField(blank=True, default=False) |
unit | ForeignKey | نیازمند بررسی | - | - | unit = models.ForeignKey(Unit, on_delete=models.CASCADE, null=True, default=None) |
identifier | CharField | نیازمند بررسی | - | - | identifier = models.CharField(max_length=20, blank=True, null=True, default=None) |
description | TextField | نیازمند بررسی | - | - | description = models.TextField(blank=True, null=True, default=None) |
project | ForeignKey | نیازمند بررسی | - | - | project = models.ForeignKey(Project, on_delete=models.CASCADE, blank=True, null=True, default=None) |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(blank=True, null=True, default=None) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(blank=True, null=True, default=None) |
priority | IntegerField | نیازمند بررسی | - | - | priority = models.IntegerField(blank=True, default=0) |
is_active | BooleanField | نیازمند بررسی | - | - | is_active = models.BooleanField(blank=True, default=True) |
منابع کد
warehouse/models.py:19- Ware
WarehouseLocation
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
name_en | CharField | نیازمند بررسی | - | - | name_en = models.CharField(max_length=255, blank=True, null=True, default=None) |
name_fa | CharField | نیازمند بررسی | - | - | name_fa = models.CharField(max_length=255, blank=True, null=True, default=None) |
address | TextField | نیازمند بررسی | - | - | address = models.TextField(blank=True, null=True, default=None) |
longitude | DecimalField | نیازمند بررسی | - | - | longitude = models.DecimalField(max_digits=22, decimal_places=16, blank=True, null=True) |
latitude | DecimalField | نیازمند بررسی | - | - | latitude = models.DecimalField(max_digits=22, decimal_places=16, blank=True, null=True) |
owner | ForeignKey | نیازمند بررسی | - | - | owner = models.ForeignKey(Company, on_delete=models.CASCADE, blank=True, null=True, default=None) |
projects | ManyToManyField | نیازمند بررسی | - | - | projects = models.ManyToManyField(Project) |
منابع کد
warehouse/models.py:41- WarehouseLocation
WarehouseTransaction
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
creator | ForeignKey | نیازمند بررسی | - | - | creator = models.ForeignKey(User, on_delete=models.CASCADE, blank=True, null=True, default=None) |
description | TextField | نیازمند بررسی | - | - | description = models.TextField(blank=True, null=True, default=None) |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(blank=True, null=True, default=None) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(blank=True, null=True, default=None) |
منابع کد
warehouse/models.py:51- WarehouseTransaction
TransactionLineType
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
name | CharField | نیازمند بررسی | - | - | name = models.CharField(max_length=255, blank=True, null=True, default=None) |
verbose_name | CharField | نیازمند بررسی | - | - | verbose_name = models.CharField(max_length=255, blank=True, null=True, default=None) |
side | CharField | نیازمند بررسی | - | - | side = models.CharField(max_length=6, blank=True, null=True, default=None) |
involved | CharField | نیازمند بررسی | - | - | involved = models.CharField(max_length=20, blank=True, null=True, default=None) |
datetime_created | DateTimeField | نیازمند بررسی | - | - | datetime_created = models.DateTimeField(blank=True, null=True, default=None) |
datetime_last_change | DateTimeField | نیازمند بررسی | - | - | datetime_last_change = models.DateTimeField(blank=True, null=True, default=None) |
منابع کد
warehouse/models.py:67- TransactionLineType
WarehouseTransactionLine
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
ware | ForeignKey | نیازمند بررسی | - | - | ware = models.ForeignKey(Ware, on_delete=models.CASCADE) |
transaction | ForeignKey | نیازمند بررسی | - | - | transaction = models.ForeignKey(WarehouseTransaction, on_delete=models.CASCADE, blank=True, default=None) |
amount | BigIntegerField | نیازمند بررسی | - | - | amount = models.BigIntegerField(default=0) |
type | ForeignKey | نیازمند بررسی | - | - | type = models.ForeignKey(TransactionLineType, on_delete=models.CASCADE, blank=True, null=True, default=None) |
location | ForeignKey | نیازمند بررسی | - | - | location = models.ForeignKey(WarehouseLocation, on_delete=models.CASCADE, blank=True, null=True, default=None) |
user | ForeignKey | نیازمند بررسی | - | - | user = models.ForeignKey(User, on_delete=models.CASCADE, blank=True, null=True, default=None) |
منابع کد
warehouse/models.py:84- WarehouseTransactionLine
WareVisitType
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
ware | ForeignKey | نیازمند بررسی | - | - | ware = models.ForeignKey(Ware, on_delete=models.CASCADE) |
visit_type | ForeignKey | نیازمند بررسی | - | - | visit_type = models.ForeignKey(VisitType, on_delete=models.CASCADE, blank=True, null=True, default=None) |
visit | ForeignKey | نیازمند بررسی | - | - | visit = models.ForeignKey(Visit, on_delete=models.CASCADE, blank=True, null=True, default=None) |
منابع کد
warehouse/models.py:96- WareVisitType
WarehouseLocationPersonnel
Django model | جدول/collection: نیازمند بررسی انسانی
| Field | Type | Required | Default | Validation | Description |
|---|---|---|---|---|---|
location | ForeignKey | نیازمند بررسی | - | - | location = models.ForeignKey(WarehouseLocation, on_delete=models.CASCADE) |
user | ForeignKey | نیازمند بررسی | - | - | user = models.ForeignKey(User, on_delete=models.CASCADE) |
is_active | BooleanField | نیازمند بررسی | - | - | is_active = models.BooleanField(default=True) |
منابع کد
warehouse/models.py:101- WarehouseLocationPersonnel