158 lines
No EOL
8.2 KiB
XML
158 lines
No EOL
8.2 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="ScapeDbModels.Store" Provider="System.Data.SQLite.EF6" ProviderManifestToken="data source=C:\Users\Alec\Desktop\GitHub\circlescape\server\scape.db" 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">
|
|
<!--Errors Found During Generation:
|
|
warning 6002: The table/view 'main.Sessions' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
|
|
<EntityType Name="Sessions">
|
|
<Key>
|
|
<PropertyRef Name="UserId" />
|
|
<PropertyRef Name="SessionKey" />
|
|
<PropertyRef Name="IpAddress" />
|
|
</Key>
|
|
<Property Name="UserId" Type="integer" Nullable="false" />
|
|
<Property Name="SessionKey" Type="nvarchar" MaxLength="2147483647" Nullable="false" />
|
|
<Property Name="IpAddress" Type="integer" Nullable="false" />
|
|
</EntityType>
|
|
<EntityType Name="Users">
|
|
<Key>
|
|
<PropertyRef Name="Id" />
|
|
</Key>
|
|
<Property Name="Id" Type="integer" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
<Property Name="Username" Type="nvarchar" MaxLength="2147483647" Nullable="false" />
|
|
<Property Name="Password" Type="nvarchar" MaxLength="2147483647" Nullable="false" />
|
|
<Property Name="Joined" Type="integer" />
|
|
<Property Name="LastLogin" Type="integer" />
|
|
<Property Name="JoinedIp" Type="integer" Nullable="false" />
|
|
<Property Name="LastIp" Type="integer" />
|
|
</EntityType>
|
|
<Association Name="FK_Sessions_0_0">
|
|
<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="ScapeDbModelsStoreContainer">
|
|
<EntitySet Name="Users" EntityType="Self.Users" store:Type="Tables" />
|
|
<EntitySet Name="Sessions" EntityType="Self.Sessions" store:Type="Tables">
|
|
<DefiningQuery>SELECT
|
|
[Sessions].[UserId] AS [UserId],
|
|
[Sessions].[SessionKey] AS [SessionKey],
|
|
[Sessions].[IpAddress] AS [IpAddress]
|
|
FROM [Sessions] AS [Sessions]</DefiningQuery>
|
|
</EntitySet>
|
|
<AssociationSet Name="FK_Sessions_0_0" Association="Self.FK_Sessions_0_0">
|
|
<End Role="Users" EntitySet="Users" />
|
|
<End Role="Sessions" EntitySet="Sessions" />
|
|
</AssociationSet>
|
|
</EntityContainer>
|
|
</Schema>
|
|
</edmx:StorageModels>
|
|
<!-- CSDL content -->
|
|
<edmx:ConceptualModels>
|
|
<Schema Namespace="ScapeDbModels" 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="Users">
|
|
<Key>
|
|
<PropertyRef Name="Id" />
|
|
</Key>
|
|
<Property Name="Id" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
<Property Name="Username" Type="String" MaxLength="2147483647" FixedLength="false" Unicode="true" Nullable="false" />
|
|
<Property Name="Password" Type="String" MaxLength="2147483647" FixedLength="false" Unicode="true" Nullable="false" />
|
|
<Property Name="Joined" Type="Int64" />
|
|
<Property Name="LastLogin" Type="Int64" />
|
|
<Property Name="JoinedIp" Type="Int64" Nullable="false" />
|
|
<Property Name="LastIp" Type="Int64" />
|
|
<NavigationProperty Name="Sessions" Relationship="Self.FK_Sessions_0_0" FromRole="Users" ToRole="Sessions" />
|
|
</EntityType>
|
|
<EntityType Name="Sessions">
|
|
<Key>
|
|
<PropertyRef Name="UserId" />
|
|
<PropertyRef Name="SessionKey" />
|
|
<PropertyRef Name="IpAddress" />
|
|
</Key>
|
|
<Property Name="UserId" Type="Int64" Nullable="false" />
|
|
<Property Name="SessionKey" Type="String" MaxLength="2147483647" FixedLength="false" Unicode="true" Nullable="false" />
|
|
<Property Name="IpAddress" Type="Int64" Nullable="false" />
|
|
<NavigationProperty Name="Users" Relationship="Self.FK_Sessions_0_0" FromRole="Sessions" ToRole="Users" />
|
|
</EntityType>
|
|
<Association Name="FK_Sessions_0_0">
|
|
<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="ScapeDbLink" annotation:LazyLoadingEnabled="true">
|
|
<EntitySet Name="Users" EntityType="Self.Users" />
|
|
<EntitySet Name="Sessions" EntityType="Self.Sessions" />
|
|
<AssociationSet Name="FK_Sessions_0_0" Association="Self.FK_Sessions_0_0">
|
|
<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="ScapeDbModelsStoreContainer" CdmEntityContainer="ScapeDbLink">
|
|
<EntitySetMapping Name="Users">
|
|
<EntityTypeMapping TypeName="ScapeDbModels.Users">
|
|
<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" />
|
|
<ScalarProperty Name="JoinedIp" ColumnName="JoinedIp" />
|
|
<ScalarProperty Name="LastIp" ColumnName="LastIp" />
|
|
</MappingFragment>
|
|
</EntityTypeMapping>
|
|
</EntitySetMapping>
|
|
<EntitySetMapping Name="Sessions">
|
|
<EntityTypeMapping TypeName="ScapeDbModels.Sessions">
|
|
<MappingFragment StoreEntitySet="Sessions">
|
|
<ScalarProperty Name="UserId" ColumnName="UserId" />
|
|
<ScalarProperty Name="SessionKey" ColumnName="SessionKey" />
|
|
<ScalarProperty Name="IpAddress" ColumnName="IpAddress" />
|
|
</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="false" />
|
|
<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> |