Model1.csdl 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Schema Namespace="BB_PostanogovModel" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
  3. <EntityType Name="sysdiagrams">
  4. <Key>
  5. <PropertyRef Name="diagram_id" />
  6. </Key>
  7. <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
  8. <Property Name="principal_id" Type="Int32" Nullable="false" />
  9. <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  10. <Property Name="version" Type="Int32" />
  11. <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
  12. </EntityType>
  13. <EntityType Name="Клиенты">
  14. <Key>
  15. <PropertyRef Name="ID_клиент" />
  16. </Key>
  17. <Property Name="ID_клиент" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  18. <Property Name="Фамилия" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  19. <Property Name="Имя" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  20. <Property Name="Отчество" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  21. <Property Name="Пол" Type="String" MaxLength="3" FixedLength="false" Unicode="true" Nullable="false" />
  22. <Property Name="Телефон" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  23. <Property Name="Дата_рождения" Type="DateTime" Nullable="false" Precision="7" />
  24. <Property Name="Email" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  25. <Property Name="Дата_регистрации" Type="DateTime" Nullable="false" Precision="7" />
  26. <NavigationProperty Name="Оказание_услуги" Relationship="Self.FK_Оказание_услуги_Клиенты" FromRole="Клиенты" ToRole="Оказание_услуги" />
  27. <NavigationProperty Name="Тэг" Relationship="Self.Тэг_клиента" FromRole="Клиенты" ToRole="Тэг" />
  28. </EntityType>
  29. <EntityType Name="Оказание_услуги">
  30. <Key>
  31. <PropertyRef Name="ID_оказания_услуги" />
  32. </Key>
  33. <Property Name="ID_оказания_услуги" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  34. <Property Name="Услуга" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  35. <Property Name="Начало_оказания_услуги" Type="DateTime" Nullable="false" Precision="7" />
  36. <Property Name="Клиент" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  37. <Property Name="ID_Услуги" Type="Int32" />
  38. <Property Name="ID_Клиент" Type="Int32" />
  39. <NavigationProperty Name="Клиенты" Relationship="Self.FK_Оказание_услуги_Клиенты" FromRole="Оказание_услуги" ToRole="Клиенты" />
  40. <NavigationProperty Name="Услуги" Relationship="Self.FK_Оказание_услуги_Услуги" FromRole="Оказание_услуги" ToRole="Услуги" />
  41. </EntityType>
  42. <EntityType Name="Сотрудники">
  43. <Key>
  44. <PropertyRef Name="ID_сотрудника" />
  45. </Key>
  46. <Property Name="ID_сотрудника" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  47. <Property Name="Имя" Type="String" MaxLength="20" FixedLength="true" Unicode="true" Nullable="false" />
  48. <Property Name="Фамилия" Type="String" MaxLength="20" FixedLength="true" Unicode="true" Nullable="false" />
  49. <Property Name="Отчество" Type="String" MaxLength="20" FixedLength="true" Unicode="true" Nullable="false" />
  50. <Property Name="Дата_рождения" Type="DateTime" Nullable="false" Precision="0" />
  51. <Property Name="Серия_и_номер_паспорта" Type="String" MaxLength="12" FixedLength="true" Unicode="true" Nullable="false" />
  52. </EntityType>
  53. <EntityType Name="Тэг">
  54. <Key>
  55. <PropertyRef Name="ID_тэга" />
  56. </Key>
  57. <Property Name="ID_тэга" Type="Int32" Nullable="false" />
  58. <Property Name="Титульник" Type="String" MaxLength="30" FixedLength="true" Unicode="true" Nullable="false" />
  59. <Property Name="Цвет" Type="String" MaxLength="6" FixedLength="true" Unicode="true" Nullable="false" />
  60. <NavigationProperty Name="Клиенты" Relationship="Self.Тэг_клиента" FromRole="Тэг" ToRole="Клиенты" />
  61. </EntityType>
  62. <EntityType Name="Услуги">
  63. <Key>
  64. <PropertyRef Name="ID_Услуги" />
  65. </Key>
  66. <Property Name="ID_Услуги" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  67. <Property Name="Наименование_услуги" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  68. <Property Name="Главное_изображение" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  69. <Property Name="Длительность" Type="String" MaxLength="50" FixedLength="true" Unicode="true" Nullable="false" />
  70. <Property Name="Стоимость_рублей" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
  71. <Property Name="Действующая_скидка" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  72. <NavigationProperty Name="Оказание_услуги" Relationship="Self.FK_Оказание_услуги_Услуги" FromRole="Услуги" ToRole="Оказание_услуги" />
  73. </EntityType>
  74. <EntityType Name="Фото_услуги">
  75. <Key>
  76. <PropertyRef Name="ID_Фото_услуги" />
  77. </Key>
  78. <Property Name="ID_Фото_услуги" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  79. <Property Name="ID_Услуги" Type="Int32" Nullable="false" />
  80. <Property Name="Фото" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  81. </EntityType>
  82. <EntityType Name="Администратор">
  83. <Key>
  84. <PropertyRef Name="Логин" />
  85. <PropertyRef Name="Пароль" />
  86. </Key>
  87. <Property Name="Логин" Type="String" MaxLength="20" FixedLength="true" Unicode="true" Nullable="false" />
  88. <Property Name="Пароль" Type="String" MaxLength="20" FixedLength="true" Unicode="true" Nullable="false" />
  89. </EntityType>
  90. <EntityType Name="Роли">
  91. <Key>
  92. <PropertyRef Name="ФИО" />
  93. <PropertyRef Name="Логин" />
  94. <PropertyRef Name="Пароль" />
  95. <PropertyRef Name="Роль" />
  96. </Key>
  97. <Property Name="ФИО" Type="String" MaxLength="30" FixedLength="true" Unicode="true" Nullable="false" />
  98. <Property Name="Логин" Type="String" MaxLength="20" FixedLength="true" Unicode="true" Nullable="false" />
  99. <Property Name="Пароль" Type="String" MaxLength="20" FixedLength="true" Unicode="true" Nullable="false" />
  100. <Property Name="Роль" Type="String" MaxLength="20" FixedLength="true" Unicode="true" Nullable="false" />
  101. </EntityType>
  102. <Association Name="FK_Оказание_услуги_Клиенты">
  103. <End Role="Клиенты" Type="Self.Клиенты" Multiplicity="0..1" />
  104. <End Role="Оказание_услуги" Type="Self.Оказание_услуги" Multiplicity="*" />
  105. <ReferentialConstraint>
  106. <Principal Role="Клиенты">
  107. <PropertyRef Name="ID_клиент" />
  108. </Principal>
  109. <Dependent Role="Оказание_услуги">
  110. <PropertyRef Name="ID_Клиент" />
  111. </Dependent>
  112. </ReferentialConstraint>
  113. </Association>
  114. <Association Name="FK_Оказание_услуги_Услуги">
  115. <End Role="Услуги" Type="Self.Услуги" Multiplicity="0..1" />
  116. <End Role="Оказание_услуги" Type="Self.Оказание_услуги" Multiplicity="*" />
  117. <ReferentialConstraint>
  118. <Principal Role="Услуги">
  119. <PropertyRef Name="ID_Услуги" />
  120. </Principal>
  121. <Dependent Role="Оказание_услуги">
  122. <PropertyRef Name="ID_Услуги" />
  123. </Dependent>
  124. </ReferentialConstraint>
  125. </Association>
  126. <Association Name="Тэг_клиента">
  127. <End Role="Клиенты" Type="Self.Клиенты" Multiplicity="*" />
  128. <End Role="Тэг" Type="Self.Тэг" Multiplicity="*" />
  129. </Association>
  130. <EntityContainer Name="BB_PostanogovEntities" annotation:LazyLoadingEnabled="true">
  131. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
  132. <EntitySet Name="Клиенты" EntityType="Self.Клиенты" />
  133. <EntitySet Name="Оказание_услуги" EntityType="Self.Оказание_услуги" />
  134. <EntitySet Name="Сотрудники" EntityType="Self.Сотрудники" />
  135. <EntitySet Name="Тэг" EntityType="Self.Тэг" />
  136. <EntitySet Name="Услуги" EntityType="Self.Услуги" />
  137. <EntitySet Name="Фото_услуги" EntityType="Self.Фото_услуги" />
  138. <EntitySet Name="Администратор" EntityType="Self.Администратор" />
  139. <EntitySet Name="Роли" EntityType="Self.Роли" />
  140. <AssociationSet Name="FK_Оказание_услуги_Клиенты" Association="Self.FK_Оказание_услуги_Клиенты">
  141. <End Role="Клиенты" EntitySet="Клиенты" />
  142. <End Role="Оказание_услуги" EntitySet="Оказание_услуги" />
  143. </AssociationSet>
  144. <AssociationSet Name="FK_Оказание_услуги_Услуги" Association="Self.FK_Оказание_услуги_Услуги">
  145. <End Role="Услуги" EntitySet="Услуги" />
  146. <End Role="Оказание_услуги" EntitySet="Оказание_услуги" />
  147. </AssociationSet>
  148. <AssociationSet Name="Тэг_клиента" Association="Self.Тэг_клиента">
  149. <End Role="Клиенты" EntitySet="Клиенты" />
  150. <End Role="Тэг" EntitySet="Тэг" />
  151. </AssociationSet>
  152. </EntityContainer>
  153. </Schema>