<?xml version="1.0" encoding="utf-8"?>
<Schema Namespace="userModel" Alias="Self" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns="http://schemas.microsoft.com/ado/2008/09/edm">
  <EntityContainer Name="UserEntities" annotation:LazyLoadingEnabled="true">
    <EntitySet Name="guestbook" EntityType="userModel.guestbook" />
    <EntitySet Name="users" EntityType="userModel.users" />
    <AssociationSet Name="FK_guestbook_users" Association="userModel.FK_guestbook_users">
      <End Role="users" EntitySet="users" />
      <End Role="guestbook" EntitySet="guestbook" />
    </AssociationSet>
  </EntityContainer>
  <EntityType Name="guestbook">
    <Key>
      <PropertyRef Name="gb_id" />
    </Key>
    <Property Name="gb_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
    <Property Name="user_id" Type="Int32" Nullable="false" />
    <Property Name="G_content" Type="String" Nullable="false" MaxLength="750" Unicode="false" FixedLength="false" />
    <Property Name="G_Time" Type="DateTime" />
    <Property Name="G_Title" Type="String" MaxLength="50" Unicode="false" FixedLength="false" />
    <Property Name="G_HF_Content" Type="String" MaxLength="750" Unicode="false" FixedLength="false" />
    <NavigationProperty Name="users" Relationship="userModel.FK_guestbook_users" FromRole="guestbook" ToRole="users" />
  </EntityType>
  <EntityType Name="users">
    <Key>
      <PropertyRef Name="id" />
    </Key>
    <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
    <Property Name="username" Type="String" Nullable="false" MaxLength="50" Unicode="false" FixedLength="false" />
    <Property Name="password" Type="String" Nullable="false" MaxLength="50" Unicode="false" FixedLength="false" />
    <Property Name="User_qx" Type="Int32" />
    <Property Name="Sex" Type="String" MaxLength="10" Unicode="false" FixedLength="false" />
    <Property Name="Email" Type="String" MaxLength="50" Unicode="false" FixedLength="false" />
    <Property Name="User_img" Type="String" MaxLength="10" Unicode="false" FixedLength="false" />
    <NavigationProperty Name="guestbook" Relationship="userModel.FK_guestbook_users" FromRole="users" ToRole="guestbook" />
  </EntityType>
  <Association Name="FK_guestbook_users">
    <End Role="users" Type="userModel.users" Multiplicity="1" />
    <End Role="guestbook" Type="userModel.guestbook" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="users">
        <PropertyRef Name="id" />
      </Principal>
      <Dependent Role="guestbook">
        <PropertyRef Name="user_id" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
</Schema>