<?xml version="1.0" encoding="utf-8"?>
<Schema Namespace="userModel.Store" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2008" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/02/edm/ssdl">
  <EntityContainer Name="userModelStoreContainer">
    <EntitySet Name="guestbook" EntityType="userModel.Store.guestbook" store:Type="Tables" Schema="dbo" />
    <EntitySet Name="users" EntityType="userModel.Store.users" store:Type="Tables" Schema="dbo" />
    <AssociationSet Name="FK_guestbook_users" Association="userModel.Store.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="int" Nullable="false" StoreGeneratedPattern="Identity" />
    <Property Name="user_id" Type="int" Nullable="false" />
    <Property Name="G_content" Type="varchar" Nullable="false" MaxLength="750" />
    <Property Name="G_Time" Type="datetime" />
    <Property Name="G_Title" Type="varchar" MaxLength="50" />
    <Property Name="G_HF_Content" Type="varchar" MaxLength="750" />
  </EntityType>
  <EntityType Name="users">
    <Key>
      <PropertyRef Name="id" />
    </Key>
    <Property Name="id" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
    <Property Name="username" Type="varchar" Nullable="false" MaxLength="50" />
    <Property Name="password" Type="varchar" Nullable="false" MaxLength="50" />
    <Property Name="User_qx" Type="int" />
    <Property Name="Sex" Type="varchar" MaxLength="10" />
    <Property Name="Email" Type="varchar" MaxLength="50" />
    <Property Name="User_img" Type="varchar" MaxLength="10" />
  </EntityType>
  <Association Name="FK_guestbook_users">
    <End Role="users" Type="userModel.Store.users" Multiplicity="1" />
    <End Role="guestbook" Type="userModel.Store.guestbook" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="users">
        <PropertyRef Name="id" />
      </Principal>
      <Dependent Role="guestbook">
        <PropertyRef Name="user_id" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
</Schema>