123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- <?xml version="1.0" encoding="utf-8"?>
- <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">
- <EntityType Name="sysdiagrams">
- <Key>
- <PropertyRef Name="diagram_id" />
- </Key>
- <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="principal_id" Type="Int32" Nullable="false" />
- <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="version" Type="Int32" />
- <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
- </EntityType>
- <EntityType Name="Клиенты">
- <Key>
- <PropertyRef Name="ID_клиент" />
- </Key>
- <Property Name="ID_клиент" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Фамилия" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Имя" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Отчество" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Пол" Type="String" MaxLength="3" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Телефон" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Дата_рождения" Type="DateTime" Nullable="false" Precision="7" />
- <Property Name="Email" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Дата_регистрации" Type="DateTime" Nullable="false" Precision="7" />
- <NavigationProperty Name="Оказание_услуги" Relationship="Self.FK_Оказание_услуги_Клиенты" FromRole="Клиенты" ToRole="Оказание_услуги" />
- <NavigationProperty Name="Тэг" Relationship="Self.Тэг_клиента" FromRole="Клиенты" ToRole="Тэг" />
- </EntityType>
- <EntityType Name="Оказание_услуги">
- <Key>
- <PropertyRef Name="ID_оказания_услуги" />
- </Key>
- <Property Name="ID_оказания_услуги" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Услуга" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Начало_оказания_услуги" Type="DateTime" Nullable="false" Precision="7" />
- <Property Name="Клиент" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="ID_Услуги" Type="Int32" />
- <Property Name="ID_Клиент" Type="Int32" />
- <NavigationProperty Name="Клиенты" Relationship="Self.FK_Оказание_услуги_Клиенты" FromRole="Оказание_услуги" ToRole="Клиенты" />
- <NavigationProperty Name="Услуги" Relationship="Self.FK_Оказание_услуги_Услуги" FromRole="Оказание_услуги" ToRole="Услуги" />
- </EntityType>
- <EntityType Name="Сотрудники">
- <Key>
- <PropertyRef Name="ID_сотрудника" />
- </Key>
- <Property Name="ID_сотрудника" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Имя" Type="String" MaxLength="20" FixedLength="true" Unicode="true" Nullable="false" />
- <Property Name="Фамилия" Type="String" MaxLength="20" FixedLength="true" Unicode="true" Nullable="false" />
- <Property Name="Отчество" Type="String" MaxLength="20" FixedLength="true" Unicode="true" Nullable="false" />
- <Property Name="Дата_рождения" Type="DateTime" Nullable="false" Precision="0" />
- <Property Name="Серия_и_номер_паспорта" Type="String" MaxLength="12" FixedLength="true" Unicode="true" Nullable="false" />
- </EntityType>
- <EntityType Name="Тэг">
- <Key>
- <PropertyRef Name="ID_тэга" />
- </Key>
- <Property Name="ID_тэга" Type="Int32" Nullable="false" />
- <Property Name="Титульник" Type="String" MaxLength="30" FixedLength="true" Unicode="true" Nullable="false" />
- <Property Name="Цвет" Type="String" MaxLength="6" FixedLength="true" Unicode="true" Nullable="false" />
- <NavigationProperty Name="Клиенты" Relationship="Self.Тэг_клиента" FromRole="Тэг" ToRole="Клиенты" />
- </EntityType>
- <EntityType Name="Услуги">
- <Key>
- <PropertyRef Name="ID_Услуги" />
- </Key>
- <Property Name="ID_Услуги" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Наименование_услуги" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Главное_изображение" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Длительность" Type="String" MaxLength="50" FixedLength="true" Unicode="true" Nullable="false" />
- <Property Name="Стоимость_рублей" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
- <Property Name="Действующая_скидка" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="Оказание_услуги" Relationship="Self.FK_Оказание_услуги_Услуги" FromRole="Услуги" ToRole="Оказание_услуги" />
- </EntityType>
- <EntityType Name="Фото_услуги">
- <Key>
- <PropertyRef Name="ID_Фото_услуги" />
- </Key>
- <Property Name="ID_Фото_услуги" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="ID_Услуги" Type="Int32" Nullable="false" />
- <Property Name="Фото" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
- </EntityType>
- <EntityType Name="Администратор">
- <Key>
- <PropertyRef Name="Логин" />
- <PropertyRef Name="Пароль" />
- </Key>
- <Property Name="Логин" Type="String" MaxLength="20" FixedLength="true" Unicode="true" Nullable="false" />
- <Property Name="Пароль" Type="String" MaxLength="20" FixedLength="true" Unicode="true" Nullable="false" />
- </EntityType>
- <EntityType Name="Роли">
- <Key>
- <PropertyRef Name="ФИО" />
- <PropertyRef Name="Логин" />
- <PropertyRef Name="Пароль" />
- <PropertyRef Name="Роль" />
- </Key>
- <Property Name="ФИО" Type="String" MaxLength="30" FixedLength="true" Unicode="true" Nullable="false" />
- <Property Name="Логин" Type="String" MaxLength="20" FixedLength="true" Unicode="true" Nullable="false" />
- <Property Name="Пароль" Type="String" MaxLength="20" FixedLength="true" Unicode="true" Nullable="false" />
- <Property Name="Роль" Type="String" MaxLength="20" FixedLength="true" Unicode="true" Nullable="false" />
- </EntityType>
- <Association Name="FK_Оказание_услуги_Клиенты">
- <End Role="Клиенты" Type="Self.Клиенты" Multiplicity="0..1" />
- <End Role="Оказание_услуги" Type="Self.Оказание_услуги" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Клиенты">
- <PropertyRef Name="ID_клиент" />
- </Principal>
- <Dependent Role="Оказание_услуги">
- <PropertyRef Name="ID_Клиент" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Оказание_услуги_Услуги">
- <End Role="Услуги" Type="Self.Услуги" Multiplicity="0..1" />
- <End Role="Оказание_услуги" Type="Self.Оказание_услуги" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Услуги">
- <PropertyRef Name="ID_Услуги" />
- </Principal>
- <Dependent Role="Оказание_услуги">
- <PropertyRef Name="ID_Услуги" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="Тэг_клиента">
- <End Role="Клиенты" Type="Self.Клиенты" Multiplicity="*" />
- <End Role="Тэг" Type="Self.Тэг" Multiplicity="*" />
- </Association>
- <EntityContainer Name="BB_PostanogovEntities" annotation:LazyLoadingEnabled="true">
- <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
- <EntitySet Name="Клиенты" EntityType="Self.Клиенты" />
- <EntitySet Name="Оказание_услуги" EntityType="Self.Оказание_услуги" />
- <EntitySet Name="Сотрудники" EntityType="Self.Сотрудники" />
- <EntitySet Name="Тэг" EntityType="Self.Тэг" />
- <EntitySet Name="Услуги" EntityType="Self.Услуги" />
- <EntitySet Name="Фото_услуги" EntityType="Self.Фото_услуги" />
- <EntitySet Name="Администратор" EntityType="Self.Администратор" />
- <EntitySet Name="Роли" EntityType="Self.Роли" />
- <AssociationSet Name="FK_Оказание_услуги_Клиенты" Association="Self.FK_Оказание_услуги_Клиенты">
- <End Role="Клиенты" EntitySet="Клиенты" />
- <End Role="Оказание_услуги" EntitySet="Оказание_услуги" />
- </AssociationSet>
- <AssociationSet Name="FK_Оказание_услуги_Услуги" Association="Self.FK_Оказание_услуги_Услуги">
- <End Role="Услуги" EntitySet="Услуги" />
- <End Role="Оказание_услуги" EntitySet="Оказание_услуги" />
- </AssociationSet>
- <AssociationSet Name="Тэг_клиента" Association="Self.Тэг_клиента">
- <End Role="Клиенты" EntitySet="Клиенты" />
- <End Role="Тэг" EntitySet="Тэг" />
- </AssociationSet>
- </EntityContainer>
- </Schema>
|