Files
blog-en-asp/DAL/obj/Debug/edmxResourcesToEmbed/Entities.ssdl
Daniel Cortes 7fbf91f8b1 Initial commit
2020-05-22 01:32:58 -04:00

126 lines
5.4 KiB
XML
Executable File

<?xml version="1.0" encoding="utf-8"?>
<Schema Namespace="EntitiesModel.Store" Provider="System.Data.SqlClient" ProviderManifestToken="2012" 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="comentario">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="html" Type="text" Nullable="false" />
<Property Name="post_id" Type="int" Nullable="false" />
<Property Name="user_id" Type="int" Nullable="false" />
</EntityType>
<EntityType Name="post">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="title" Type="varchar" MaxLength="255" Nullable="false" />
<Property Name="markdown" Type="text" Nullable="false" />
<Property Name="html" Type="text" Nullable="false" />
<Property Name="user_id" Type="int" Nullable="false" />
</EntityType>
<EntityType Name="user">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="username" Type="varchar" MaxLength="255" Nullable="false" />
<Property Name="password" Type="binary" MaxLength="32" Nullable="false" />
<Property Name="salt" Type="binary" MaxLength="20" Nullable="false" />
</EntityType>
<EntityType Name="voto">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="post_id" Type="int" Nullable="false" />
<Property Name="user_id" Type="int" Nullable="false" />
<Property Name="positivo" Type="bit" Nullable="false" />
</EntityType>
<Association Name="FK_comentario_post">
<End Role="post" Type="Self.post" Multiplicity="1" />
<End Role="comentario" Type="Self.comentario" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="post">
<PropertyRef Name="id" />
</Principal>
<Dependent Role="comentario">
<PropertyRef Name="post_id" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_comentario_user">
<End Role="user" Type="Self.user" Multiplicity="1" />
<End Role="comentario" Type="Self.comentario" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="user">
<PropertyRef Name="id" />
</Principal>
<Dependent Role="comentario">
<PropertyRef Name="user_id" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_post_user">
<End Role="user" Type="Self.user" Multiplicity="1" />
<End Role="post" Type="Self.post" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="user">
<PropertyRef Name="id" />
</Principal>
<Dependent Role="post">
<PropertyRef Name="user_id" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_voto_post">
<End Role="post" Type="Self.post" Multiplicity="1" />
<End Role="voto" Type="Self.voto" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="post">
<PropertyRef Name="id" />
</Principal>
<Dependent Role="voto">
<PropertyRef Name="post_id" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_voto_user">
<End Role="user" Type="Self.user" Multiplicity="1" />
<End Role="voto" Type="Self.voto" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="user">
<PropertyRef Name="id" />
</Principal>
<Dependent Role="voto">
<PropertyRef Name="user_id" />
</Dependent>
</ReferentialConstraint>
</Association>
<EntityContainer Name="EntitiesModelStoreContainer">
<EntitySet Name="comentario" EntityType="Self.comentario" Schema="dbo" store:Type="Tables" />
<EntitySet Name="post" EntityType="Self.post" Schema="dbo" store:Type="Tables" />
<EntitySet Name="user" EntityType="Self.user" Schema="dbo" store:Type="Tables" />
<EntitySet Name="voto" EntityType="Self.voto" Schema="dbo" store:Type="Tables" />
<AssociationSet Name="FK_comentario_post" Association="Self.FK_comentario_post">
<End Role="post" EntitySet="post" />
<End Role="comentario" EntitySet="comentario" />
</AssociationSet>
<AssociationSet Name="FK_comentario_user" Association="Self.FK_comentario_user">
<End Role="user" EntitySet="user" />
<End Role="comentario" EntitySet="comentario" />
</AssociationSet>
<AssociationSet Name="FK_post_user" Association="Self.FK_post_user">
<End Role="user" EntitySet="user" />
<End Role="post" EntitySet="post" />
</AssociationSet>
<AssociationSet Name="FK_voto_post" Association="Self.FK_voto_post">
<End Role="post" EntitySet="post" />
<End Role="voto" EntitySet="voto" />
</AssociationSet>
<AssociationSet Name="FK_voto_user" Association="Self.FK_voto_user">
<End Role="user" EntitySet="user" />
<End Role="voto" EntitySet="voto" />
</AssociationSet>
</EntityContainer>
</Schema>