Advertisement
Guest User

webinterface.sql

a guest
Mar 3rd, 2020
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 4.53 KB | None | 0 0
  1. -- ----------------------------
  2. -- Table structure for groups_grants
  3. -- ----------------------------
  4. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[groups_grants]') AND TYPE IN ('U'))
  5.     DROP TABLE [dbo].[groups_grants]
  6. GO
  7.  
  8. CREATE TABLE [dbo].[groups_grants] (
  9.   [groupID] INT  NOT NULL,
  10.   [page] VARCHAR(64) COLLATE French_CI_AS  NULL
  11. )
  12. GO
  13.  
  14. ALTER TABLE [dbo].[groups_grants] SET (LOCK_ESCALATION = TABLE)
  15. GO
  16.  
  17.  
  18. -- ----------------------------
  19. -- Records of groups_grants
  20. -- ----------------------------
  21. INSERT INTO [dbo].[groups_grants] VALUES (N'1', N'char_find')
  22. GO
  23.  
  24. INSERT INTO [dbo].[groups_grants] VALUES (N'1', N'user_check')
  25. GO
  26.  
  27. INSERT INTO [dbo].[groups_grants] VALUES (N'1', N'ban_user')
  28. GO
  29.  
  30. INSERT INTO [dbo].[groups_grants] VALUES (N'1', N'change_game_email')
  31. GO
  32.  
  33. INSERT INTO [dbo].[groups_grants] VALUES (N'1', N'change_password')
  34. GO
  35.  
  36. INSERT INTO [dbo].[groups_grants] VALUES (N'1', N'char_manage')
  37. GO
  38.  
  39. INSERT INTO [dbo].[groups_grants] VALUES (N'1', N'char_rename')
  40. GO
  41.  
  42. INSERT INTO [dbo].[groups_grants] VALUES (N'1', N'customer_info')
  43. GO
  44.  
  45. INSERT INTO [dbo].[groups_grants] VALUES (N'1', N'item_mod')
  46. GO
  47.  
  48. INSERT INTO [dbo].[groups_grants] VALUES (N'1', N'item_del')
  49. GO
  50.  
  51. INSERT INTO [dbo].[groups_grants] VALUES (N'1', N'list_of_banned_users')
  52. GO
  53.  
  54. INSERT INTO [dbo].[groups_grants] VALUES (N'1', N'log')
  55. GO
  56.  
  57. INSERT INTO [dbo].[groups_grants] VALUES (N'1', N'item_add')
  58. GO
  59.  
  60. INSERT INTO [dbo].[groups_grants] VALUES (N'1', N'unban_user')
  61. GO
  62.  
  63.  
  64. -- ----------------------------
  65. -- Table structure for groups_users
  66. -- ----------------------------
  67. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[groups_users]') AND TYPE IN ('U'))
  68.     DROP TABLE [dbo].[groups_users]
  69. GO
  70.  
  71. CREATE TABLE [dbo].[groups_users] (
  72.   [groupID] INT  NOT NULL,
  73.   [userID] INT  NULL
  74. )
  75. GO
  76.  
  77. ALTER TABLE [dbo].[groups_users] SET (LOCK_ESCALATION = TABLE)
  78. GO
  79.  
  80.  
  81. -- ----------------------------
  82. -- Records of groups_users
  83. -- ----------------------------
  84. INSERT INTO [dbo].[groups_users] VALUES (N'1', N'1')
  85. GO
  86.  
  87.  
  88. -- ----------------------------
  89. -- Table structure for log
  90. -- ----------------------------
  91. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[log]') AND TYPE IN ('U'))
  92.     DROP TABLE [dbo].[log]
  93. GO
  94.  
  95. CREATE TABLE [dbo].[log] (
  96.   [userID] nvarchar(64) COLLATE French_CI_AS  NULL,
  97.   [page] VARCHAR(64) COLLATE French_CI_AS  NULL,
  98.   [TIMESTAMP] nvarchar(64) COLLATE French_CI_AS  NULL,
  99.   [userID2] nvarchar(64) COLLATE French_CI_AS  NULL,
  100.   [msg] nvarchar(64) COLLATE French_CI_AS DEFAULT ((0)) NULL,
  101.   [msg2] nvarchar(64) COLLATE French_CI_AS DEFAULT ((0)) NULL,
  102.   [msg3] nvarchar(64) COLLATE French_CI_AS DEFAULT ((0)) NULL,
  103.   [msg4] nvarchar(64) COLLATE French_CI_AS DEFAULT ((0)) NULL,
  104.   [msg5] nvarchar(64) COLLATE French_CI_AS DEFAULT ((0)) NULL
  105. )
  106. GO
  107.  
  108. ALTER TABLE [dbo].[log] SET (LOCK_ESCALATION = TABLE)
  109. GO
  110.  
  111.  
  112. -- ----------------------------
  113. -- Records of log
  114. -- ----------------------------
  115. INSERT INTO [dbo].[log] VALUES (N'1', N'item_add', N'2019-03-30 22:33:46', N'1000002', N'20180', N'', N'', N'', N'')
  116. GO
  117.  
  118. INSERT INTO [dbo].[log] VALUES (N'1', N'unban_user', N'2019-03-30 22:42:43', N'1000002', N'test (web from 127.0.0.1 by admin)', N'', N'', N'', N'')
  119. GO
  120.  
  121. INSERT INTO [dbo].[log] VALUES (N'1', N'item_add', N'2019-05-26 20:00:29', N'100002', N'20180', N'', N'', N'', N'')
  122. GO
  123.  
  124. INSERT INTO [dbo].[log] VALUES (N'1', N'unban_user', N'2019-05-31 15:33:01', N'1004655', N'not reason for banned (web from 127.0.0.1 by admin)', N'', N'', N'', N'')
  125. GO
  126.  
  127.  
  128. -- ----------------------------
  129. -- Table structure for users
  130. -- ----------------------------
  131. IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[users]') AND TYPE IN ('U'))
  132.     DROP TABLE [dbo].[users]
  133. GO
  134.  
  135. CREATE TABLE [dbo].[users] (
  136.   [id] INT  NOT NULL,
  137.   [name] VARCHAR(64) COLLATE French_CI_AS  NULL,
  138.   [password] VARCHAR(64) COLLATE French_CI_AS  NULL,
  139.   [SESSION] nvarchar(64) COLLATE French_CI_AS  NULL,
  140.   [access] nvarchar(64) COLLATE French_CI_AS  NULL
  141. )
  142. GO
  143.  
  144. ALTER TABLE [dbo].[users] SET (LOCK_ESCALATION = TABLE)
  145. GO
  146.  
  147.  
  148. -- ----------------------------
  149. -- Records of users
  150. -- ----------------------------
  151. INSERT INTO [dbo].[users] VALUES (N'1', N'admin', N'2a1da1e23f38403dbb258359ace90e11', N'5cfbf8833eaa9', N'2019-06-08 15:03:47')
  152. GO
  153.  
  154.  
  155. -- ----------------------------
  156. -- Primary Key structure for table users
  157. -- ----------------------------
  158. ALTER TABLE [dbo].[users] ADD CONSTRAINT [PK__users__3213E83F7F60ED59] PRIMARY KEY CLUSTERED ([id])
  159. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
  160. ON [PRIMARY]
  161. GO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement