/* ÀÌ SQL DDL ½ºÅ©¸³Æ®´Â Microsoft Visual Studio(¸±¸®½º ³¯Â¥: LOCAL BUILD)¿¡¼­ »ý¼ºÇß½À´Ï´Ù. */ /* »ç¿ëµÈ µå¶óÀ̺ê : Microsoft Visual Studio - Microsoft SQL Server µå¶óÀ̹ö */ /* ¹®¼­ : E:\Work\¿©·¯°¡Áö¹®¼­µé\VISIO FILE\°ø¼ºÀüÅ×ÀÌºí±¸Á¶.vsd */ /* ¸¸µç ½Ã°£: 2004³â4¿ù8ÀÏ 4:22 ¿ÀÈÄ */ /* ÀÛ¾÷ : Visio µ¥ÀÌÅͺ£À̽º ¾÷µ¥ÀÌÆ® ¸¶¹ý»ç¿¡¼­ ¼öÇà */ /* ¿¬°áµÈ µ¥ÀÌÅÍ ¿øº» : JunDBServer */ /* ¿¬°áµÈ ¼­¹ö : STATIONRYL */ /* ¿¬°áµÈ µ¥ÀÌÅͺ£À̽º : Gama_Test */ /* »õ Å×À̺í "TblPatrolInCampInfo"À»(¸¦) ¸¸µì´Ï´Ù. */ /* "TblPatrolInCampInfo" : Table of TblPatrolInCampInfo */ /* "nPatrolID" : nPatrolID identifies TblPatrolInCampInfo */ /* "nCampID" : nCampID is of TblPatrolInCampInfo */ /* "nHP" : nHP is of TblPatrolInCampInfo */ /* "tnState" : »óÅ */ /* "nX" : nX is of TblPatrolInCampInfo */ /* "nY" : nY is of TblPatrolInCampInfo */ /* "nZ" : nZ is of TblPatrolInCampInfo */ create table "TblPatrolInCampInfo" ( "nCampID" int not null, "nHP" int not null, "tnState" tinyint not null, "nX" int not null, "nY" int not null, "nZ" int not null) go alter table "TblPatrolInCampInfo" add constraint "TblPatrolInCampInfo_PK" primary key (nCampID,nX,nY,nZ) go /* »õ Å×À̺í "TblCampInfo"À»(¸¦) ¸¸µì´Ï´Ù. */ /* "TblCampInfo" : Table of TblCampInfo */ /* "nCampID" : nCampID identifies TblCampInfo */ /* "nGuildID" : nGuildID is of TblCampInfo */ /* "nHP" : nHP is of TblCampInfo */ /* "tnState" : ±¸Ãà,¿Ï·á */ /* "nEnCampingTime" : Ä·ÇÁ±¸Ãà½Ã°£ */ /* "nX" : nX is of TblCampInfo */ /* "nY" : nY is of TblCampInfo */ /* "nZ" : nZ is of TblCampInfo */ create table "TblCampInfo" ( "nCampID" int not null, "nGuildID" int not null, "nHP" int not null, "tnState" tinyint not null, "nEnCampingTime" int not null, "nX" int not null, "nY" int not null, "nZ" int not null) go alter table "TblCampInfo" add constraint "TblCampInfo_PK" primary key ("nCampID") go /* »õ Å×À̺í "TblWeaponInCastleInfo"À»(¸¦) ¸¸µì´Ï´Ù. */ /* "TblWeaponInCastleInfo" : Table of TblWeaponInCastleInfo */ /* "nCastleID" : nCastleID is of TblWeaponInCastleInfo */ /* "tnType" : º´±âÁ¾·ù(°¡µå,±Ù°Å¸®,¿ø°Å¸®) */ /* "nHP" : ü·Â */ /* "tnState" : °³¹ß,¼ö¸®,¿Ï·á,¾÷±×·¹À̵åÁß */ /* "tnUpgradeStep" : ¾÷±×·¹À̵å´Ü°è */ /* "nRemainUpTime" : ¾÷±×·¹À̵峲Àº ½Ã°£ */ /* "nX" : nX is of TblWeaponInCastleInfo */ /* "nY" : nY is of TblWeaponInCastleInfo */ /* "nZ" : nZ is of TblWeaponInCastleInfo */ create table "TblWeaponInCastleInfo" ( "nCastleID" int not null, "tnType" tinyint not null, "nHP" int not null, "tnState" tinyint not null, "tnUpgradeStep" tinyint not null, "nRemainUpTime" int not null, "nX" int not null, "nY" int not null, "nZ" int not null) go alter table "TblWeaponInCastleInfo" add constraint "TblWeaponInCastleInfo_PK" primary key (nCastleID,nX,nY,nZ) go /* »õ Å×À̺í "TblCastleGateInfo"À»(¸¦) ¸¸µì´Ï´Ù. */ /* "TblCastleGateInfo" : Table of TblCastleGateInfo */ /* "nCastleID" : ¼º¾ÆÀ̵ð */ /* "nHP" : HP */ /* "tnState" : ¼º¹®»óÅÂ(¼ö¸®,º¹±¸,¾÷±×·¹À̵åÁß) */ /* "tnOpenClose" : ¼º¹® OPEN ¶Ç´Â Close ¿©ºÎ */ /* "tnUpgradeStep" : tnUpgradeStep is of TblCastleGateInfo */ /* "nRemainUpTime" : ¾÷±×·¹ÀÌµå ³²Àº½Ã°£ */ /* "nX" : nX is of TblCastleGateInfo */ /* "nY" : nY is of TblCastleGateInfo */ /* "nZ" : nZ is of TblCastleGateInfo */ create table "TblCastleGateInfo" ( "nCastleID" int not null, "nHP" int not null, "tnState" tinyint not null, "tnOpenClose" tinyint not null, "tnUpgradeStep" tinyint not null, "nRemainUpTime" int not null, "nX" int not null, "nY" int not null, "nZ" int not null) go alter table "TblCastleGateInfo" add constraint "TblCastleGateInfo_PK" primary key ("nCastleID") go /* »õ Å×À̺í "TblEmblemInCastleInfo"À»(¸¦) ¸¸µì´Ï´Ù. */ /* "TblEmblemInCastleInfo" : Table of TblEmblemInCastleInfo */ /* "nCastleID" : ¼º¾ÆÀ̵ð */ /* "nHP" : HP */ /* "tnUpgradeStep" : ¾÷±×·¹ÀÌµå ´Ü°è */ /* "tnUpgradeType" : ¾÷±×·¹À̵å Á¾·ù(º¸¼®Á¾·ù) */ /* "nRemainUpTime" : ¾÷±×·¹À̵峲Àº½Ã°£ */ /* "nX" : ÁÂÇ¥°ª */ /* "nY" : ÁÂÇ¥°ª */ /* "nZ" : ÁÂÇ¥°ª */ create table "TblEmblemInCastleInfo" ( "nCastleID" int not null, "nHP" int not null, "tnUpgradeStep" tinyint not null, "tnUpgradeType" tinyint not null, "nRemainUpTime" int not null, "nX" int not null, "nY" int not null, "nZ" int not null) go alter table "TblEmblemInCastleInfo" add constraint "TblEmblemInCastleInfo_PK" primary key ("nCastleID") go /* »õ Å×À̺í "TblCastleInfo"À»(¸¦) ¸¸µì´Ï´Ù. */ /* "TblCastleInfo" : Table of TblCastleInfo */ /* "nCastleID" : ¼º¾ÆÀ̵ð */ /* "nGuildID" : ¼ÒÀ¯±æµåID */ /* "snTax" : ¼¼À² */ /* "nTaxMoney" : ¼¼±ÝÀúÀå¼Ò */ /* "tnAttackCount" : °ø¼ºÈ½¼ö */ /* "bRight" : °ü¸®±ÇÇÑ */ /* "tnInvincibleCount" : ¹«ÀûȽ¼ö */ create table "TblCastleInfo" ( "nCastleID" int not null, "nGuildID" int not null, "snTax" smallint not null, "nTaxMoney" int not null, "tnAttackCount" tinyint not null, "bRight" binary(10) not null, "tnInvincibleCount" tinyint not null) go alter table "TblCastleInfo" add constraint "TblCastleInfo_PK" primary key ("nCastleID") go /* "TblPatrolInCampInfo" Å×ÀÌºí¿¡ ¿Ü·¡ Ű Á¦¾à Á¶°ÇÀ» Ãß°¡ÇÕ´Ï´Ù. */ alter table "TblPatrolInCampInfo" add constraint "TblCampInfo_TblPatrolInCampInfo_FK1" foreign key ( "nCampID") references "TblCampInfo" ( "nCampID") on update no action on delete no action go /* "TblWeaponInCastleInfo" Å×ÀÌºí¿¡ ¿Ü·¡ Ű Á¦¾à Á¶°ÇÀ» Ãß°¡ÇÕ´Ï´Ù. */ alter table "TblWeaponInCastleInfo" add constraint "TblCastleInfo_TblWeaponInCastleInfo_FK1" foreign key ( "nCastleID") references "TblCastleInfo" ( "nCastleID") on update no action on delete no action go /* "TblCastleGateInfo" Å×ÀÌºí¿¡ ¿Ü·¡ Ű Á¦¾à Á¶°ÇÀ» Ãß°¡ÇÕ´Ï´Ù. */ alter table "TblCastleGateInfo" add constraint "TblCastleInfo_TblCastleGateInfo_FK1" foreign key ( "nCastleID") references "TblCastleInfo" ( "nCastleID") on update no action on delete no action go /* "TblEmblemInCastleInfo" Å×ÀÌºí¿¡ ¿Ü·¡ Ű Á¦¾à Á¶°ÇÀ» Ãß°¡ÇÕ´Ï´Ù. */ alter table "TblEmblemInCastleInfo" add constraint "TblCastleInfo_TblEmblemInCastleInfo_FK1" foreign key ( "nCastleID") references "TblCastleInfo" ( "nCastleID") on update no action on delete no action go