1 --CREATE DATABASE center
2 --USE center
3 --GO
4 CREATE TABLE [dbo].[admin_user](
5 [user_name] [nvarchar](50) PRIMARY KEY NOT NULL,
6 [pass_word] [nvarchar](100) NOT NULL,
7 [user_full_name] [nvarchar](100) NULL,
8 [user_status] [int] NOT NULL,
9 [last_lgoin_date] [datetime] NULL,
10 [last_login_ip] [nvarchar](255) NULL,
11 [creator_name] [nvarchar](50) NOT NULL,
12 [creator_date] [datetime] NOT NULL,
13 [modifi_name] [nvarchar](50) NULL,
14 [modifi_date] [datetime] NULL,
15 [user_img] [varchar](max) NULL
16 )
17 GO
18
19 CREATE TABLE [dbo].[admin_user_role_relation](
20 [id] [INT] PRIMARY KEY IDENTITY(1,1) NOT NULL,
21 [user_name] [nvarchar](50) NOT NULL,
22 [role_id] [int] NOT NULL,
23 [creator_name] [nvarchar](50) NOT NULL,
24 [creator_date] [datetime] NOT NULL
25 )
26 GO
27
28 CREATE TABLE [dbo].[dictionary_table](
29 [dt_key] [nvarchar](100) PRIMARY KEY NOT NULL,
30 [dt_type_key] [nvarchar](100) NOT NULL,
31 [dt_name] [nvarchar](100) NOT NULL,
32 [dt_status] [int] NOT NULL,
33 [dt_orderby] [decimal](18, 2) NOT NULL,
34 [creator_name] [nvarchar](50) NOT NULL,
35 [creator_date] [datetime] NOT NULL,
36 [modifi_name] [nvarchar](50) NULL,
37 [modifi_date] [datetime] NULL
38 )
39 GO
40
41 CREATE TABLE [dbo].[dictionary_type_table](
42 [dt_type_key] [nvarchar](100) PRIMARY KEY NOT NULL,
43 [dt_type_name] [nvarchar](100) NOT NULL,
44 [dt_type_remark] [nvarchar](200) NULL,
45 [dt_type_orderby] [decimal](18, 0) NOT NULL,
46 [creator_name] [nvarchar](50) NOT NULL,
47 [creator_date] [datetime] NOT NULL,
48 [modifi_name] [nvarchar](50) NULL,
49 [modifi_date] [datetime] NULL
50 )
51 GO
52
53 CREATE TABLE [dbo].[module_db](
54 [module_code] [nvarchar](50) PRIMARY KEY NOT NULL,
55 [module_name] [nvarchar](100) NOT NULL,
56 [parent_code] [nvarchar](50) NOT NULL,
57 [module_level] [int] NOT NULL,
58 [is_menu] [int] NOT NULL,
59 [is_action] [int] NOT NULL,
60 [action_url] [nvarchar](500) NULL,
61 [order_by] [decimal](10, 0) NOT NULL,
62 [module_status] [int] NOT NULL,
63 [creator_name] [nvarchar](50) NOT NULL,
64 [creator_date] [datetime] NOT NULL,
65 [modifi_name] [nvarchar](50) NULL,
66 [modifi_date] [datetime] NULL
67 )
68 GO
69
70 CREATE TABLE [dbo].[role_db](
71 [role_id] [INT] PRIMARY KEY IDENTITY(1,1) NOT NULL,
72 [role_name] [nvarchar](50) NOT NULL,
73 [role_status] [int] NOT NULL,
74 [creator_name] [nvarchar](50) NOT NULL,
75 [creator_date] [datetime] NOT NULL,
76 [modifi_name] [nvarchar](50) NULL,
77 [modifi_date] [datetime] NULL
78 )
79 GO
80
81 CREATE TABLE [dbo].[role_module_relation](
82 [id] [INT] PRIMARY KEY IDENTITY(1,1) NOT NULL,
83 [role_id] [int] NOT NULL,
84 [module_code] [nvarchar](255) NOT NULL,
85 [creator_name] [nvarchar](50) NOT NULL,
86 [creator_date] [datetime] NOT NULL
87 )
88 GO
89 INSERT [dbo].[admin_user] ([user_name], [pass_word], [user_full_name], [user_status], [last_lgoin_date], [last_login_ip], [creator_name], [creator_date], [modifi_name], [modifi_date], [user_img]) VALUES (N'adm', N'dc2e86a6ae8315a3da26cae880baae8e', N'adm', 1, NULL, NULL, N'admin', CAST(N'2019-05-28T12:44:12.380' AS DateTime), NULL, NULL, NULL)
90 INSERT [dbo].[admin_user] ([user_name], [pass_word], [user_full_name], [user_status], [last_lgoin_date], [last_login_ip], [creator_name], [creator_date], [modifi_name], [modifi_date], [user_img]) VALUES (N'admin', N'dc2e86a6ae8315a3da26cae880baae8e', N'Administrators', 1, CAST(N'2019-05-28T14:48:15.503' AS DateTime), N'::1', N'admin', CAST(N'2019-05-01T00:00:00.000' AS DateTime), NULL, NULL, NULL)
91 INSERT [dbo].[admin_user] ([user_name], [pass_word], [user_full_name], [user_status], [last_lgoin_date], [last_login_ip], [creator_name], [creator_date], [modifi_name], [modifi_date], [user_img]) VALUES (N'test', N'dc2e86a6ae8315a3da26cae880baae8e', N'Test Account', 1, CAST(N'2019-05-21T11:29:30.137' AS DateTime), N'::1', N'admin', CAST(N'2019-05-05T14:02:23.687' AS DateTime), NULL, NULL, NULL)
92 SET IDENTITY_INSERT [dbo].[admin_user_role_relation] ON
93
94 INSERT [dbo].[admin_user_role_relation] ([id], [user_name], [role_id], [creator_name], [creator_date]) VALUES (40, N'admin', 2, N'admin', CAST(N'2019-05-01T00:00:00.000' AS DateTime))
95 INSERT [dbo].[admin_user_role_relation] ([id], [user_name], [role_id], [creator_name], [creator_date]) VALUES (120, N'admin', 1, N'admin', CAST(N'2019-05-01T00:00:00.000' AS DateTime))
96 INSERT [dbo].[admin_user_role_relation] ([id], [user_name], [role_id], [creator_name], [creator_date]) VALUES (123, N'test', 2, N'admin', CAST(N'2019-05-05T14:02:23.687' AS DateTime))
97 INSERT [dbo].[admin_user_role_relation] ([id], [user_name], [role_id], [creator_name], [creator_date]) VALUES (124, N'adm', 1, N'admin', CAST(N'2019-05-28T12:44:12.380' AS DateTime))
98 INSERT [dbo].[admin_user_role_relation] ([id], [user_name], [role_id], [creator_name], [creator_date]) VALUES (125, N'adm', 2, N'admin', CAST(N'2019-05-28T12:44:12.380' AS DateTime))
99 SET IDENTITY_INSERT [dbo].[admin_user_role_relation] OFF
100 INSERT [dbo].[dictionary_table] ([dt_key], [dt_type_key], [dt_name], [dt_status], [dt_orderby], [creator_name], [creator_date], [modifi_name], [modifi_date]) VALUES (N'fa-sex-false', N'fa-sex', N'female', 1, CAST(1.00 AS Decimal(18, 2)), N'admin', CAST(N'2019-05-07T13:51:17.207' AS DateTime), NULL, NULL)
101 INSERT [dbo].[dictionary_table] ([dt_key], [dt_type_key], [dt_name], [dt_status], [dt_orderby], [creator_name], [creator_date], [modifi_name], [modifi_date]) VALUES (N'fa-sex-true', N'fa-sex', N'male', 1, CAST(0.00 AS Decimal(18, 2)), N'admin', CAST(N'2019-05-07T13:50:48.100' AS DateTime), NULL, NULL)
102 INSERT [dbo].[dictionary_type_table] ([dt_type_key], [dt_type_name], [dt_type_remark], [dt_type_orderby], [creator_name], [creator_date], [modifi_name], [modifi_date]) VALUES (N'fa-sex', N'Gender', N'Gender', CAST(0 AS Decimal(18, 0)), N'admin', CAST(N'2019-05-07T13:49:48.733' AS DateTime), NULL, NULL)
103 INSERT [dbo].[module_db] ([module_code], [module_name], [parent_code], [module_level], [is_menu], [is_action], [action_url], [order_by], [module_status], [creator_name], [creator_date], [modifi_name], [modifi_date]) VALUES (N'fa-book', N'Dictionary Management', N'fa-puzzle-piece', 3, 1, 1, N'DictionaryManager/List', CAST(0 AS Decimal(10, 0)), 1, N'admin', CAST(N'2019-05-01T00:00:00.000' AS DateTime), NULL, NULL)
104 INSERT [dbo].[module_db] ([module_code], [module_name], [parent_code], [module_level], [is_menu], [is_action], [action_url], [order_by], [module_status], [creator_name], [creator_date], [modifi_name], [modifi_date]) VALUES (N'fa-desktop', N'system management', N'yixin_public', 2, 1, 2, N'', CAST(0 AS Decimal(10, 0)), 1, N'admin', CAST(N'2019-05-01T00:00:00.000' AS DateTime), N'admin', CAST(N'2019-05-01T00:00:00.000' AS DateTime))
105 INSERT [dbo].[module_db] ([module_code], [module_name], [parent_code], [module_level], [is_menu], [is_action], [action_url], [order_by], [module_status], [creator_name], [creator_date], [modifi_name], [modifi_date]) VALUES (N'fa-graduation-cap', N'Module menu management', N'fa-desktop', 3, 1, 1, N'ModuleManager/list', CAST(3 AS Decimal(10, 0)), 1, N'admin', CAST(N'2019-05-01T00:00:00.000' AS DateTime), N'admin', CAST(N'2019-05-01T00:00:00.000' AS DateTime))
106 INSERT [dbo].[module_db] ([module_code], [module_name], [parent_code], [module_level], [is_menu], [is_action], [action_url], [order_by], [module_status], [creator_name], [creator_date], [modifi_name], [modifi_date]) VALUES (N'fa-paw', N'Role management', N'fa-desktop', 3, 1, 1, N'rolemanager/list', CAST(1 AS Decimal(10, 0)), 1, N'admin', CAST(N'2019-05-01T00:00:00.000' AS DateTime), NULL, NULL)
107 INSERT [dbo].[module_db] ([module_code], [module_name], [parent_code], [module_level], [is_menu], [is_action], [action_url], [order_by], [module_status], [creator_name], [creator_date], [modifi_name], [modifi_date]) VALUES (N'fa-puzzle-piece', N'configuration management', N'yixin_public', 2, 1, 2, N'', CAST(2 AS Decimal(10, 0)), 1, N'admin', CAST(N'2019-05-01T00:00:00.000' AS DateTime), NULL, NULL)
108 INSERT [dbo].[module_db] ([module_code], [module_name], [parent_code], [module_level], [is_menu], [is_action], [action_url], [order_by], [module_status], [creator_name], [creator_date], [modifi_name], [modifi_date]) VALUES (N'fa-th-list', N'Dictionary Category Management', N'fa-puzzle-piece', 3, 1, 1, N'DictionaryTypeManager/List', CAST(1 AS Decimal(10, 0)), 1, N'admin', CAST(N'2019-05-01T00:00:00.000' AS DateTime), N'admin', CAST(N'2019-05-01T00:00:00.000' AS DateTime))
109 INSERT [dbo].[module_db] ([module_code], [module_name], [parent_code], [module_level], [is_menu], [is_action], [action_url], [order_by], [module_status], [creator_name], [creator_date], [modifi_name], [modifi_date]) VALUES (N'fa-user', N'user management', N'fa-desktop', 3, 1, 1, N'AdminUserManager/list', CAST(3 AS Decimal(10, 0)), 1, N'admin', CAST(N'2019-05-01T00:00:00.000' AS DateTime), NULL, NULL)
110 INSERT [dbo].[module_db] ([module_code], [module_name], [parent_code], [module_level], [is_menu], [is_action], [action_url], [order_by], [module_status], [creator_name], [creator_date], [modifi_name], [modifi_date]) VALUES (N'yixin_public', N'XX Public Platform', N'', 1, 1, 2, N'', CAST(0 AS Decimal(10, 0)), 1, N'admin', CAST(N'2019-05-01T00:00:00.000' AS DateTime), N'admin', NULL)
111 SET IDENTITY_INSERT [dbo].[role_db] ON
112
113 INSERT [dbo].[role_db] ([role_id], [role_name], [role_status], [creator_name], [creator_date], [modifi_name], [modifi_date]) VALUES (1, N'Administrators', 1, N'admin', CAST(N'2019-05-01T00:00:00.000' AS DateTime), N'admin', CAST(N'2019-05-01T00:00:00.000' AS DateTime))
114 INSERT [dbo].[role_db] ([role_id], [role_name], [role_status], [creator_name], [creator_date], [modifi_name], [modifi_date]) VALUES (2, N'user', 1, N'admin', CAST(N'2019-05-01T00:00:00.000' AS DateTime), N'admin', CAST(N'2019-05-21T11:29:05.307' AS DateTime))
115 SET IDENTITY_INSERT [dbo].[role_db] OFF
116 SET IDENTITY_INSERT [dbo].[role_module_relation] ON
117
118 INSERT [dbo].[role_module_relation] ([id], [role_id], [module_code], [creator_name], [creator_date]) VALUES (127, 1, N'yixin_public', N'admin', CAST(N'2019-05-01T00:00:00.000' AS DateTime))
119 INSERT [dbo].[role_module_relation] ([id], [role_id], [module_code], [creator_name], [creator_date]) VALUES (128, 1, N'fa-desktop', N'admin', CAST(N'2019-05-01T00:00:00.000' AS DateTime))
120 INSERT [dbo].[role_module_relation] ([id], [role_id], [module_code], [creator_name], [creator_date]) VALUES (131, 1, N'fa-puzzle-piece', N'admin', CAST(N'2019-05-01T00:00:00.000' AS DateTime))
121 INSERT [dbo].[role_module_relation] ([id], [role_id], [module_code], [creator_name], [creator_date]) VALUES (132, 1, N'fa-paw', N'admin', CAST(N'2019-05-01T00:00:00.000' AS DateTime))
122 INSERT [dbo].[role_module_relation] ([id], [role_id], [module_code], [creator_name], [creator_date]) VALUES (133, 1, N'fa-graduation-cap', N'admin', CAST(N'2019-05-01T00:00:00.000' AS DateTime))
123 INSERT [dbo].[role_module_relation] ([id], [role_id], [module_code], [creator_name], [creator_date]) VALUES (134, 1, N'fa-user', N'admin', CAST(N'2019-05-01T00:00:00.000' AS DateTime))
124 INSERT [dbo].[role_module_relation] ([id], [role_id], [module_code], [creator_name], [creator_date]) VALUES (135, 1, N'fa-th-list', N'admin', CAST(N'2019-05-01T00:00:00.000' AS DateTime))
125 INSERT [dbo].[role_module_relation] ([id], [role_id], [module_code], [creator_name], [creator_date]) VALUES (136, 1, N'fa-book', N'admin', CAST(N'2019-05-01T00:00:00.000' AS DateTime))
126 INSERT [dbo].[role_module_relation] ([id], [role_id], [module_code], [creator_name], [creator_date]) VALUES (1226, 2, N'yixin_public', N'admin', CAST(N'2019-05-21T11:29:05.307' AS DateTime))
127 INSERT [dbo].[role_module_relation] ([id], [role_id], [module_code], [creator_name], [creator_date]) VALUES (1227, 2, N'afghfeat', N'admin', CAST(N'2019-05-21T11:29:05.307' AS DateTime))
128 INSERT [dbo].[role_module_relation] ([id], [role_id], [module_code], [creator_name], [creator_date]) VALUES (1228, 2, N'fa-puzzle-piece', N'admin', CAST(N'2019-05-21T11:29:05.307' AS DateTime))
129 INSERT [dbo].[role_module_relation] ([id], [role_id], [module_code], [creator_name], [creator_date]) VALUES (1229, 2, N'fa-book', N'admin', CAST(N'2019-05-21T11:29:05.307' AS DateTime))
130 INSERT [dbo].[role_module_relation] ([id], [role_id], [module_code], [creator_name], [creator_date]) VALUES (1230, 2, N'fa-th-list', N'admin', CAST(N'2019-05-21T11:29:05.307' AS DateTime))
131 SET IDENTITY_INSERT [dbo].[role_module_relation] OFF
132 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'User name' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'admin_user', @level2type=N'COLUMN',@level2name=N'user_name'
133 GO
134 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'User password ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'admin_user', @level2type=N'COLUMN',@level2name=N'pass_word'
135 GO
136 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Full Name' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'admin_user', @level2type=N'COLUMN',@level2name=N'user_full_name'
137 GO
138 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'User State 1:Effective 2:invalid' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'admin_user', @level2type=N'COLUMN',@level2name=N'user_status'
139 GO
140 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Last logon date' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'admin_user', @level2type=N'COLUMN',@level2name=N'last_lgoin_date'
141 GO
142 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Last logon ip' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'admin_user', @level2type=N'COLUMN',@level2name=N'last_login_ip'
143 GO
144 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Creator login name' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'admin_user', @level2type=N'COLUMN',@level2name=N'creator_name'
145 GO
146 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Creation date' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'admin_user', @level2type=N'COLUMN',@level2name=N'creator_date'
147 GO
148 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Modifier login name' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'admin_user', @level2type=N'COLUMN',@level2name=N'modifi_name'
149 GO
150 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'modification date' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'admin_user', @level2type=N'COLUMN',@level2name=N'modifi_date'
151 GO
152 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Creator login name' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'admin_user_role_relation', @level2type=N'COLUMN',@level2name=N'creator_name'
153 GO
154 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Creation time' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'admin_user_role_relation', @level2type=N'COLUMN',@level2name=N'creator_date'
155 GO
156 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Dictionaries key' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'dictionary_table', @level2type=N'COLUMN',@level2name=N'dt_key'
157 GO
158 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Dictionary Categories key' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'dictionary_table', @level2type=N'COLUMN',@level2name=N'dt_type_key'
159 GO
160 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Dictionary Name' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'dictionary_table', @level2type=N'COLUMN',@level2name=N'dt_name'
161 GO
162 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Dictionary State 1:Effective 2:invalid' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'dictionary_table', @level2type=N'COLUMN',@level2name=N'dt_status'
163 GO
164 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'sort field' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'dictionary_table', @level2type=N'COLUMN',@level2name=N'dt_orderby'
165 GO
166 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Creator login name' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'dictionary_table', @level2type=N'COLUMN',@level2name=N'creator_name'
167 GO
168 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Creation date' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'dictionary_table', @level2type=N'COLUMN',@level2name=N'creator_date'
169 GO
170 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Modifier login name' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'dictionary_table', @level2type=N'COLUMN',@level2name=N'modifi_name'
171 GO
172 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'modification date' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'dictionary_table', @level2type=N'COLUMN',@level2name=N'modifi_date'
173 GO
174 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Dictionary Categories' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'dictionary_type_table', @level2type=N'COLUMN',@level2name=N'dt_type_key'
175 GO
176 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Dictionary Category Name' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'dictionary_type_table', @level2type=N'COLUMN',@level2name=N'dt_type_name'
177 GO
178 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Dictionary Category Remarks' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'dictionary_type_table', @level2type=N'COLUMN',@level2name=N'dt_type_remark'
179 GO
180 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Founder' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'dictionary_type_table', @level2type=N'COLUMN',@level2name=N'creator_name'
181 GO
182 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Creation time' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'dictionary_type_table', @level2type=N'COLUMN',@level2name=N'creator_date'
183 GO
184 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Modifier' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'dictionary_type_table', @level2type=N'COLUMN',@level2name=N'modifi_name'
185 GO
186 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Modification time' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'dictionary_type_table', @level2type=N'COLUMN',@level2name=N'modifi_date'
187 GO
188 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Modular code' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'module_db', @level2type=N'COLUMN',@level2name=N'module_code'
189 GO
190 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Module name' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'module_db', @level2type=N'COLUMN',@level2name=N'module_name'
191 GO
192 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Parent module code' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'module_db', @level2type=N'COLUMN',@level2name=N'parent_code'
193 GO
194 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Module level' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'module_db', @level2type=N'COLUMN',@level2name=N'module_level'
195 GO
196 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Is it menu 1?:Menu 2:Not menus' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'module_db', @level2type=N'COLUMN',@level2name=N'is_menu'
197 GO
198 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Is it menu 1?:Request 2:Not menus' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'module_db', @level2type=N'COLUMN',@level2name=N'is_action'
199 GO
200 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'request url' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'module_db', @level2type=N'COLUMN',@level2name=N'action_url'
201 GO
202 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'sort field' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'module_db', @level2type=N'COLUMN',@level2name=N'order_by'
203 GO
204 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Module State 1:Effective 2:invalid' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'module_db', @level2type=N'COLUMN',@level2name=N'module_status'
205 GO
206 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Creator username' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'module_db', @level2type=N'COLUMN',@level2name=N'creator_name'
207 GO
208 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Creation date' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'module_db', @level2type=N'COLUMN',@level2name=N'creator_date'
209 GO
210 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Modify User Name' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'module_db', @level2type=N'COLUMN',@level2name=N'modifi_name'
211 GO
212 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'modification date' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'module_db', @level2type=N'COLUMN',@level2name=N'modifi_date'
213 GO
214 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'role id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'role_module_relation', @level2type=N'COLUMN',@level2name=N'role_id'
215 GO
216 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Modular code' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'role_module_relation', @level2type=N'COLUMN',@level2name=N'module_code'
217 GO
218 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Create User Name' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'role_module_relation', @level2type=N'COLUMN',@level2name=N'creator_name'
219 GO
220 EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Creation time' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'role_module_relation', @level2type=N'COLUMN',@level2name=N'creator_date'
221 GO
Database Code