mvnForum_sqlserver.sql
上传用户:zghglow
上传日期:2022-08-09
资源大小:27227k
文件大小:28k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

JavaScript

  1. -- $Header: /cvsroot/mvnforum/mvnforum/sql/mvnForum_sqlserver.sql,v 1.16 2006/03/29 19:14:37 minhnn Exp $
  2. -- $Author: minhnn $
  3. -- $Revision: 1.16 $
  4. -- $Date: 2006/03/29 19:14:37 $
  5. -- Database : Sql Server
  6. -- Driver   : com.microsoft.jdbc.sqlserver.SQLServerDriver
  7. -- Url      : jdbc:microsoft:sqlserver://hostname:port;DatabaseName=<database>[;property=value...] 
  8. -- Download driver at : http://msdn.microsoft.com/data/jdbc/
  9. -- Things should be considered when port this file to other database
  10. -- AUTO_INCREMENT : IDENTITY
  11. -- LONGVARCHAR    : NTEXT
  12. -- DATE           : DATETIME
  13. -- TIMESTAMP      : DATETIME
  14. -- VARCHAR        : NVARCHAR
  15. -- BLOB           : 
  16. -- now()          : GETDATE()
  17. -- Uncomment the following drop table command if you want to drop the tables
  18. -- Note: drop tables will delete all the data in them.
  19. -- Note: you should always backup your data before run the script
  20. -- drop table mvnforumCategory;
  21. -- drop table mvnforumForum;
  22. -- drop table mvnforumGroupForum;
  23. -- drop table mvnforumGroupPermission;
  24. -- drop table mvnforumGroups;
  25. -- drop table mvnforumMember;
  26. -- drop table mvnforumMemberGroup;
  27. -- drop table mvnforumMemberPermission;
  28. -- drop table mvnforumMessageFolder;
  29. -- drop table mvnforumPost;
  30. -- drop table mvnforumThread;
  31. -- drop table mvnforumWatch;
  32. -- drop table mvnforumAttachment;
  33. -- drop table mvnforumMemberForum;
  34. -- drop table mvnforumFavoriteThread;
  35. -- drop table mvnforumRank;
  36. -- drop table mvnforumMessage;
  37. -- drop table mvnforumMessageStatistics;
  38. -- drop table mvnforumPmAttachment;
  39. -- drop table mvnforumPmAttachMessage;
  40. CREATE TABLE mvnforumCategory
  41. (
  42.    CategoryID                     INT                            not null IDENTITY,
  43.    ParentCategoryID               INT                            not null,
  44.    CategoryName                   NVARCHAR(250)                  not null,
  45.    CategoryDesc                   NTEXT                          not null,
  46.    CategoryCreationDate           DATETIME                       not null,
  47.    CategoryModifiedDate           DATETIME                       not null,
  48.    CategoryOrder                  SMALLINT                       not null,
  49.    CategoryOption                 INT                            not null,
  50.    CategoryStatus                 INT                            not null,
  51.    primary key (CategoryID),
  52.    unique (CategoryName)
  53. );
  54. CREATE TABLE mvnforumForum
  55. (
  56.    ForumID                        INT                            not null IDENTITY,
  57.    CategoryID                     INT                            not null,
  58.    LastPostMemberName             NVARCHAR(30)                   not null,
  59.    ForumName                      NVARCHAR(250)                  not null,
  60.    ForumDesc                      NTEXT                          not null,
  61.    ForumCreationDate              DATETIME                       not null,
  62.    ForumModifiedDate              DATETIME                       not null,
  63.    ForumLastPostDate              DATETIME                       not null,
  64.    ForumOrder                     SMALLINT                       not null,
  65.    ForumType                      INT                            not null,
  66.    ForumFormatOption              INT                            not null,
  67.    ForumOption                    INT                            not null,
  68.    ForumStatus                    INT                            not null,
  69.    ForumModerationMode            INT                            not null,
  70.    ForumPassword                  NVARCHAR(40)                   not null,
  71.    ForumThreadCount               INT                            not null,
  72.    ForumPostCount                 INT                            not null,
  73.    primary key (ForumID),
  74.    unique (ForumName, CategoryID)
  75. );
  76. CREATE INDEX Forum_CatID_idx on mvnforumForum
  77. (
  78.    CategoryID
  79. );
  80. CREATE TABLE mvnforumGroupForum
  81. (
  82.    GroupID                        INT                            not null,
  83.    ForumID                        INT                            not null,
  84.    Permission                     INT                            not null,
  85.    primary key (GroupID, ForumID, Permission)
  86. );
  87. CREATE INDEX GroupForum_1_idx on mvnforumGroupForum
  88. (
  89.    GroupID
  90. );
  91. CREATE INDEX GroupForum_2_idx on mvnforumGroupForum
  92. (
  93.    ForumID
  94. );
  95. CREATE TABLE mvnforumGroupPermission
  96. (
  97.    GroupID                        INT                            not null,
  98.    Permission                     INT                            not null,
  99.    primary key (GroupID, Permission)
  100. );
  101. CREATE INDEX GroupPermission_1_idx on mvnforumGroupPermission
  102. (
  103.    GroupID
  104. );
  105. CREATE TABLE mvnforumGroups
  106. (
  107.    GroupID                        INT                            not null IDENTITY,
  108.    GroupOwnerID                   INT                            not null,
  109.    GroupOwnerName                 NVARCHAR(30)                   not null,
  110.    GroupName                      NVARCHAR(250)                  not null,
  111.    GroupDesc                      NTEXT                          not null,
  112.    GroupOption                    INT                            not null,
  113.    GroupCreationDate              DATETIME                       not null,
  114.    GroupModifiedDate              DATETIME                       not null,
  115.    primary key (GroupID),
  116.    unique (GroupName)
  117. );
  118. CREATE TABLE mvnforumMember
  119. (
  120.    MemberID                       INT                            not null IDENTITY,
  121.    MemberName                     NVARCHAR(30)                   not null,
  122.    MemberPassword                 NVARCHAR(200)                  not null,
  123.    MemberFirstEmail               NVARCHAR(60)                   not null,
  124.    MemberEmail                    NVARCHAR(60)                   not null,
  125.    MemberEmailVisible             SMALLINT                       not null,
  126.    MemberNameVisible              SMALLINT                       not null,
  127.    MemberFirstIP                  NVARCHAR(20)                   not null,
  128.    MemberLastIP                   NVARCHAR(20)                   not null,
  129.    MemberViewCount                INT                            not null,
  130.    MemberPostCount                INT                            not null,
  131.    MemberCreationDate             DATETIME                       not null,
  132.    MemberModifiedDate             DATETIME                       not null,
  133.    MemberExpireDate               DATETIME                       not null,
  134.    MemberLastLogon                DATETIME                       not null,
  135.    MemberOption                   INT                            not null,
  136.    MemberStatus                   INT                            not null,
  137.    MemberActivateCode             NVARCHAR(40)                   not null,
  138.    MemberTempPassword             NVARCHAR(40)                   not null,
  139.    MemberMessageCount             INT                            not null,
  140.    MemberMessageOption            INT                            not null,
  141.    MemberPostsPerPage             SMALLINT                       not null,
  142.    MemberWarnCount                SMALLINT                       not null,
  143.    MemberVoteCount                INT                            not null,
  144.    MemberVoteTotalStars           INT                            not null,
  145.    MemberRewardPoints             INT                            not null,
  146.    MemberTitle                    NVARCHAR(250)                  not null,
  147.    MemberTimeZone                 FLOAT                          not null,
  148.    MemberSignature                NVARCHAR(250)                  not null,
  149.    MemberAvatar                   NVARCHAR(200)                  not null,
  150.    MemberSkin                     NVARCHAR(70)                   not null,
  151.    MemberLanguage                 NVARCHAR(70)                   not null,
  152.    MemberFirstname                NVARCHAR(70)                   not null,
  153.    MemberLastname                 NVARCHAR(70)                   not null,
  154.    MemberGender                   SMALLINT                       not null,
  155.    MemberBirthday                 DATETIME                       not null,
  156.    MemberAddress                  NVARCHAR(150)                  not null,
  157.    MemberCity                     NVARCHAR(70)                   not null,
  158.    MemberState                    NVARCHAR(70)                   not null,
  159.    MemberCountry                  NVARCHAR(70)                   not null,
  160.    MemberPhone                    NVARCHAR(40)                   not null,
  161.    MemberMobile                   NVARCHAR(40)                   not null,
  162.    MemberFax                      NVARCHAR(40)                   not null,
  163.    MemberCareer                   NVARCHAR(50)                   not null,
  164.    MemberHomepage                 NVARCHAR(200)                  not null,
  165.    MemberYahoo                    NVARCHAR(70)                   not null,
  166.    MemberAol                      NVARCHAR(70)                   not null,
  167.    MemberIcq                      NVARCHAR(70)                   not null,
  168.    MemberMsn                      NVARCHAR(70)                   not null,
  169.    MemberCoolLink1                NVARCHAR(200)                  not null,
  170.    MemberCoolLink2                NVARCHAR(200)                  not null,
  171.    primary key (MemberID),
  172.    unique (MemberEmail),
  173.    unique (MemberName)
  174. );
  175. CREATE TABLE mvnforumMemberGroup
  176. (
  177.    GroupID                        INT                            not null,
  178.    MemberID                       INT                            not null,
  179.    MemberName                     NVARCHAR(30)                   not null,
  180.    Privilege                      INT                            not null,
  181.    CreationDate                   DATETIME                       not null,
  182.    ModifiedDate                   DATETIME                       not null,
  183.    primary key (GroupID, MemberID)
  184. );
  185. CREATE INDEX MemberGroup_1_idx on mvnforumMemberGroup
  186. (
  187.    MemberID
  188. );
  189. CREATE INDEX MemberGroup_2_idx on mvnforumMemberGroup
  190. (
  191.    GroupID
  192. );
  193. CREATE TABLE mvnforumMemberPermission
  194. (
  195.    MemberID                       INT                            not null,
  196.    Permission                     INT                            not null,
  197.    primary key (MemberID, Permission)
  198. );
  199. CREATE INDEX MemberPermission_1_idx on mvnforumMemberPermission
  200. (
  201.    MemberID
  202. );
  203. CREATE TABLE mvnforumMessageFolder
  204. (
  205.    FolderName                     NVARCHAR(30)                   not null,
  206.    MemberID                       INT                            not null,
  207.    FolderOrder                    SMALLINT                       not null,
  208.    FolderStatus                   INT                            not null,
  209.    FolderOption                   INT                            not null,
  210.    FolderType                     INT                            not null,
  211.    FolderCreationDate             DATETIME                       not null,
  212.    FolderModifiedDate             DATETIME                       not null,
  213.    primary key (FolderName, MemberID)
  214. );
  215. CREATE INDEX MessageFolder_1_idx on mvnforumMessageFolder
  216. (
  217.    MemberID
  218. );
  219. CREATE TABLE mvnforumPost
  220. (
  221.    PostID                         INT                            not null IDENTITY,
  222.    ParentPostID                   INT                            not null,
  223.    ForumID                        INT                            not null,
  224.    ThreadID                       INT                            not null,
  225.    MemberID                       INT                            not null,
  226.    MemberName                     NVARCHAR(30)                   not null,
  227.    LastEditMemberName             NVARCHAR(30)                   not null,
  228.    PostTopic                      NVARCHAR(250)                  not null,
  229.    PostBody                       NTEXT                          not null,
  230.    PostCreationDate               DATETIME                       not null,
  231.    PostLastEditDate               DATETIME                       not null,
  232.    PostCreationIP                 NVARCHAR(20)                   not null,
  233.    PostLastEditIP                 NVARCHAR(20)                   not null,
  234.    PostEditCount                  SMALLINT                       not null,
  235.    PostFormatOption               INT                            not null,
  236.    PostOption                     INT                            not null,
  237.    PostStatus                     INT                            not null,
  238.    PostIcon                       NVARCHAR(10)                   not null,
  239.    PostAttachCount                SMALLINT                       not null,
  240.    primary key (PostID)
  241. );
  242. CREATE INDEX Post_1_idx on mvnforumPost
  243. (
  244.    ForumID
  245. );
  246. CREATE INDEX Post_2_idx on mvnforumPost
  247. (
  248.    ThreadID
  249. );
  250. CREATE INDEX Post_3_idx on mvnforumPost
  251. (
  252.    MemberID
  253. );
  254. CREATE INDEX Post_4_idx on mvnforumPost
  255. (
  256.    ParentPostID
  257. );
  258. CREATE TABLE mvnforumThread
  259. (
  260.    ThreadID                       INT                            not null IDENTITY,
  261.    ForumID                        INT                            not null,
  262.    MemberName                     NVARCHAR(30)                   not null,
  263.    LastPostMemberName             NVARCHAR(30)                   not null,
  264.    ThreadTopic                    NVARCHAR(250)                  not null,
  265.    ThreadBody                     NTEXT                          not null,
  266.    ThreadVoteCount                INT                            not null,
  267.    ThreadVoteTotalStars           INT                            not null,
  268.    ThreadCreationDate             DATETIME                       not null,
  269.    ThreadLastPostDate             DATETIME                       not null,
  270.    ThreadType                     INT                            not null,
  271.    ThreadOption                   INT                            not null,
  272.    ThreadStatus                   INT                            not null,
  273.    ThreadHasPoll                  INT                            not null,
  274.    ThreadViewCount                INT                            not null,
  275.    ThreadReplyCount               INT                            not null,
  276.    ThreadIcon                     NVARCHAR(10)                   not null,
  277.    ThreadDuration                 INT                            not null,
  278.    ThreadAttachCount              INT                            not null,
  279.    primary key (ThreadID)
  280. );
  281. CREATE INDEX Thread_1_idx on mvnforumThread
  282. (
  283.    ForumID
  284. );
  285. CREATE TABLE mvnforumWatch
  286. (
  287.    WatchID                        INT                            not null IDENTITY,
  288.    MemberID                       INT                            not null,
  289.    CategoryID                     INT                            not null,
  290.    ForumID                        INT                            not null,
  291.    ThreadID                       INT                            not null,
  292.    WatchType                      INT                            not null,
  293.    WatchOption                    INT                            not null,
  294.    WatchStatus                    INT                            not null,
  295.    WatchCreationDate              DATETIME                       not null,
  296.    WatchLastSentDate              DATETIME                       not null,
  297.    WatchEndDate                   DATETIME                       not null,
  298.    primary key (WatchID),
  299.    unique (MemberID, CategoryID, ForumID, ThreadID)
  300. );
  301. CREATE INDEX Watch_MemberID_idx on mvnforumWatch
  302. (
  303.    MemberID
  304. );
  305. CREATE INDEX Watch_CategoryID_idx on mvnforumWatch
  306. (
  307.    CategoryID
  308. );
  309. CREATE INDEX Watch_ForumID_idx on mvnforumWatch
  310. (
  311.    ForumID
  312. );
  313. CREATE INDEX Watch_ThreadID_idx on mvnforumWatch
  314. (
  315.    ThreadID
  316. );
  317. CREATE TABLE mvnforumAttachment
  318. (
  319.    AttachID                       INT                            not null IDENTITY,
  320.    PostID                         INT                            not null,
  321.    MemberID                       INT                            not null,
  322.    AttachFilename                 NVARCHAR(250)                  not null,
  323.    AttachFileSize                 INT                            not null,
  324.    AttachMimeType                 NVARCHAR(70)                   not null,
  325.    AttachDesc                     NTEXT                          not null,
  326.    AttachCreationIP               NVARCHAR(20)                   not null,
  327.    AttachCreationDate             DATETIME                       not null,
  328.    AttachModifiedDate             DATETIME                       not null,
  329.    AttachDownloadCount            INT                            not null,
  330.    AttachOption                   INT                            not null,
  331.    AttachStatus                   INT                            not null,
  332.    primary key (AttachID)
  333. );
  334. CREATE INDEX Attachment_PostID_idx on mvnforumAttachment
  335. (
  336.    PostID
  337. );
  338. CREATE INDEX Attachment_MemberID_idx on mvnforumAttachment
  339. (
  340.    MemberID
  341. );
  342. CREATE TABLE mvnforumMemberForum
  343. (
  344.    MemberID                       INT                            not null,
  345.    ForumID                        INT                            not null,
  346.    Permission                     INT                            not null,
  347.    primary key (MemberID, ForumID, Permission)
  348. );
  349. CREATE INDEX MemberForum_1_idx on mvnforumMemberForum
  350. (
  351.    MemberID
  352. );
  353. CREATE INDEX MemberForum_2_idx on mvnforumMemberForum
  354. (
  355.    ForumID
  356. );
  357. CREATE TABLE mvnforumFavoriteThread
  358. (
  359.    MemberID                       INT                            not null,
  360.    ThreadID                       INT                            not null,
  361.    ForumID                        INT                            not null,
  362.    FavoriteCreationDate           DATETIME                       not null,
  363.    FavoriteType                   INT                            not null,
  364.    FavoriteOption                 INT                            not null,
  365.    FavoriteStatus                 INT                            not null,
  366.    primary key (MemberID, ThreadID)
  367. );
  368. CREATE INDEX FavorThread_1_idx on mvnforumFavoriteThread
  369. (
  370.    MemberID
  371. );
  372. CREATE INDEX FavorThread_2_idx on mvnforumFavoriteThread
  373. (
  374.    ThreadID
  375. );
  376. CREATE TABLE mvnforumRank
  377. (
  378.    RankID                         INT                            not null IDENTITY,
  379.    RankMinPosts                   INT                            not null,
  380.    RankLevel                      INT                            not null,
  381.    RankTitle                      NVARCHAR(250)                  not null,
  382.    RankImage                      NVARCHAR(250)                  not null,
  383.    RankType                       INT                            not null,
  384.    RankOption                     INT                            not null,
  385.    primary key (RankID),
  386.    unique (RankMinPosts),
  387.    unique (RankTitle)
  388. );
  389. CREATE TABLE mvnforumMessage
  390. (
  391.    MessageID                      INT                            not null IDENTITY,
  392.    FolderName                     NVARCHAR(30)                   not null,
  393.    MemberID                       INT                            not null,
  394.    MessageSenderID                INT                            not null,
  395.    MessageSenderName              NVARCHAR(30)                   not null,
  396.    MessageToList                  NVARCHAR(250)                  not null,
  397.    MessageCcList                  NVARCHAR(250),
  398.    MessageBccList                 NVARCHAR(250),
  399.    MessageTopic                   NVARCHAR(250)                  not null,
  400.    MessageBody                    NTEXT                          not null,
  401.    MessageType                    INT                            not null,
  402.    MessageOption                  INT                            not null,
  403.    MessageStatus                  INT                            not null,
  404.    MessageReadStatus              INT                            not null,
  405.    MessageNotify                  INT                            not null,
  406.    MessageIcon                    NVARCHAR(10)                   not null,
  407.    MessageAttachCount             INT                            not null,
  408.    MessageIP                      NVARCHAR(20)                   not null,
  409.    MessageCreationDate            DATETIME                       not null,
  410.    primary key (MessageID)
  411. );
  412. CREATE INDEX Message_1_idx on mvnforumMessage
  413. (
  414.    FolderName,
  415.    MemberID
  416. );
  417. CREATE INDEX Message_2_idx on mvnforumMessage
  418. (
  419.    MessageSenderID
  420. );
  421. CREATE TABLE mvnforumMessageStatistics
  422. (
  423.    FromID                         INT                            not null,
  424.    ToID                           INT                            not null,
  425.    MessageCreationDate            DATETIME                       not null,
  426.    MessageAttachCount             INT                            not null,
  427.    MessageType                    INT                            not null,
  428.    MessageOption                  INT                            not null,
  429.    MessageStatus                  INT                            not null
  430. );
  431. CREATE INDEX MessageStatistics_1_idx on mvnforumMessageStatistics
  432. (
  433.    FromID
  434. );
  435. CREATE INDEX MessageStatistics_2_idx on mvnforumMessageStatistics
  436. (
  437.    ToID
  438. );
  439. CREATE TABLE mvnforumPmAttachment
  440. (
  441.    PmAttachID                     INT                            not null IDENTITY,
  442.    MemberID                       INT                            not null,
  443.    PmAttachFilename               NVARCHAR(250)                  not null,
  444.    PmAttachFileSize               INT                            not null,
  445.    PmAttachMimeType               NVARCHAR(70)                   not null,
  446.    PmAttachDesc                   NTEXT                          not null,
  447.    PmAttachCreationIP             NVARCHAR(20)                   not null,
  448.    PmAttachCreationDate           DATETIME                       not null,
  449.    PmAttachModifiedDate           DATETIME                       not null,
  450.    PmAttachDownloadCount          INT                            not null,
  451.    PmAttachOption                 INT                            not null,
  452.    PmAttachStatus                 INT                            not null,
  453.    primary key (PmAttachID)
  454. );
  455. CREATE INDEX PmAttachment_1_idx on mvnforumPmAttachment
  456. (
  457.    MemberID
  458. );
  459. CREATE TABLE mvnforumPmAttachMessage
  460. (
  461.    MessageID                      INT                            not null,
  462.    PmAttachID                     INT                            not null,
  463.    RelationType                   INT                            not null,
  464.    RelationOption                 INT                            not null,
  465.    RelationStatus                 INT                            not null,
  466.    primary key (MessageID, PmAttachID)
  467. );
  468. --
  469. -- data for table mvnforumMember
  470. --
  471. SET IDENTITY_INSERT mvnforumMember ON
  472. INSERT INTO mvnforumMember (MemberID, MemberName, MemberPassword, MemberFirstEmail, MemberEmail, MemberEmailVisible, MemberNameVisible, MemberFirstIP, MemberLastIP, MemberViewCount, MemberPostCount, MemberCreationDate, MemberModifiedDate, MemberExpireDate, MemberLastLogon, MemberOption, MemberStatus, MemberActivateCode, MemberTempPassword, MemberMessageCount, MemberMessageOption, MemberPostsPerPage, MemberWarnCount, MemberVoteCount, MemberVoteTotalStars, MemberRewardPoints, MemberTitle, MemberTimeZone, MemberSignature, MemberAvatar, MemberSkin, MemberLanguage, MemberFirstname, MemberLastname, MemberGender, MemberBirthday, MemberAddress, MemberCity, MemberState, MemberCountry, MemberPhone, MemberMobile, MemberFax, MemberCareer, MemberHomepage, MemberYahoo, MemberAol, MemberIcq, MemberMsn, MemberCoolLink1, MemberCoolLink2)
  473.                     VALUES ('1', 'admin', 'ISMvKXpXpadDiUoOSoAfww==', 'admin@yourdomain.com', 'admin@yourdomain.com', '0', '1',         '127.0.0.1',   '127.0.0.1',  '0',             '0',             GETDATE(),          GETDATE(),          GETDATE(),        GETDATE(),       '0',          '0',          '',                 '',                 '0',                '0',                 '10',               '0',             '0',             '0',                  '0',                '',          '0',            '',              '',           '',         '',             '',              '',             '1',          GETDATE(),      '',            '',         '',          '',            '',          '',           '',        '',           '',             '',          '',        '',        '',        '',              '');
  474. SET IDENTITY_INSERT mvnforumMember OFF
  475. --
  476. -- data for table mvnforumMessageFolder
  477. --
  478. INSERT INTO mvnforumMessageFolder (FolderName, MemberID, FolderOrder, FolderStatus, FolderOption, FolderType, FolderCreationDate, FolderModifiedDate)
  479.                            VALUES ('Inbox',    '1',      '0',         0,            0,            0,          GETDATE(),          GETDATE());
  480. INSERT INTO mvnforumMessageFolder (FolderName, MemberID, FolderOrder, FolderStatus, FolderOption, FolderType, FolderCreationDate, FolderModifiedDate)
  481.                            VALUES ('Sent',     '1',      '2',         0,            0,            0,          GETDATE(),          GETDATE());
  482. --
  483. -- data for table mvnforumGroups
  484. --
  485. SET IDENTITY_INSERT mvnforumGroups ON
  486. INSERT INTO mvnforumGroups (GroupID, GroupOwnerID, GroupOwnerName, GroupName, GroupDesc,                                                GroupOption, GroupCreationDate, GroupModifiedDate)
  487.                     VALUES ('1',     '0',          '',             'Guest',   'All anonymous users belong to this group.',              '0',         GETDATE(),             GETDATE());
  488. INSERT INTO mvnforumGroups (GroupID, GroupOwnerID, GroupOwnerName, GroupName, GroupDesc,                                                GroupOption, GroupCreationDate, GroupModifiedDate)
  489.                     VALUES ('2',     '0',          '',             'Member',  'All registered users belong to this group.',             '0',         GETDATE(),             GETDATE());
  490. INSERT INTO mvnforumGroups (GroupID, GroupOwnerID, GroupOwnerName, GroupName, GroupDesc,                                                GroupOption, GroupCreationDate, GroupModifiedDate)
  491.                     VALUES ('3',     '1',          'admin',        'Admin',   'This group have SystemAdmin permission by default.',     '0',         GETDATE(),             GETDATE());
  492. INSERT INTO mvnforumGroups (GroupID, GroupOwnerID, GroupOwnerName, GroupName, GroupDesc,                                                GroupOption, GroupCreationDate, GroupModifiedDate)
  493.                     VALUES ('4',     '1',          'admin',        'Forum Admin', 'This group have ForumAdmin permission by default.',  '0',         GETDATE(),             GETDATE());
  494. INSERT INTO mvnforumGroups (GroupID, GroupOwnerID, GroupOwnerName, GroupName, GroupDesc,                                                GroupOption, GroupCreationDate, GroupModifiedDate)
  495.                     VALUES ('5',     '1',          'admin',        'Forum Moderator', 'This group have ForumModerator permission by default.','0',   GETDATE(),             GETDATE());
  496. SET IDENTITY_INSERT mvnforumGroups OFF
  497. --
  498. -- data for table mvnforumMemberGroup
  499. --
  500. INSERT INTO mvnforumMemberGroup (GroupID, MemberID, MemberName, Privilege, CreationDate, ModifiedDate)
  501.                          VALUES ('3',     '1',      'admin',    '0',       GETDATE(),    GETDATE());
  502. --
  503. -- data for table mvnforumMemberPermission
  504. --
  505. INSERT INTO mvnforumMemberPermission (MemberID, Permission) 
  506.                               VALUES ('1',      '100');
  507. --
  508. -- data for table mvnforumGroupPermission
  509. --
  510. INSERT INTO mvnforumGroupPermission (GroupID, Permission) 
  511.                              VALUES ('1',     '109');
  512. INSERT INTO mvnforumGroupPermission (GroupID, Permission) 
  513.                              VALUES ('2',     '110');
  514. INSERT INTO mvnforumGroupPermission (GroupID, Permission) 
  515.                              VALUES ('3',     '100');
  516. INSERT INTO mvnforumGroupPermission (GroupID, Permission) 
  517.                              VALUES ('4',     '105');
  518. INSERT INTO mvnforumGroupPermission (GroupID, Permission) 
  519.                              VALUES ('5',     '106');
  520. --
  521. -- data for table mvnforumRank
  522. --
  523. INSERT INTO mvnforumRank (RankMinPosts, RankLevel, RankTitle, RankImage, RankType, RankOption) 
  524.                   VALUES (0, 0, 'Stranger',                   '',        0,        0);
  525. INSERT INTO mvnforumRank (RankMinPosts, RankLevel, RankTitle, RankImage, RankType, RankOption) 
  526.                   VALUES (20, 0, 'Newbie',                    '',        0,        0);
  527. INSERT INTO mvnforumRank (RankMinPosts, RankLevel, RankTitle, RankImage, RankType, RankOption) 
  528.                   VALUES (50, 0, 'Member',                    '',        0,        0);
  529. INSERT INTO mvnforumRank (RankMinPosts, RankLevel, RankTitle, RankImage, RankType, RankOption) 
  530.                   VALUES (100, 0, 'Advanced Member',          '',        0,        0);