From b646eec140b7f30dd1e109bda76013f089dcebdb Mon Sep 17 00:00:00 2001 From: masoodafar-web Date: Sun, 16 Nov 2025 00:58:57 +0330 Subject: [PATCH] Merge branch 'newmain' --- docs/model.ndm2 | 228 ++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 213 insertions(+), 15 deletions(-) diff --git a/docs/model.ndm2 b/docs/model.ndm2 index 2c56131..9b5b84d 100644 --- a/docs/model.ndm2 +++ b/docs/model.ndm2 @@ -39739,7 +39739,28 @@ "dataCompressions": [] } }, - "foreignKeys": [], + "foreignKeys": [ + { + "objectType": "ForeignKey_MSSQL", + "name": "fk_Contract_ContractType_1", + "fields": [ + "Type" + ], + "referencedSchema": "CMS", + "referencedTable": "ContractType", + "referencedFields": [ + "Main" + ], + "onDelete": "", + "onUpdate": "", + "isNotForReplication": false, + "isEnabled": true, + "comment": "", + "sourceCardinality": "NoneRelationship", + "targetCardinality": "NoneRelationship", + "oldName": "" + } + ], "uniques": [], "checks": [], "triggers": [], @@ -40569,7 +40590,7 @@ "indexes": [], "primaryKey": { "objectType": "PrimaryKey_MSSQL", - "name": "", + "name": "_copy_119", "fields": [ "Id" ], @@ -40784,7 +40805,7 @@ "indexes": [], "primaryKey": { "objectType": "PrimaryKey_MSSQL", - "name": "", + "name": "_copy_118", "fields": [ "Id" ], @@ -40879,7 +40900,7 @@ "indexes": [], "primaryKey": { "objectType": "PrimaryKey_MSSQL", - "name": "", + "name": "_copy_117", "fields": [ "Id" ], @@ -40974,7 +40995,7 @@ "indexes": [], "primaryKey": { "objectType": "PrimaryKey_MSSQL", - "name": "", + "name": "_copy_116", "fields": [ "Id" ], @@ -41189,7 +41210,7 @@ "indexes": [], "primaryKey": { "objectType": "PrimaryKey_MSSQL", - "name": "", + "name": "_copy_115", "fields": [ "Id" ], @@ -41552,7 +41573,7 @@ "indexes": [], "primaryKey": { "objectType": "PrimaryKey_MSSQL", - "name": "", + "name": "_copy_114", "fields": [ "Id" ], @@ -41885,7 +41906,7 @@ "indexes": [], "primaryKey": { "objectType": "PrimaryKey_MSSQL", - "name": "", + "name": "_copy_113", "fields": [ "Id" ], @@ -42485,7 +42506,7 @@ "indexes": [], "primaryKey": { "objectType": "PrimaryKey_MSSQL", - "name": "", + "name": "_copy_112", "fields": [ "Id" ], @@ -42700,7 +42721,7 @@ "indexes": [], "primaryKey": { "objectType": "PrimaryKey_MSSQL", - "name": "", + "name": "_copy_111", "fields": [ "Id" ], @@ -42795,7 +42816,7 @@ "indexes": [], "primaryKey": { "objectType": "PrimaryKey_MSSQL", - "name": "", + "name": "_copy_110", "fields": [ "Id" ], @@ -42890,7 +42911,7 @@ "indexes": [], "primaryKey": { "objectType": "PrimaryKey_MSSQL", - "name": "", + "name": "_copy_109", "fields": [ "Id" ], @@ -43105,7 +43126,7 @@ "indexes": [], "primaryKey": { "objectType": "PrimaryKey_MSSQL", - "name": "", + "name": "_copy_108", "fields": [ "Id" ], @@ -43468,7 +43489,7 @@ "indexes": [], "primaryKey": { "objectType": "PrimaryKey_MSSQL", - "name": "", + "name": "_copy_107", "fields": [ "Id" ], @@ -43801,7 +43822,7 @@ "indexes": [], "primaryKey": { "objectType": "PrimaryKey_MSSQL", - "name": "", + "name": "_copy_106", "fields": [ "Id" ], @@ -43939,6 +43960,129 @@ "filestreamPartitionScheme": "", "dataCompressions": [] } + }, + { + "objectType": "Table_MSSQL", + "name": "ContractType", + "comment": "قراردادها", + "owner": "", + "isChangeTracking": false, + "isTrackColumnsUpdated": false, + "oldName": "", + "isSystemTable": false, + "createTime": "", + "modifyTime": "", + "objectID": 0, + "numberOfRows": 0, + "identityCurrent": 0, + "dataLength": 0, + "indexLength": 0, + "fields": [ + { + "objectType": "TableField_MSSQL", + "name": "Main", + "type": "int", + "size": -2147483648, + "isNullable": "Yes", + "scale": -2147483648, + "comment": "", + "computedExpression": "", + "defaultValue": "", + "defaultValueType": "None", + "schema": "", + "userDefinedType": "", + "collate": "", + "isWithValues": false, + "isFilestream": false, + "isColumnSet": false, + "isPersisted": false, + "isSparse": false, + "isRowGUIDColumn": false, + "oldName": "Main", + "computedBaseType": "", + "isDefaultConstraint": false, + "defaultConstraint": "", + "isIdentity": false, + "isExistingField": false, + "identitySeed": -2147483648, + "identityIncrement": -2147483648, + "identityIsNotForReplication": false + }, + { + "objectType": "TableField_MSSQL", + "name": "CMS", + "type": "int", + "size": -2147483648, + "isNullable": "Yes", + "scale": -2147483648, + "comment": "", + "computedExpression": "", + "defaultValue": "", + "defaultValueType": "None", + "schema": "", + "userDefinedType": "", + "collate": "", + "isWithValues": false, + "isFilestream": false, + "isColumnSet": false, + "isPersisted": false, + "isSparse": false, + "isRowGUIDColumn": false, + "oldName": "CMS", + "computedBaseType": "", + "isDefaultConstraint": false, + "defaultConstraint": "", + "isIdentity": false, + "isExistingField": false, + "identitySeed": 0, + "identityIncrement": 0, + "identityIsNotForReplication": false + } + ], + "indexes": [], + "primaryKey": { + "objectType": "PrimaryKey_MSSQL", + "name": "_copy_1_copy_1_copy_2_copy_2_copy_2_copy_2", + "fields": [], + "fillFactor": 0, + "oldName": "", + "isClustered": true, + "isPadded": false, + "noRecomputeStatistics": false, + "ignoreDuplicatedKeyValues": false, + "allowRowLocks": true, + "allowPageLocks": true, + "storage": { + "objectType": "Storage_MSSQL", + "name": "", + "oldName": "", + "storageType": "Default", + "filegroup": "", + "textImageFilegroup": "", + "filestreamFilegroup": "", + "partitionScheme": "", + "partitionColumn": "", + "filestreamPartitionScheme": "", + "dataCompressions": [] + } + }, + "foreignKeys": [], + "uniques": [], + "checks": [], + "triggers": [], + "storage": { + "objectType": "Storage_MSSQL", + "name": "", + "oldName": "", + "storageType": "Default", + "filegroup": "", + "textImageFilegroup": "", + "filestreamFilegroup": "", + "partitionScheme": "", + "partitionColumn": "", + "filestreamPartitionScheme": "", + "dataCompressions": [] + } } ], "views": [] @@ -47320,6 +47464,22 @@ "b": 160, "a": 1 } + }, + { + "type": "table", + "schemaName": "CMS", + "tableName": "ContractType", + "x": 19472, + "y": 3337, + "width": 278, + "height": 124, + "isBold": false, + "titleColor": { + "r": 190, + "g": 220, + "b": 255, + "a": 1 + } } ], "layers": [ @@ -54935,6 +55095,44 @@ "isFontItalic": false, "isVisible": false } + }, + { + "name": "fk_Contract_ContractType_1", + "sourceTableName": "Contract", + "sourceSchemaName": "CMS", + "lineWidth": 1, + "visible": true, + "vertices": [ + { + "x": 19705, + "y": 3130 + }, + { + "x": 19611, + "y": 3130 + }, + { + "x": 19611, + "y": 3322 + } + ], + "label": { + "x": 19523, + "y": 3090, + "width": 192, + "height": 32, + "fontName": "Sans", + "fontSize": 14, + "fontColor": { + "r": 51, + "g": 51, + "b": 51, + "a": 1 + }, + "isFontBold": false, + "isFontItalic": false, + "isVisible": false + } } ], "viewRelations": []