123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- <?xml version="1.0" encoding="utf-8"?>
- <Schema Namespace="gr672_pgvModel" 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="Role">
- <Key>
- <PropertyRef Name="RoleID" />
- </Key>
- <Property Name="RoleID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="RoleName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="User" Relationship="Self.FK_User_Role" FromRole="Role" ToRole="User" />
- </EntityType>
- <EntityType Name="User">
- <Key>
- <PropertyRef Name="UserID" />
- </Key>
- <Property Name="UserID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="LastName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="MiddleName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Phone" Type="String" MaxLength="12" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Email" Type="String" MaxLength="200" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IDRole" Type="Int32" Nullable="false" />
- <NavigationProperty Name="Role" Relationship="Self.FK_User_Role" FromRole="User" ToRole="Role" />
- <NavigationProperty Name="Violation" Relationship="Self.FK_Violation_User" FromRole="User" ToRole="Violation" />
- <Property Name="Login" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="Password" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- </EntityType>
- <EntityType Name="Violation">
- <Key>
- <PropertyRef Name="ViolationID" />
- </Key>
- <Property Name="ViolationID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="IDViolationType" Type="Int32" Nullable="false" />
- <Property Name="Photo" Type="Binary" MaxLength="Max" FixedLength="false" Nullable="false" />
- <Property Name="Address" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IsReviewed" Type="Boolean" />
- <Property Name="Comment" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
- <Property Name="IDUser" Type="Int32" Nullable="false" />
- <NavigationProperty Name="User" Relationship="Self.FK_Violation_User" FromRole="Violation" ToRole="User" />
- <NavigationProperty Name="ViolationType" Relationship="Self.FK_Violation_ViolationType" FromRole="Violation" ToRole="ViolationType" />
- <Property Name="CarNumber" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
- </EntityType>
- <EntityType Name="ViolationType">
- <Key>
- <PropertyRef Name="ViolationTypeID" />
- </Key>
- <Property Name="ViolationTypeID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="TypeName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="Violation" Relationship="Self.FK_Violation_ViolationType" FromRole="ViolationType" ToRole="Violation" />
- </EntityType>
- <Association Name="FK_User_Role">
- <End Role="Role" Type="Self.Role" Multiplicity="1" />
- <End Role="User" Type="Self.User" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Role">
- <PropertyRef Name="RoleID" />
- </Principal>
- <Dependent Role="User">
- <PropertyRef Name="IDRole" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Violation_User">
- <End Role="User" Type="Self.User" Multiplicity="1" />
- <End Role="Violation" Type="Self.Violation" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="User">
- <PropertyRef Name="UserID" />
- </Principal>
- <Dependent Role="Violation">
- <PropertyRef Name="IDUser" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Violation_ViolationType">
- <End Role="ViolationType" Type="Self.ViolationType" Multiplicity="1" />
- <End Role="Violation" Type="Self.Violation" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="ViolationType">
- <PropertyRef Name="ViolationTypeID" />
- </Principal>
- <Dependent Role="Violation">
- <PropertyRef Name="IDViolationType" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="gr672_pgvEntities" annotation:LazyLoadingEnabled="true">
- <EntitySet Name="Role" EntityType="Self.Role" />
- <EntitySet Name="User" EntityType="Self.User" />
- <EntitySet Name="Violation" EntityType="Self.Violation" />
- <EntitySet Name="ViolationType" EntityType="Self.ViolationType" />
- <AssociationSet Name="FK_User_Role" Association="Self.FK_User_Role">
- <End Role="Role" EntitySet="Role" />
- <End Role="User" EntitySet="User" />
- </AssociationSet>
- <AssociationSet Name="FK_Violation_User" Association="Self.FK_Violation_User">
- <End Role="User" EntitySet="User" />
- <End Role="Violation" EntitySet="Violation" />
- </AssociationSet>
- <AssociationSet Name="FK_Violation_ViolationType" Association="Self.FK_Violation_ViolationType">
- <End Role="ViolationType" EntitySet="ViolationType" />
- <End Role="Violation" EntitySet="Violation" />
- </AssociationSet>
- </EntityContainer>
- </Schema>
|