懒羊羊
2023-12-28 e46d3baaf3e8d7d85f4bafec3aad75e52b078408
提交 | 用户 | 时间
e46d3b 1 <?xml version="1.0" encoding="utf-8"?>
2 <Schema Namespace="Sam_DBModel.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">
3   <EntityType Name="Base_AppendProperty">
4     <Key>
5       <PropertyRef Name="Property_ID" />
6     </Key>
7     <Property Name="Property_ID" Type="varchar" MaxLength="50" Nullable="false" />
8     <Property Name="Property_Function" Type="varchar" MaxLength="50" />
9     <Property Name="Property_Control_ID" Type="varchar" MaxLength="50" />
10     <Property Name="Property_Name" Type="varchar" MaxLength="50" />
11     <Property Name="Property_Control_DataSource" Type="varchar(max)" />
12     <Property Name="Property_Control_Length" Type="int" Nullable="false" />
13     <Property Name="Property_Control_Style" Type="varchar" MaxLength="50" />
14     <Property Name="SortCode" Type="int" />
15     <Property Name="DeleteMark" Type="int" />
16     <Property Name="CreateDate" Type="date" />
17     <Property Name="CreateUserId" Type="varchar" MaxLength="50" />
18     <Property Name="CreateUserName" Type="varchar" MaxLength="50" />
19     <Property Name="ModifyDate" Type="datetime" />
20     <Property Name="ModifyUserId" Type="varchar" MaxLength="50" />
21     <Property Name="ModifyUserName" Type="varchar" MaxLength="50" />
22   </EntityType>
23   <EntityType Name="Base_AppendPropertyInstance">
24     <Key>
25       <PropertyRef Name="PropertyInstance_ID" />
26     </Key>
27     <Property Name="PropertyInstance_ID" Type="varchar" MaxLength="50" Nullable="false" />
28     <Property Name="Property_Control_ID" Type="varchar" MaxLength="50" />
29     <Property Name="PropertyInstance_Value" Type="varchar(max)" />
30     <Property Name="PropertyInstance_Key" Type="varchar" MaxLength="50" Nullable="false" />
31   </EntityType>
32   <EntityType Name="Base_Log">
33     <Key>
34       <PropertyRef Name="LogID" />
35     </Key>
36     <Property Name="LogID" Type="varchar" MaxLength="50" Nullable="false" />
37     <Property Name="Type" Type="varchar" MaxLength="50" />
38     <Property Name="LogMessage" Type="nvarchar" MaxLength="500" />
39     <Property Name="CreateTime" Type="datetime" />
40     <Property Name="CreateUserName" Type="varchar" MaxLength="50" />
41     <Property Name="CreateUserID" Type="varchar" MaxLength="50" />
42     <Property Name="LocalIP" Type="varchar" MaxLength="50" />
43     <Property Name="ClassName" Type="varchar" MaxLength="50" />
44   </EntityType>
45   <EntityType Name="Base_Organization">
46     <Key>
47       <PropertyRef Name="Organization_ID" />
48     </Key>
49     <Property Name="Organization_ID" Type="varchar" MaxLength="50" Nullable="false" />
50     <Property Name="Organization_Code" Type="varchar" MaxLength="20" />
51     <Property Name="Organization_Name" Type="varchar" MaxLength="50" />
52     <Property Name="Organization_InnerPhone" Type="varchar" MaxLength="20" />
53     <Property Name="Organization_OuterPhone" Type="varchar" MaxLength="20" />
54     <Property Name="Organization_Manager" Type="varchar" MaxLength="50" />
55     <Property Name="Organization_AssistantManager" Type="varchar" MaxLength="50" />
56     <Property Name="Organization_Fax" Type="varchar" MaxLength="20" />
57     <Property Name="Organization_Zipcode" Type="varchar" MaxLength="20" />
58     <Property Name="Organization_Address" Type="varchar" MaxLength="200" />
59     <Property Name="ParentId" Type="varchar" MaxLength="50" />
60     <Property Name="Organization_Remark" Type="varchar" MaxLength="200" />
61     <Property Name="SortCode" Type="int" />
62     <Property Name="DeleteMark" Type="int" />
63     <Property Name="CreateDate" Type="date" />
64     <Property Name="CreateUserId" Type="varchar" MaxLength="50" />
65     <Property Name="CreateUserName" Type="varchar" MaxLength="50" />
66     <Property Name="ModifyDate" Type="datetime" />
67     <Property Name="ModifyUserId" Type="varchar" MaxLength="50" />
68     <Property Name="ModifyUserName" Type="varchar" MaxLength="50" />
69   </EntityType>
70   <EntityType Name="Base_RoleRight">
71     <Key>
72       <PropertyRef Name="RoleRight_ID" />
73     </Key>
74     <Property Name="RoleRight_ID" Type="varchar" MaxLength="50" Nullable="false" />
75     <Property Name="Roles_ID" Type="varchar" MaxLength="50" />
76     <Property Name="Menu_Id" Type="varchar" MaxLength="50" />
77     <Property Name="CreateDate" Type="datetime" />
78     <Property Name="CreateUserId" Type="varchar" MaxLength="50" />
79     <Property Name="CreateUserName" Type="varchar" MaxLength="50" />
80   </EntityType>
81   <EntityType Name="Base_Roles">
82     <Key>
83       <PropertyRef Name="Roles_ID" />
84     </Key>
85     <Property Name="Roles_ID" Type="varchar" MaxLength="50" Nullable="false" />
86     <Property Name="ParentId" Type="varchar" MaxLength="50" />
87     <Property Name="Roles_Name" Type="varchar" MaxLength="50" />
88     <Property Name="Roles_Remark" Type="varchar" MaxLength="200" />
89     <Property Name="SortCode" Type="int" />
90     <Property Name="DeleteMark" Type="int" />
91     <Property Name="CreateDate" Type="datetime" />
92     <Property Name="CreateUserId" Type="varchar" MaxLength="50" />
93     <Property Name="CreateUserName" Type="varchar" MaxLength="50" />
94     <Property Name="ModifyDate" Type="datetime" />
95     <Property Name="ModifyUserId" Type="varchar" MaxLength="50" />
96     <Property Name="ModifyUserName" Type="varchar" MaxLength="50" />
97   </EntityType>
98   <EntityType Name="Base_StaffOrganize">
99     <Key>
100       <PropertyRef Name="StaffOrganize_Id" />
101     </Key>
102     <Property Name="StaffOrganize_Id" Type="varchar" MaxLength="50" Nullable="false" />
103     <Property Name="Organization_ID" Type="varchar" MaxLength="50" />
104     <Property Name="User_ID" Type="varchar" MaxLength="50" />
105     <Property Name="CreateDate" Type="datetime" />
106     <Property Name="CreateUserId" Type="varchar" MaxLength="50" />
107     <Property Name="CreateUserName" Type="varchar" MaxLength="50" />
108   </EntityType>
109   <EntityType Name="Base_SysMenu">
110     <Key>
111       <PropertyRef Name="Menu_Id" />
112     </Key>
113     <Property Name="Menu_Id" Type="varchar" MaxLength="50" Nullable="false" />
114     <Property Name="ParentId" Type="varchar" MaxLength="50" />
115     <Property Name="Menu_Name" Type="varchar" MaxLength="50" />
116     <Property Name="Menu_Tag" Type="varchar" MaxLength="50" />
117     <Property Name="Menu_Img" Type="int" />
118     <Property Name="SortCode" Type="int" />
119     <Property Name="CreateDate" Type="datetime" />
120     <Property Name="CreateUserId" Type="varchar" MaxLength="50" />
121     <Property Name="CreateUserName" Type="varchar" MaxLength="50" />
122     <Property Name="ModifyDate" Type="datetime" />
123     <Property Name="ModifyUserId" Type="varchar" MaxLength="50" />
124     <Property Name="ModifyUserName" Type="varchar" MaxLength="50" />
125     <Property Name="Menu_Type" Type="int" Nullable="false" />
126   </EntityType>
127   <EntityType Name="Base_UserInfo">
128     <Key>
129       <PropertyRef Name="User_ID" />
130     </Key>
131     <Property Name="User_ID" Type="varchar" MaxLength="50" Nullable="false" />
132     <Property Name="User_Code" Type="varchar" MaxLength="50" />
133     <Property Name="User_Account" Type="varchar" MaxLength="50" />
134     <Property Name="User_Pwd" Type="varchar" MaxLength="50" />
135     <Property Name="User_Name" Type="varchar" MaxLength="50" />
136     <Property Name="User_Sex" Type="varchar" MaxLength="10" />
137     <Property Name="Title" Type="varchar" MaxLength="50" />
138     <Property Name="Email" Type="varchar" MaxLength="20" />
139     <Property Name="Theme" Type="varchar" MaxLength="50" />
140     <Property Name="DeleteMark" Type="int" />
141     <Property Name="CreateDate" Type="date" />
142     <Property Name="CreateUserId" Type="varchar" MaxLength="50" />
143     <Property Name="CreateUserName" Type="varchar" MaxLength="50" />
144     <Property Name="ModifyDate" Type="date" />
145     <Property Name="ModifyUserId" Type="varchar" MaxLength="50" />
146     <Property Name="ModifyUserName" Type="varchar" MaxLength="50" />
147     <Property Name="User_Remark" Type="varchar(max)" />
148   </EntityType>
149   <EntityType Name="Base_UserRight">
150     <Key>
151       <PropertyRef Name="UserRight_ID" />
152     </Key>
153     <Property Name="UserRight_ID" Type="varchar" MaxLength="50" Nullable="false" />
154     <Property Name="User_ID" Type="varchar" MaxLength="50" />
155     <Property Name="Menu_Id" Type="varchar" MaxLength="50" />
156     <Property Name="CreateDate" Type="datetime" />
157     <Property Name="CreateUserId" Type="varchar" MaxLength="50" />
158     <Property Name="CreateUserName" Type="varchar" MaxLength="50" />
159   </EntityType>
160   <EntityType Name="Base_UserRole">
161     <Key>
162       <PropertyRef Name="UserRole_ID" />
163     </Key>
164     <Property Name="UserRole_ID" Type="varchar" MaxLength="50" Nullable="false" />
165     <Property Name="User_ID" Type="varchar" MaxLength="50" />
166     <Property Name="Roles_ID" Type="varchar" MaxLength="50" />
167     <Property Name="CreateDate" Type="datetime" />
168     <Property Name="CreateUserId" Type="varchar" MaxLength="50" />
169     <Property Name="CreateUserName" Type="varchar" MaxLength="50" />
170   </EntityType>
171   <EntityType Name="sysdiagrams">
172     <Key>
173       <PropertyRef Name="diagram_id" />
174     </Key>
175     <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
176     <Property Name="principal_id" Type="int" Nullable="false" />
177     <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
178     <Property Name="version" Type="int" />
179     <Property Name="definition" Type="varbinary(max)" />
180   </EntityType>
181   <Association Name="FK_Base_AppendPropertyInstance_Base_UserInfo">
182     <End Role="Base_UserInfo" Type="Self.Base_UserInfo" Multiplicity="1" />
183     <End Role="Base_AppendPropertyInstance" Type="Self.Base_AppendPropertyInstance" Multiplicity="*" />
184     <ReferentialConstraint>
185       <Principal Role="Base_UserInfo">
186         <PropertyRef Name="User_ID" />
187       </Principal>
188       <Dependent Role="Base_AppendPropertyInstance">
189         <PropertyRef Name="PropertyInstance_Key" />
190       </Dependent>
191     </ReferentialConstraint>
192   </Association>
193   <Association Name="FK_Base_RoleRight_Base_Roles">
194     <End Role="Base_Roles" Type="Self.Base_Roles" Multiplicity="0..1">
195       <OnDelete Action="Cascade" />
196     </End>
197     <End Role="Base_RoleRight" Type="Self.Base_RoleRight" Multiplicity="*" />
198     <ReferentialConstraint>
199       <Principal Role="Base_Roles">
200         <PropertyRef Name="Roles_ID" />
201       </Principal>
202       <Dependent Role="Base_RoleRight">
203         <PropertyRef Name="Roles_ID" />
204       </Dependent>
205     </ReferentialConstraint>
206   </Association>
207   <Association Name="FK_Base_StaffOrganize_Base_UserInfo">
208     <End Role="Base_UserInfo" Type="Self.Base_UserInfo" Multiplicity="0..1">
209       <OnDelete Action="Cascade" />
210     </End>
211     <End Role="Base_StaffOrganize" Type="Self.Base_StaffOrganize" Multiplicity="*" />
212     <ReferentialConstraint>
213       <Principal Role="Base_UserInfo">
214         <PropertyRef Name="User_ID" />
215       </Principal>
216       <Dependent Role="Base_StaffOrganize">
217         <PropertyRef Name="User_ID" />
218       </Dependent>
219     </ReferentialConstraint>
220   </Association>
221   <Association Name="FK_Base_UserRight_Base_UserInfo">
222     <End Role="Base_UserInfo" Type="Self.Base_UserInfo" Multiplicity="0..1">
223       <OnDelete Action="Cascade" />
224     </End>
225     <End Role="Base_UserRight" Type="Self.Base_UserRight" Multiplicity="*" />
226     <ReferentialConstraint>
227       <Principal Role="Base_UserInfo">
228         <PropertyRef Name="User_ID" />
229       </Principal>
230       <Dependent Role="Base_UserRight">
231         <PropertyRef Name="User_ID" />
232       </Dependent>
233     </ReferentialConstraint>
234   </Association>
235   <Association Name="FK_Base_UserRole_Base_UserInfo">
236     <End Role="Base_UserInfo" Type="Self.Base_UserInfo" Multiplicity="0..1" />
237     <End Role="Base_UserRole" Type="Self.Base_UserRole" Multiplicity="*" />
238     <ReferentialConstraint>
239       <Principal Role="Base_UserInfo">
240         <PropertyRef Name="User_ID" />
241       </Principal>
242       <Dependent Role="Base_UserRole">
243         <PropertyRef Name="User_ID" />
244       </Dependent>
245     </ReferentialConstraint>
246   </Association>
247   <EntityContainer Name="Sam_DBModelStoreContainer">
248     <EntitySet Name="Base_AppendProperty" EntityType="Self.Base_AppendProperty" Schema="dbo" store:Type="Tables" />
249     <EntitySet Name="Base_AppendPropertyInstance" EntityType="Self.Base_AppendPropertyInstance" Schema="dbo" store:Type="Tables" />
250     <EntitySet Name="Base_Log" EntityType="Self.Base_Log" Schema="dbo" store:Type="Tables" />
251     <EntitySet Name="Base_Organization" EntityType="Self.Base_Organization" Schema="dbo" store:Type="Tables" />
252     <EntitySet Name="Base_RoleRight" EntityType="Self.Base_RoleRight" Schema="dbo" store:Type="Tables" />
253     <EntitySet Name="Base_Roles" EntityType="Self.Base_Roles" Schema="dbo" store:Type="Tables" />
254     <EntitySet Name="Base_StaffOrganize" EntityType="Self.Base_StaffOrganize" Schema="dbo" store:Type="Tables" />
255     <EntitySet Name="Base_SysMenu" EntityType="Self.Base_SysMenu" Schema="dbo" store:Type="Tables" />
256     <EntitySet Name="Base_UserInfo" EntityType="Self.Base_UserInfo" Schema="dbo" store:Type="Tables" />
257     <EntitySet Name="Base_UserRight" EntityType="Self.Base_UserRight" Schema="dbo" store:Type="Tables" />
258     <EntitySet Name="Base_UserRole" EntityType="Self.Base_UserRole" Schema="dbo" store:Type="Tables" />
259     <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
260     <AssociationSet Name="FK_Base_AppendPropertyInstance_Base_UserInfo" Association="Self.FK_Base_AppendPropertyInstance_Base_UserInfo">
261       <End Role="Base_UserInfo" EntitySet="Base_UserInfo" />
262       <End Role="Base_AppendPropertyInstance" EntitySet="Base_AppendPropertyInstance" />
263     </AssociationSet>
264     <AssociationSet Name="FK_Base_RoleRight_Base_Roles" Association="Self.FK_Base_RoleRight_Base_Roles">
265       <End Role="Base_Roles" EntitySet="Base_Roles" />
266       <End Role="Base_RoleRight" EntitySet="Base_RoleRight" />
267     </AssociationSet>
268     <AssociationSet Name="FK_Base_StaffOrganize_Base_UserInfo" Association="Self.FK_Base_StaffOrganize_Base_UserInfo">
269       <End Role="Base_UserInfo" EntitySet="Base_UserInfo" />
270       <End Role="Base_StaffOrganize" EntitySet="Base_StaffOrganize" />
271     </AssociationSet>
272     <AssociationSet Name="FK_Base_UserRight_Base_UserInfo" Association="Self.FK_Base_UserRight_Base_UserInfo">
273       <End Role="Base_UserInfo" EntitySet="Base_UserInfo" />
274       <End Role="Base_UserRight" EntitySet="Base_UserRight" />
275     </AssociationSet>
276     <AssociationSet Name="FK_Base_UserRole_Base_UserInfo" Association="Self.FK_Base_UserRole_Base_UserInfo">
277       <End Role="Base_UserInfo" EntitySet="Base_UserInfo" />
278       <End Role="Base_UserRole" EntitySet="Base_UserRole" />
279     </AssociationSet>
280   </EntityContainer>
281 </Schema>