142 lines
No EOL
7.5 KiB
XML
142 lines
No EOL
7.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
|
|
<!-- EF Runtime content -->
|
|
<edmx:Runtime>
|
|
<!-- SSDL content -->
|
|
<edmx:StorageModels>
|
|
<Schema Namespace="scapeModel.Store" Provider="MySql.Data.MySqlClient" ProviderManifestToken="5.5" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
|
|
<EntityType Name="Sessions">
|
|
<Key>
|
|
<PropertyRef Name="Id" />
|
|
</Key>
|
|
<Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
<Property Name="Secret" Type="binary" MaxLength="20" Nullable="false" />
|
|
<Property Name="UserId" Type="bigint" Nullable="false" />
|
|
<Property Name="ServerId" Type="int" Nullable="false" />
|
|
</EntityType>
|
|
<EntityType Name="Users">
|
|
<Key>
|
|
<PropertyRef Name="Id" />
|
|
</Key>
|
|
<Property Name="Id" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
<Property Name="Username" Type="varchar" MaxLength="16" Nullable="false" />
|
|
<Property Name="Password" Type="varchar" MaxLength="256" Nullable="false" />
|
|
<Property Name="Joined" Type="datetime" Precision="0" Nullable="false" />
|
|
<Property Name="LastLogin" Type="datetime" Precision="0" />
|
|
</EntityType>
|
|
<Association Name="IX_FK_UserId_Users">
|
|
<End Role="Users" Type="Self.Users" Multiplicity="1" />
|
|
<End Role="Sessions" Type="Self.Sessions" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="Users">
|
|
<PropertyRef Name="Id" />
|
|
</Principal>
|
|
<Dependent Role="Sessions">
|
|
<PropertyRef Name="UserId" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<EntityContainer Name="scapeModelStoreContainer">
|
|
<EntitySet Name="Sessions" EntityType="Self.Sessions" Schema="scape" store:Type="Tables" />
|
|
<EntitySet Name="Users" EntityType="Self.Users" Schema="scape" store:Type="Tables" />
|
|
<AssociationSet Name="IX_FK_UserId_Users" Association="Self.IX_FK_UserId_Users">
|
|
<End Role="Users" EntitySet="Users" />
|
|
<End Role="Sessions" EntitySet="Sessions" />
|
|
</AssociationSet>
|
|
</EntityContainer>
|
|
</Schema></edmx:StorageModels>
|
|
<!-- CSDL content -->
|
|
<edmx:ConceptualModels>
|
|
<Schema Namespace="scapeModel" 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="Session">
|
|
<Key>
|
|
<PropertyRef Name="Id" />
|
|
</Key>
|
|
<Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="Secret" Type="Binary" Nullable="false" MaxLength="20" FixedLength="true" />
|
|
<Property Name="UserId" Type="Int64" Nullable="false" />
|
|
<Property Name="ServerId" Type="Int32" Nullable="false" />
|
|
<NavigationProperty Name="User" Relationship="Self.IX_FK_UserId_Users" FromRole="Sessions" ToRole="Users" />
|
|
</EntityType>
|
|
<EntityType Name="User">
|
|
<Key>
|
|
<PropertyRef Name="Id" />
|
|
</Key>
|
|
<Property Name="Id" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="Username" Type="String" MaxLength="16" FixedLength="false" Unicode="false" Nullable="false" />
|
|
<Property Name="Password" Type="String" MaxLength="256" FixedLength="false" Unicode="false" Nullable="false" />
|
|
<Property Name="Joined" Type="DateTime" Nullable="false" />
|
|
<Property Name="LastLogin" Type="DateTime" />
|
|
<NavigationProperty Name="Sessions" Relationship="Self.IX_FK_UserId_Users" FromRole="Users" ToRole="Sessions" />
|
|
</EntityType>
|
|
<Association Name="IX_FK_UserId_Users">
|
|
<End Role="Users" Type="Self.User" Multiplicity="1" />
|
|
<End Role="Sessions" Type="Self.Session" Multiplicity="*" />
|
|
<ReferentialConstraint>
|
|
<Principal Role="Users">
|
|
<PropertyRef Name="Id" />
|
|
</Principal>
|
|
<Dependent Role="Sessions">
|
|
<PropertyRef Name="UserId" />
|
|
</Dependent>
|
|
</ReferentialConstraint>
|
|
</Association>
|
|
<EntityContainer Name="ScapeDb" annotation:LazyLoadingEnabled="true">
|
|
<EntitySet Name="Sessions" EntityType="Self.Session" />
|
|
<EntitySet Name="Users" EntityType="Self.User" />
|
|
<AssociationSet Name="IX_FK_UserId_Users" Association="Self.IX_FK_UserId_Users">
|
|
<End Role="Users" EntitySet="Users" />
|
|
<End Role="Sessions" EntitySet="Sessions" />
|
|
</AssociationSet>
|
|
</EntityContainer>
|
|
</Schema>
|
|
</edmx:ConceptualModels>
|
|
<!-- C-S mapping content -->
|
|
<edmx:Mappings>
|
|
<Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
|
|
<EntityContainerMapping StorageEntityContainer="scapeModelStoreContainer" CdmEntityContainer="ScapeDb">
|
|
<EntitySetMapping Name="Sessions">
|
|
<EntityTypeMapping TypeName="scapeModel.Session">
|
|
<MappingFragment StoreEntitySet="Sessions">
|
|
<ScalarProperty Name="Id" ColumnName="Id" />
|
|
<ScalarProperty Name="Secret" ColumnName="Secret" />
|
|
<ScalarProperty Name="UserId" ColumnName="UserId" />
|
|
<ScalarProperty Name="ServerId" ColumnName="ServerId" />
|
|
</MappingFragment>
|
|
</EntityTypeMapping>
|
|
</EntitySetMapping>
|
|
<EntitySetMapping Name="Users">
|
|
<EntityTypeMapping TypeName="scapeModel.User">
|
|
<MappingFragment StoreEntitySet="Users">
|
|
<ScalarProperty Name="Id" ColumnName="Id" />
|
|
<ScalarProperty Name="Username" ColumnName="Username" />
|
|
<ScalarProperty Name="Password" ColumnName="Password" />
|
|
<ScalarProperty Name="Joined" ColumnName="Joined" />
|
|
<ScalarProperty Name="LastLogin" ColumnName="LastLogin" />
|
|
</MappingFragment>
|
|
</EntityTypeMapping>
|
|
</EntitySetMapping>
|
|
</EntityContainerMapping>
|
|
</Mapping>
|
|
</edmx:Mappings>
|
|
</edmx:Runtime>
|
|
<!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
|
|
<Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
|
|
<Connection>
|
|
<DesignerInfoPropertySet>
|
|
<DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
|
|
</DesignerInfoPropertySet>
|
|
</Connection>
|
|
<Options>
|
|
<DesignerInfoPropertySet>
|
|
<DesignerProperty Name="ValidateOnBuild" Value="true" />
|
|
<DesignerProperty Name="EnablePluralization" Value="true" />
|
|
<DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
|
|
<DesignerProperty Name="UseLegacyProvider" Value="false" />
|
|
<DesignerProperty Name="CodeGenerationStrategy" Value="None" />
|
|
</DesignerInfoPropertySet>
|
|
</Options>
|
|
<!-- Diagram content (shape and connector positions) -->
|
|
<Diagrams></Diagrams>
|
|
</Designer>
|
|
</edmx:Edmx> |