123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341 |
- USE [ERP数据库模型设计(New)]
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpUser]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpUser]
- GO
- CREATE TABLE [dbo].[tb_ErpUser] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
- , [User_Account] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
- , [User_Name] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
- , [User_Password] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
- , [User_EmployeeID] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
- , [User_Department] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
- , [User_Positions] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
- , [User_Competence] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
- , [User_OnlineTime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
- , [User_Sex] nvarchar(2) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
- , [User_Status] nvarchar(10) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
- , [User_IsDisable] bit NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
- , [User_Ethnic] nvarchar(50) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
- , [User_Hometown] nvarchar(50) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
- , [User_NowAddress] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
- , [User_IdentityCardID] nvarchar(50) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
- , [User_HometownAddress] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
- , [User_IsMarried] bit NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
- , [User_FirstFingerprintID] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
- , [User_SecondaryFingerprintID] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
- , [User_ICQAccount] nvarchar(50) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
- , [User_Email] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
- , [User_MicroSignal] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
- , [User_Attachment] nvarchar(800) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
- , [User_Remark] nvarchar(800) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
- , [User_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
- , [User_UpdateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
- , [User_SubordinateList] nvarchar(2000) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
- , [User_Telephone] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
- , [User_CustomerID] int NOT NULL --注释:Attr2ElementID:tb_ErpUser_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpUser] ADD CONSTRAINT [tb_ErpUser_PK] PRIMARY KEY CLUSTERED (
- [User_Account]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpTheScenery]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpTheScenery]
- GO
- CREATE TABLE [dbo].[tb_ErpTheScenery] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpTheScenery_PKToString:System.__ComObject
- , [Tsc_Name] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpTheScenery_PKToString:System.__ComObject
- , [Tsc_Introduction] nvarchar(800) NOT NULL --注释:Attr2ElementID:tb_ErpTheScenery_PKToString:System.__ComObject
- , [Tsc_DetailsOf] text NULL --注释:Attr2ElementID:tb_ErpTheScenery_PKToString:System.__ComObject
- , [Tsc_Address] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpTheScenery_PKToString:System.__ComObject
- , [Tsc_CostPrice] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpTheScenery_PKToString:System.__ComObject
- , [Tsc_SalesPrice] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpTheScenery_PKToString:System.__ComObject
- , [Tsc_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpTheScenery_PKToString:System.__ComObject
- , [Tsc_Thumbnail] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpTheScenery_PKToString:System.__ComObject
- , [Tsc_PhotoAlbum] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpTheScenery_PKToString:System.__ComObject
- , [Tsc_IsDisable] bit NOT NULL --注释:Attr2ElementID:tb_ErpTheScenery_PKToString:System.__ComObject
- , [Tsc_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpTheScenery_PKToString:System.__ComObject
- , [Tsc_UpdateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpTheScenery_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpTheScenery] ADD CONSTRAINT [tb_ErpTheScenery_PK] PRIMARY KEY CLUSTERED (
- [ID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpOrderProductList]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpOrderProductList]
- GO
- CREATE TABLE [dbo].[tb_ErpOrderProductList] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpOrderProductList_PKToString:System.__ComObject
- , [OPlist_OrderNumber] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpOrderProductList_PKToString:System.__ComObject
- , [OPlist_ProdClassCode] nvarchar(10) NOT NULL --注释:Attr2ElementID:tb_ErpOrderProductList_PKToString:System.__ComObject
- , [OPlist_ProdClassName] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpOrderProductList_PKToString:System.__ComObject
- , [OPlist_MainPhoto] nvarchar(200) NULL --注释:Attr2ElementID:tb_ErpOrderProductList_PKToString:System.__ComObject
- , [OPlist_ProdNumber] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpOrderProductList_PKToString:System.__ComObject
- , [OPlist_ProdName] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpOrderProductList_PKToString:System.__ComObject
- , [OPlist_ProdCostPrice] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpOrderProductList_PKToString:System.__ComObject
- , [OPlist_ProdSoldPrice] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpOrderProductList_PKToString:System.__ComObject
- , [OPlist_ProdQuantity] int NOT NULL --注释:Attr2ElementID:tb_ErpOrderProductList_PKToString:System.__ComObject
- , [OPlist_ProdThumbnail] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpOrderProductList_PKToString:System.__ComObject
- , [OPlist_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpOrderProductList_PKToString:System.__ComObject
- , [OPlist_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpOrderProductList_PKToString:System.__ComObject
- , [OPlist_Type] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpOrderProductList_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpOrderProductList] ADD CONSTRAINT [tb_ErpOrderProductList_PK] PRIMARY KEY CLUSTERED (
- [ID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpInformation]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpInformation]
- GO
- CREATE TABLE [dbo].[tb_ErpInformation] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
- , [Info_Type] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
- , [Info_Category] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
- , [Info_ParentID] int NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
- , [Info_Title] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
- , [Info_ChlidTitle] nvarchar(200) NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
- , [Info_Introduction] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
- , [Info_Content] text NOT NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
- , [Info_Plotting] nvarchar(200) NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
- , [Info_Attachment] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
- , [Info_Source] nvarchar(200) NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
- , [Info_Editing] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
- , [Info_Publisher] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
- , [Info_ClickRate] int NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
- , [Info_IsEnabled] bit NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
- , [Info_IsExamine] bit NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
- , [Info_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
- , [Info_Order] int NOT NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
- , [Info_ExamineName] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
- , [Info_URL] nvarchar(500) NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
- , [Info_IsEnabledURL] bit NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
- , [Info_IsDelete] bit NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
- , [Info_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
- , [Info_UpdateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpInformation_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpInformation] ADD CONSTRAINT [tb_ErpInformation_PK] PRIMARY KEY CLUSTERED (
- [ID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpProduct]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpProduct]
- GO
- CREATE TABLE [dbo].[tb_ErpProduct] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
- , [Prod_Number] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
- , [Prod_Name] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
- , [Prod_Class] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
- , [Prod_Unit] nvarchar(10) NOT NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
- , [Prod_CostPrice] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
- , [Prod_SalesPrice ] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
- , [Prod_SpecialPrice] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
- , [Prod_PurchasePrice] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
- , [Prod_IsRetail] bit NOT NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
- , [Prod_IsEnabled] bit NOT NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
- , [Prod_Introduction] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
- , [Prod_Detail] text NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
- , [Prod_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
- , [Prod_Quantity] int NOT NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
- , [Prod_Thumbnail] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
- , [Prod_FullSizeImage] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
- , [Prod_Expedited] bit NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
- , [Prod_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
- , [Prod_UpdateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpProduct_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpProduct] ADD CONSTRAINT [tb_ErpProduct_PK] PRIMARY KEY CLUSTERED (
- [Prod_Number]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpAttendanceRecord]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpAttendanceRecord]
- GO
- CREATE TABLE [dbo].[tb_ErpAttendanceRecord] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_FingerprintID] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_UserID] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_UserName] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_ArriveIate] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_LeaveEarly] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Absenteeism] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_AskForleave] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Day1] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Day2] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Day3] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Day4] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Day5] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Day6] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Day7] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Day8] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Day9] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Day10] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Day11] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Day12] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Day13] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Day14] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Day15] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Day16] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Day17] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Day18] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Day19] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Day20] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Day21] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Day22] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Day23] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Day24] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Day25] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Day26] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Day27] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Day28] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Day29] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Day30] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Day31] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Type] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- , [Ar_Month] int NULL --注释:Attr2ElementID:tb_ErpAttendanceRecord_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpAttendanceRecord] ADD CONSTRAINT [tb_ErpAttendanceRecord_PK] PRIMARY KEY CLUSTERED (
- [ID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpInternalMail]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpInternalMail]
- GO
- CREATE TABLE [dbo].[tb_ErpInternalMail] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpInternalMail_PKToString:System.__ComObject
- , [Imail_Type] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpInternalMail_PKToString:System.__ComObject
- , [Imail_Title] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpInternalMail_PKToString:System.__ComObject
- , [Imail_Content] text NOT NULL --注释:Attr2ElementID:tb_ErpInternalMail_PKToString:System.__ComObject
- , [Imail_FromName] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpInternalMail_PKToString:System.__ComObject
- , [Imail_ToName] nvarchar(4000) NOT NULL --注释:Attr2ElementID:tb_ErpInternalMail_PKToString:System.__ComObject
- , [Imail_Attachment] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpInternalMail_PKToString:System.__ComObject
- , [Imail_Status] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpInternalMail_PKToString:System.__ComObject
- , [Imail_ReadList] nvarchar(4000) NULL --注释:Attr2ElementID:tb_ErpInternalMail_PKToString:System.__ComObject
- , [Imail_OwnerList] nvarchar(4000) NULL --注释:Attr2ElementID:tb_ErpInternalMail_PKToString:System.__ComObject
- , [Imail_ToSendDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpInternalMail_PKToString:System.__ComObject
- , [Imail_DeleteList] nvarchar(4000) NOT NULL --注释:Attr2ElementID:tb_ErpInternalMail_PKToString:System.__ComObject
- , [Imail_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpInternalMail_PKToString:System.__ComObject
- , [Imail_UpdateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpInternalMail_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpInternalMail] ADD CONSTRAINT [tb_ErpInternalMail_PK] PRIMARY KEY CLUSTERED (
- [ID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpPayment]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpPayment]
- GO
- CREATE TABLE [dbo].[tb_ErpPayment] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpPayment_PKToString:System.__ComObject
- , [Pay_OrdNumber] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpPayment_PKToString:System.__ComObject
- , [Pay_AmountOf] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpPayment_PKToString:System.__ComObject
- , [Pay_OpenSingle] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpPayment_PKToString:System.__ComObject
- , [Pay_ThePayee] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpPayment_PKToString:System.__ComObject
- , [Pay_PaymentMethod] nvarchar(50) NOT NULL --注释:Attr2ElementID:tb_ErpPayment_PKToString:System.__ComObject
- , [Pay_OrdersLocation] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpPayment_PKToString:System.__ComObject
- , [Pay_ReceivableProject] nvarchar(500) NOT NULL --注释:Attr2ElementID:tb_ErpPayment_PKToString:System.__ComObject
- , [Pay_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpPayment_PKToString:System.__ComObject
- , [Pay_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpPayment_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpPayment] ADD CONSTRAINT [tb_ErpPayment_PK] PRIMARY KEY CLUSTERED (
- [ID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpMembershipCard]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpMembershipCard]
- GO
- CREATE TABLE [dbo].[tb_ErpMembershipCard] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
- , [Mc_Number] nvarchar(50) NOT NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
- , [Mc_IdentityCardID] nvarchar(30) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
- , [Mc_Name] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
- , [Mc_Sex] bit NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
- , [Mc_Telephone] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
- , [Mc_QQ] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
- , [Mc_Address] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
- , [Mc_WorkUnit] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
- , [MC_Birthday] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
- , [Mc_CardType] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
- , [Mc_CardLevel] nvarchar(10) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
- , [Mc_Discount] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
- , [Mc_Points] int NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
- , [Mc_IssuingDate] datetime NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
- , [Mc_RecyclingDate] datetime NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
- , [Mc_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
- , [Mc_Status] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
- , [Mc_ParentID] int NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
- , [Mc_ConsumerPassword] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
- , [Mc_Money] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
- , [Mc_Profession] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
- , [Mc_PackagesMoney] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
- , [Mc_AvailableCashBack] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
- , [Mc_AlreadyCashBack] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
- , [Mc_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
- , [Mc_UpdateDateTime] datetime NULL --注释:Attr2ElementID:tb_ErpMembershipCard_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpMembershipCard] ADD CONSTRAINT [tb_ErpMembershipCard_PK] PRIMARY KEY CLUSTERED (
- [Mc_Number]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpFixedAssetManagement]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpFixedAssetManagement]
- GO
- CREATE TABLE [dbo].[tb_ErpFixedAssetManagement] (
- [ID] int NOT NULL --注释:Attr2ElementID:tb_ErpFixedAssetManagement_PKToString:System.__ComObject
- , [Fam_Name] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpFixedAssetManagement_PKToString:System.__ComObject
- , [Fam_Specification] nvarchar(500) NOT NULL --注释:Attr2ElementID:tb_ErpFixedAssetManagement_PKToString:System.__ComObject
- , [Fam_Quantity] int NOT NULL --注释:Attr2ElementID:tb_ErpFixedAssetManagement_PKToString:System.__ComObject
- , [Fam_PurchasePrice] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpFixedAssetManagement_PKToString:System.__ComObject
- , [Fam_BuyDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpFixedAssetManagement_PKToString:System.__ComObject
- , [Fam_Custodian] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpFixedAssetManagement_PKToString:System.__ComObject
- , [Fam_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpFixedAssetManagement_PKToString:System.__ComObject
- , [Fam_PhotoAlbum] nvarchar(2000) NULL --注释:Attr2ElementID:tb_ErpFixedAssetManagement_PKToString:System.__ComObject
- , [Fam_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpFixedAssetManagement_PKToString:System.__ComObject
- , [Fam_UpdateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpFixedAssetManagement_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpFixedAssetManagement] ADD CONSTRAINT [tb_ErpFixedAssetManagement_PK] PRIMARY KEY CLUSTERED (
- [ID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpSystemLogs]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpSystemLogs]
- GO
- CREATE TABLE [dbo].[tb_ErpSystemLogs] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpSystemLogs_PKToString:System.__ComObject
- , [Slogs_Type] nvarchar(10) NOT NULL --注释:Attr2ElementID:tb_ErpSystemLogs_PKToString:System.__ComObject
- , [Slogs_Topic] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpSystemLogs_PKToString:System.__ComObject
- , [Slogs_Content] nvarchar(500) NOT NULL --注释:Attr2ElementID:tb_ErpSystemLogs_PKToString:System.__ComObject
- , [Slogs_UserName] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpSystemLogs_PKToString:System.__ComObject
- , [Slogs_IP] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpSystemLogs_PKToString:System.__ComObject
- , [Slogs_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpSystemLogs_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpSystemLogs] ADD CONSTRAINT [tb_ErpSystemLogs_PK] PRIMARY KEY CLUSTERED (
- [ID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpInventoryRecords]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpInventoryRecords]
- GO
- CREATE TABLE [dbo].[tb_ErpInventoryRecords] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpInventoryRecords_PKToString:System.__ComObject
- , [Ir_Type] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpInventoryRecords_PKToString:System.__ComObject
- , [Ir_ProductID] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpInventoryRecords_PKToString:System.__ComObject
- , [Ir_Number] nvarchar(50) NOT NULL --注释:Attr2ElementID:tb_ErpInventoryRecords_PKToString:System.__ComObject
- , [Ir_ProductCategory] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpInventoryRecords_PKToString:System.__ComObject
- , [Ir_ProductName] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpInventoryRecords_PKToString:System.__ComObject
- , [Ir_Quantity] int NOT NULL --注释:Attr2ElementID:tb_ErpInventoryRecords_PKToString:System.__ComObject
- , [Ir_PersonHandling] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpInventoryRecords_PKToString:System.__ComObject
- , [Ir_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpInventoryRecords_PKToString:System.__ComObject
- , [Ir_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpInventoryRecords_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpInventoryRecords] ADD CONSTRAINT [tb_ErpInventoryRecords_PK] PRIMARY KEY CLUSTERED (
- [ID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpOrder]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpOrder]
- GO
- CREATE TABLE [dbo].[tb_ErpOrder] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_Number] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_Type] bit NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_Class] nvarchar(200) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_Mc_Number] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_Name1] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_GentlemenPhone] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_Name2] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_LadiesPhone] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_PhotographyCategory] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_CustomerSource] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_AppointmentTime] datetime NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_PhotographerNmae] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_PhotographyTime] datetime NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_PhotographyStatus] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_EarlyRepairName] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_EarlyRepairTime] datetime NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_EarlyRepairStatus] nvarchar(10) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_FilmSelectionName] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_FilmSelectionTime] datetime NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_FilmSelectionStatus] nvarchar(10) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_RefinementName] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_RefinementTime] datetime NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_RefinementStatus] nvarchar(10) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_DesignName] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_DesignTime] datetime NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_DesignStatus] nvarchar(10) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_LookDesignName] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_LookDesignTime] datetime NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_LookDesignStatus] nvarchar(10) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_TakePiecesTime] datetime NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_TakePiecesStatus] nvarchar(10) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_OrdersPerson] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_MakeupArtistName] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_SeriesName] nvarchar(30) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_SeriesPrice] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_Discount] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_Authorize] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_AfterDiscount] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_AfterAuthorize] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_UserAccount] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_CustomerID] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_Price] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_PhotoPath] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_ClothingQuantity] int NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_Styling] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_OnLocation] int NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_InteriorView] int NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_EntryClerkName] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- , [Ord_UpdateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpOrder_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpOrder] ADD CONSTRAINT [tb_ErpOrder_PK] PRIMARY KEY CLUSTERED (
- [Ord_Number]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpDepartment]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpDepartment]
- GO
- CREATE TABLE [dbo].[tb_ErpDepartment] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpDepartment_PKToString:System.__ComObject
- , [Dt_Name] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpDepartment_PKToString:System.__ComObject
- , [Dt_ChargeMan] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpDepartment_PKToString:System.__ComObject
- , [Dt_Telephone] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpDepartment_PKToString:System.__ComObject
- , [Dt_Fax] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpDepartment_PKToString:System.__ComObject
- , [Dt_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpDepartment_PKToString:System.__ComObject
- , [Dt_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpDepartment_PKToString:System.__ComObject
- , [Dt_UpdateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpDepartment_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpDepartment] ADD CONSTRAINT [tb_ErpDepartment_PK] PRIMARY KEY CLUSTERED (
- [ID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpRentalSaleRecords]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpRentalSaleRecords]
- GO
- CREATE TABLE [dbo].[tb_ErpRentalSaleRecords] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
- , [Rrlist_RsoNumber] nvarchar(50) NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
- , [Rrlist_ProductName] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
- , [Rrlist_ProductNumber] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
- , [Rrlist_ProductQuantity] int NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
- , [Rrlist_ProductThumbnail] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
- , [Rrlist_Status] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
- , [Rrlist_EstimateTakeDate] datetime NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
- , [Rrlist_EstimateReturnDate] datetime NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
- , [Rrlist_ActualTakeDate] datetime NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
- , [Rrlist_ActualReturnDate] datetime NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
- , [Rrlist_RentalSaleRemark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
- , [Rrlist_Money] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
- , [Rrlist_Deposit] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
- , [Rrlist_ProductBuyPrice] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
- , [Rrlist_ExpiredDays] int NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
- , [Rrlist_ExtendedPayment] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
- , [Rrlist_ReturnRemark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
- , [Rso_HandlingPerson] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
- , [Rrlist_Type] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
- , [Rrlist_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpRentalSaleRecords_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpRentalSaleRecords] ADD CONSTRAINT [tb_ErpRentalSaleRecords_PK] PRIMARY KEY CLUSTERED (
- [ID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpSmsAccountInfo]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpSmsAccountInfo]
- GO
- CREATE TABLE [dbo].[tb_ErpSmsAccountInfo] (
- [ID] int NOT NULL --注释:Attr2ElementID:tb_ErpSmsAccountInfo_PKToString:System.__ComObject
- , [Smsa_AccountNumber] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpSmsAccountInfo_PKToString:System.__ComObject
- , [Smsa_AccountName] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpSmsAccountInfo_PKToString:System.__ComObject
- , [Smsa_Password] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpSmsAccountInfo_PKToString:System.__ComObject
- , [Smsa_MoneyBalances] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpSmsAccountInfo_PKToString:System.__ComObject
- , [Smsa_SendTypes] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpSmsAccountInfo_PKToString:System.__ComObject
- , [Smsa_CrealeDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpSmsAccountInfo_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpSmsAccountInfo] ADD CONSTRAINT [tb_ErpSmsAccountInfo_PK] PRIMARY KEY CLUSTERED (
- [ID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpRegion]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpRegion]
- GO
- CREATE TABLE [dbo].[tb_ErpRegion] (
- [ID] int NOT NULL --注释:Attr2ElementID:tb_ErpRegion_PKToString:System.__ComObject
- , [Region_code] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpRegion_PKToString:System.__ComObject
- , [Region_name] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpRegion_PKToString:System.__ComObject
- , [Region_ParentID] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpRegion_PKToString:System.__ComObject
- , [Region_level] int NULL --注释:Attr2ElementID:tb_ErpRegion_PKToString:System.__ComObject
- , [Region_order] int NULL --注释:Attr2ElementID:tb_ErpRegion_PKToString:System.__ComObject
- , [Region_name_en] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpRegion_PKToString:System.__ComObject
- , [Region_shortname_en] nvarchar(10) NULL --注释:Attr2ElementID:tb_ErpRegion_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpRegion] ADD CONSTRAINT [tb_ErpRegion_PK] PRIMARY KEY CLUSTERED (
- [ID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpCallWizard]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpCallWizard]
- GO
- CREATE TABLE [dbo].[tb_ErpCallWizard] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpCallWizard_PKToString:System.__ComObject
- , [Callw_Telephone] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpCallWizard_PKToString:System.__ComObject
- , [Callw_DateTime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpCallWizard_PKToString:System.__ComObject
- , [Callw_Status] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpCallWizard_PKToString:System.__ComObject
- , [Callw_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpCallWizard_PKToString:System.__ComObject
- , [Callw_SoundRecording] nvarchar(1000) NULL --注释:Attr2ElementID:tb_ErpCallWizard_PKToString:System.__ComObject
- , [Callw_UpdateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpCallWizard_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpCallWizard] ADD CONSTRAINT [tb_ErpCallWizard_PK] PRIMARY KEY CLUSTERED (
- [ID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpCustomer]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpCustomer]
- GO
- CREATE TABLE [dbo].[tb_ErpCustomer] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_Type] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_Name1] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_Name2] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_Telephone1] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_Telephone2] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_FixedPhone] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_QQ1] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_QQ2] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_Sex1] int NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_Sex2] int NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_Birthday1] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_Birthday2] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_Region1] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_Region2] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_Address1] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_Address2] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_WorkUnit1] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_WorkUnit2] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_DayForMarriage] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_OrderDate] datetime NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_PackagesName] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_PackagesMoney] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_EntryClerk] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_CustomerSource] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_Status] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_LossReason] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_Remark] char(10) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_OrderRecord ] nvarchar(500) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_ServiceType] nvarchar(10) NOT NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_IdentityCardID1] nvarchar(30) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_IdentityCardID2] nvarchar(30) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_UpdateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_Lunar1] bit NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_Lunar2] bit NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- , [Cus_LovedStyle] nvarchar(500) NULL --注释:Attr2ElementID:tb_ErpCustomer_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpCustomer] ADD CONSTRAINT [tb_ErpCustomer_PK] PRIMARY KEY CLUSTERED (
- [ID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpCommissionConfigure]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpCommissionConfigure]
- GO
- CREATE TABLE [dbo].[tb_ErpCommissionConfigure] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
- , [Cconfig_Type] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
- , [Cconfig_OrderNumber] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
- , [Cconfig_Photographer1] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
- , [Cconfig_PhotographerProportion1] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
- , [Cconfig_Photographer2] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
- , [Cconfig_PhotographerProportion2] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
- , [Cconfig_Photographer3] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
- , [Cconfig_PhotographerProportion3] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
- , [Cconfig_Photographer4] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
- , [Cconfig_PhotographerProportion4] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
- , [Cconfig_MakeupArtist1] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
- , [Cconfig_MakeupArtistProportion1] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
- , [Cconfig_MakeupArtist2] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
- , [Cconfig_MakeupArtistProportion2] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
- , [Cconfig_MakeupArtist3] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
- , [Cconfig_MakeupArtistProportion3] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
- , [Cconfig_MakeupArtist4] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
- , [Cconfig_MakeupArtistProportion4] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
- , [Cconfig_MainStore] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
- , [Cconfig_MainStoreProportion] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
- , [Cconfig_ViceStore] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
- , [Cconfig_ViceProportion] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
- , [Cconfig_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
- , [Cconfig_UpdateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpCommissionConfigure_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpCommissionConfigure] ADD CONSTRAINT [tb_ErpCommissionConfigure_PK] PRIMARY KEY CLUSTERED (
- [ID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpPackages]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpPackages]
- GO
- CREATE TABLE [dbo].[tb_ErpPackages] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpPackages_PKToString:System.__ComObject
- , [Pak_PackagesID] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpPackages_PKToString:System.__ComObject
- , [Pak_PackagesClass] nvarchar(10) NOT NULL --注释:Attr2ElementID:tb_ErpPackages_PKToString:System.__ComObject
- , [Pak_Name] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpPackages_PKToString:System.__ComObject
- , [Pak_UnitPrice] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpPackages_PKToString:System.__ComObject
- , [Pak_IsDisable] bit NOT NULL --注释:Attr2ElementID:tb_ErpPackages_PKToString:System.__ComObject
- , [Pak_Remark] nvarchar(200) NULL --注释:Attr2ElementID:tb_ErpPackages_PKToString:System.__ComObject
- , [Pak_IntoTheArchive] int NOT NULL --注释:Attr2ElementID:tb_ErpPackages_PKToString:System.__ComObject
- , [Pak_IntoTheBook] int NOT NULL --注释:Attr2ElementID:tb_ErpPackages_PKToString:System.__ComObject
- , [Pak_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpPackages_PKToString:System.__ComObject
- , [Pak_UpdateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpPackages_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpPackages] ADD CONSTRAINT [tb_ErpPackages_PK] PRIMARY KEY CLUSTERED (
- [Pak_PackagesID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpFormalDress]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpFormalDress]
- GO
- CREATE TABLE [dbo].[tb_ErpFormalDress] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
- , [Fd_Number] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
- , [Fd_Type] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
- , [Fd_Category] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
- , [Fd_PlacedArea] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
- , [Fd_Name] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
- , [Fd_Quantity] int NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
- , [Fd_RentalPrice] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
- , [Fd_SalePrice] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
- , [Fd_BuyPrice] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
- , [Fd_BuyDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
- , [Fd_Introduction] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
- , [Fd_Detail] text NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
- , [Fd_MainPhoto ] nvarchar(200) NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
- , [Fd_Thumbnail] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
- , [Fd_PhotoAlbum] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
- , [Fd_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
- , [Fd_StarRating] int NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
- , [Fd_IsEnabled] bit NOT NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
- , [Fd_IsShows] bit NOT NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
- , [Fd_Status] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
- , [Fd_AreLeasedQuantity] int NOT NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
- , [Fd_HasSoldQuantity] int NOT NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
- , [Fd_TheLaundryQuantity] int NOT NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
- , [Fd_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
- , [Fd_UpdateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpFormalDress_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpFormalDress] ADD CONSTRAINT [tb_ErpFormalDress_PK] PRIMARY KEY CLUSTERED (
- [Fd_Number]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpSMSTemplates]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpSMSTemplates]
- GO
- CREATE TABLE [dbo].[tb_ErpSMSTemplates] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpSMSTemplates_PKToString:System.__ComObject
- , [Smst_Type] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpSMSTemplates_PKToString:System.__ComObject
- , [Smst_Category] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpSMSTemplates_PKToString:System.__ComObject
- , [Smst_Title] nvarchar(500) NULL --注释:Attr2ElementID:tb_ErpSMSTemplates_PKToString:System.__ComObject
- , [Smst_Content] nvarchar(4000) NULL --注释:Attr2ElementID:tb_ErpSMSTemplates_PKToString:System.__ComObject
- , [Smst_IsReadOnly] bit NULL --注释:Attr2ElementID:tb_ErpSMSTemplates_PKToString:System.__ComObject
- , [Smst_SendCondition] nvarchar(500) NULL --注释:Attr2ElementID:tb_ErpSMSTemplates_PKToString:System.__ComObject
- , [Smst_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpSMSTemplates_PKToString:System.__ComObject
- , [Smst_UpdateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpSMSTemplates_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpSMSTemplates] ADD CONSTRAINT [tb_ErpSMSTemplates_PK] PRIMARY KEY CLUSTERED (
- [ID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpOrdersPhotography]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpOrdersPhotography]
- GO
- CREATE TABLE [dbo].[tb_ErpOrdersPhotography] (
- [ID] int NOT NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
- , [OrdPg_OrderNumber] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
- , [OrdPg_TakenStages] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
- , [OrdPg_Sights] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
- , [OrdPg_Photographer] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
- , [OrdPg_PhotographyTime] datetime NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
- , [OrdPg_ShootingStatus] nvarchar(10) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
- , [OrdPg_PhotographyAssistant] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
- , [OrdPg_MakeupArtist] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
- , [OrdPg_MakeupAssistant] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
- , [OrdPg_EarlyRepairName] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
- , [OrdPg_EarlyRepairTime] datetime NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
- , [OrdPg_EarlyRepairStatus] nvarchar(10) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
- , [OrdPg_EarlyRepairExpedited] bit NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
- , [OrdPg_FilmSelectionName] char(10) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
- , [OrdPg_FilmSelectionTime] char(10) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
- , [OrdPg_FilmSelectionStatus] nvarchar(10) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
- , [OrdPg_DesignerName] char(10) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
- , [OrdPg_DesignerDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
- , [OrdPg_DesignerStatus] nvarchar(10) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
- , [OrdPg_DesignerExpedited] bit NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
- , [OrdPg_RefinementName] char(10) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
- , [OrdPg_RefinementTime] char(10) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
- , [OrdPg_RefinementStatus] nvarchar(10) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
- , [OrdPg_RefinementExpedited] bit NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
- , [OrdPg_LookDesignName] char(10) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
- , [OrdPg_LookDesignTime] char(10) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
- , [OrdPg_LookDesignStatus] nvarchar(10) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
- , [OrdPg_TakePiecesStatus] nvarchar(10) NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
- , [OrdPg_Remark] text NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
- , [OrdPg_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
- , [OrdPg_UpdateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpOrdersPhotography_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpOrdersPhotography] ADD CONSTRAINT [tb_ErpOrdersPhotography_PK] PRIMARY KEY CLUSTERED (
- [ID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpOrdersPerson]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpOrdersPerson]
- GO
- CREATE TABLE [dbo].[tb_ErpOrdersPerson] (
- [ID] int NOT NULL --注释:Attr2ElementID:tb_ErpOrdersPerson_PKToString:System.__ComObject
- , [OrdPe_OrderNumber] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrdersPerson_PKToString:System.__ComObject
- , [OrdPe_OrdersPerson] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOrdersPerson_PKToString:System.__ComObject
- , [OrdPe_Proportion] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpOrdersPerson_PKToString:System.__ComObject
- , [OrdPe_Remark] text NULL --注释:Attr2ElementID:tb_ErpOrdersPerson_PKToString:System.__ComObject
- , [OrdPe_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpOrdersPerson_PKToString:System.__ComObject
- , [OrdPe_UpdateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpOrdersPerson_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpOrdersPerson] ADD CONSTRAINT [tb_ErpOrdersPerson_PK] PRIMARY KEY CLUSTERED (
- [ID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpSystemCategory]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpSystemCategory]
- GO
- CREATE TABLE [dbo].[tb_ErpSystemCategory] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpSystemCategory_PKToString:System.__ComObject
- , [Sc_ClassCode] nvarchar(10) NOT NULL --注释:Attr2ElementID:tb_ErpSystemCategory_PKToString:System.__ComObject
- , [Sc_ClassName] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpSystemCategory_PKToString:System.__ComObject
- , [Sc_ClassParentID] int NOT NULL --注释:Attr2ElementID:tb_ErpSystemCategory_PKToString:System.__ComObject
- , [Sc_ClassRemark] nvarchar(500) NOT NULL --注释:Attr2ElementID:tb_ErpSystemCategory_PKToString:System.__ComObject
- , [Sc_IsDisable] bit NOT NULL --注释:Attr2ElementID:tb_ErpSystemCategory_PKToString:System.__ComObject
- , [Sc_IsReadOnly] bit NOT NULL --注释:Attr2ElementID:tb_ErpSystemCategory_PKToString:System.__ComObject
- , [Sc_URL] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpSystemCategory_PKToString:System.__ComObject
- , [Sc_IsEnabledURL] bit NULL --注释:Attr2ElementID:tb_ErpSystemCategory_PKToString:System.__ComObject
- , [Sc_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpSystemCategory_PKToString:System.__ComObject
- , [Sc_UpdateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpSystemCategory_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpSystemCategory] ADD CONSTRAINT [tb_ErpSystemCategory_PK] PRIMARY KEY CLUSTERED (
- [ID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpSystemInfo]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpSystemInfo]
- GO
- CREATE TABLE [dbo].[tb_ErpSystemInfo] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpSystemInfo_PKToString:System.__ComObject
- , [SysInfo_SysName] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpSystemInfo_PKToString:System.__ComObject
- , [SysInfo_Version] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpSystemInfo_PKToString:System.__ComObject
- , [SysInfo_Description] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpSystemInfo_PKToString:System.__ComObject
- , [SysInfo_CompanyName] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpSystemInfo_PKToString:System.__ComObject
- , [SysInfo_Telephone] nvarchar(200) NULL --注释:Attr2ElementID:tb_ErpSystemInfo_PKToString:System.__ComObject
- , [SysInfo_Fax] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpSystemInfo_PKToString:System.__ComObject
- , [SysInfo_Email] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpSystemInfo_PKToString:System.__ComObject
- , [SysInfo_Address] nvarchar(200) NULL --注释:Attr2ElementID:tb_ErpSystemInfo_PKToString:System.__ComObject
- , [SysInfo_URL] nvarchar(200) NULL --注释:Attr2ElementID:tb_ErpSystemInfo_PKToString:System.__ComObject
- , [SysInfo_Agreement] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpSystemInfo_PKToString:System.__ComObject
- , [SysInfo_CopyrightNotice] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpSystemInfo_PKToString:System.__ComObject
- , [SysInfo_ServiceDescription] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpSystemInfo_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpSystemInfo] ADD CONSTRAINT [tb_ErpSystemInfo_PK] PRIMARY KEY CLUSTERED (
- [ID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpSMSRecord]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpSMSRecord]
- GO
- CREATE TABLE [dbo].[tb_ErpSMSRecord] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpSMSRecord_PKToString:System.__ComObject
- , [Smsr_RecipientNumber] nvarchar(4000) NOT NULL --注释:Attr2ElementID:tb_ErpSMSRecord_PKToString:System.__ComObject
- , [Smsr_Content] nvarchar(500) NOT NULL --注释:Attr2ElementID:tb_ErpSMSRecord_PKToString:System.__ComObject
- , [Smsr_SendCreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpSMSRecord_PKToString:System.__ComObject
- , [Smsr_SendExpense] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpSMSRecord_PKToString:System.__ComObject
- , [Smsr_Status] nvarchar(200) NULL --注释:Attr2ElementID:tb_ErpSMSRecord_PKToString:System.__ComObject
- , [Smsr_SendPeople] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpSMSRecord_PKToString:System.__ComObject
- , [Smsr_SendSumCount] int NULL --注释:Attr2ElementID:tb_ErpSMSRecord_PKToString:System.__ComObject
- , [Smsr_SendSuccess] int NULL --注释:Attr2ElementID:tb_ErpSMSRecord_PKToString:System.__ComObject
- , [Smsr_FailureTelephone] nvarchar(4000) NULL --注释:Attr2ElementID:tb_ErpSMSRecord_PKToString:System.__ComObject
- , [Smsr_SendRemark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpSMSRecord_PKToString:System.__ComObject
- , [Smsr_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpSMSRecord_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpSMSRecord] ADD CONSTRAINT [tb_ErpSMSRecord_PK] PRIMARY KEY CLUSTERED (
- [ID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpRewardPunishment]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpRewardPunishment]
- GO
- CREATE TABLE [dbo].[tb_ErpRewardPunishment] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpRewardPunishment_PKToString:System.__ComObject
- , [Rp_Type] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpRewardPunishment_PKToString:System.__ComObject
- , [Rp_RelevantPeople] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpRewardPunishment_PKToString:System.__ComObject
- , [Rp_Money] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpRewardPunishment_PKToString:System.__ComObject
- , [Rp_Status] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpRewardPunishment_PKToString:System.__ComObject
- , [Rp_RPDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpRewardPunishment_PKToString:System.__ComObject
- , [Rp_PersonHandling] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpRewardPunishment_PKToString:System.__ComObject
- , [Rp_Reason] nvarchar(800) NOT NULL --注释:Attr2ElementID:tb_ErpRewardPunishment_PKToString:System.__ComObject
- , [Rp_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpRewardPunishment_PKToString:System.__ComObject
- , [Rp_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpRewardPunishment_PKToString:System.__ComObject
- , [Rp_UpdateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpRewardPunishment_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpRewardPunishment] ADD CONSTRAINT [tb_ErpRewardPunishment_PK] PRIMARY KEY CLUSTERED (
- [ID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpUserExpandInfo]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpUserExpandInfo]
- GO
- CREATE TABLE [dbo].[tb_ErpUserExpandInfo] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpUserExpandInfo_PKToString:System.__ComObject
- , [Uei_UserAccount] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpUserExpandInfo_PKToString:System.__ComObject
- , [Uei_EfFieldCode] nvarchar(10) NOT NULL --注释:Attr2ElementID:tb_ErpUserExpandInfo_PKToString:System.__ComObject
- , [Uei_ExpandValue] nvarchar(1000) NOT NULL --注释:Attr2ElementID:tb_ErpUserExpandInfo_PKToString:System.__ComObject
- , [Uei_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpUserExpandInfo_PKToString:System.__ComObject
- , [Uei_UpdateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpUserExpandInfo_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpUserExpandInfo] ADD CONSTRAINT [tb_ErpUserExpandInfo_PK] PRIMARY KEY CLUSTERED (
- [ID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpUseRecord]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpUseRecord]
- GO
- CREATE TABLE [dbo].[tb_ErpUseRecord] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpUseRecord_PKToString:System.__ComObject
- , [Ur_McNumber] nvarchar(50) NOT NULL --注释:Attr2ElementID:tb_ErpUseRecord_PKToString:System.__ComObject
- , [Ur_ParentNumber] nvarchar(50) NOT NULL --注释:Attr2ElementID:tb_ErpUseRecord_PKToString:System.__ComObject
- , [Ur_Type] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpUseRecord_PKToString:System.__ComObject
- , [Ur_OrderNumber] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpUseRecord_PKToString:System.__ComObject
- , [Ur_Points] int NOT NULL --注释:Attr2ElementID:tb_ErpUseRecord_PKToString:System.__ComObject
- , [Ur_Money] decimal(10,2) NULL --注释:Attr2ElementID:tb_ErpUseRecord_PKToString:System.__ComObject
- , [Ur_Title] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpUseRecord_PKToString:System.__ComObject
- , [Ur_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpUseRecord_PKToString:System.__ComObject
- , [Ur_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpUseRecord_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpUseRecord] ADD CONSTRAINT [tb_ErpUseRecord_PK] PRIMARY KEY CLUSTERED (
- [ID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpOtherIncomeAndExpenses]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpOtherIncomeAndExpenses]
- GO
- CREATE TABLE [dbo].[tb_ErpOtherIncomeAndExpenses] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpOtherIncomeAndExpenses_PKToString:System.__ComObject
- , [Oiae_Type] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpOtherIncomeAndExpenses_PKToString:System.__ComObject
- , [Oiae_ProjectName] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpOtherIncomeAndExpenses_PKToString:System.__ComObject
- , [Oiae_Money] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpOtherIncomeAndExpenses_PKToString:System.__ComObject
- , [Oiae_IEDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpOtherIncomeAndExpenses_PKToString:System.__ComObject
- , [Oiae_PersonHandling] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpOtherIncomeAndExpenses_PKToString:System.__ComObject
- , [Oiae_ThePayer] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpOtherIncomeAndExpenses_PKToString:System.__ComObject
- , [Oiae_Invoice] nvarchar(500) NULL --注释:Attr2ElementID:tb_ErpOtherIncomeAndExpenses_PKToString:System.__ComObject
- , [Oiae_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpOtherIncomeAndExpenses_PKToString:System.__ComObject
- , [Oiae_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpOtherIncomeAndExpenses_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpOtherIncomeAndExpenses] ADD CONSTRAINT [tb_ErpOtherIncomeAndExpenses_PK] PRIMARY KEY CLUSTERED (
- [ID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpCompanyInfo]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpCompanyInfo]
- GO
- CREATE TABLE [dbo].[tb_ErpCompanyInfo] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
- , [Company_Name] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
- , [Company_Manager] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
- , [Company_Telephone ] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
- , [Company_Fax] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
- , [Company_URL] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
- , [Company_Address] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
- , [Company_SingleTitle] nvarchar(200) NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
- , [Company_SingleExplanation] nvarchar(200) NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
- , [Company_ReservationExplanation] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
- , [Company_ProductionNotes] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
- , [Company_DressDescription] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
- , [Company_DimensionalCode] nvarchar(200) NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
- , [Company_About] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
- , [Company_PhotoThumbnail] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
- , [Company_PhotoAlbum] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
- , [Company_Detail] text NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
- , [Company_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
- , [Company_UpdateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpCompanyInfo_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpCompanyInfo] ADD CONSTRAINT [tb_ErpCompanyInfo_PK] PRIMARY KEY CLUSTERED (
- [ID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpContactRecord]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpContactRecord]
- GO
- CREATE TABLE [dbo].[tb_ErpContactRecord] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpContactRecord_PKToString:System.__ComObject
- , [Cr_CustomerID] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpContactRecord_PKToString:System.__ComObject
- , [Cr_ContactName] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpContactRecord_PKToString:System.__ComObject
- , [Cr_Topic] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpContactRecord_PKToString:System.__ComObject
- , [Cr_Content] nvarchar(800) NOT NULL --注释:Attr2ElementID:tb_ErpContactRecord_PKToString:System.__ComObject
- , [Cr_CustomerResponse] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpContactRecord_PKToString:System.__ComObject
- , [Cr_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpContactRecord_PKToString:System.__ComObject
- , [Cr_ReturnVisitTime] datetime NULL --注释:Attr2ElementID:tb_ErpContactRecord_PKToString:System.__ComObject
- , [Cr_IsRemind] bit NULL --注释:Attr2ElementID:tb_ErpContactRecord_PKToString:System.__ComObject
- , [Cr_ContactDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpContactRecord_PKToString:System.__ComObject
- , [Cr_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpContactRecord_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpContactRecord] ADD CONSTRAINT [tb_ErpContactRecord_PK] PRIMARY KEY CLUSTERED (
- [ID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpClientSatisfaction]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpClientSatisfaction]
- GO
- CREATE TABLE [dbo].[tb_ErpClientSatisfaction] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpClientSatisfaction_PKToString:System.__ComObject
- , [Csf_OrdersNumber] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpClientSatisfaction_PKToString:System.__ComObject
- , [Csf_Reception] int NULL --注释:Attr2ElementID:tb_ErpClientSatisfaction_PKToString:System.__ComObject
- , [Csf_Makeup] int NULL --注释:Attr2ElementID:tb_ErpClientSatisfaction_PKToString:System.__ComObject
- , [Csf_Photography] int NULL --注释:Attr2ElementID:tb_ErpClientSatisfaction_PKToString:System.__ComObject
- , [Csf_Digital] int NULL --注释:Attr2ElementID:tb_ErpClientSatisfaction_PKToString:System.__ComObject
- , [Csf_FilmSelection] int NULL --注释:Attr2ElementID:tb_ErpClientSatisfaction_PKToString:System.__ComObject
- , [Csf_Progress] int NULL --注释:Attr2ElementID:tb_ErpClientSatisfaction_PKToString:System.__ComObject
- , [Csf_Product] int NULL --注释:Attr2ElementID:tb_ErpClientSatisfaction_PKToString:System.__ComObject
- , [Csf_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpClientSatisfaction_PKToString:System.__ComObject
- , [Csf_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpClientSatisfaction_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpClientSatisfaction] ADD CONSTRAINT [tb_ErpClientSatisfaction_PK] PRIMARY KEY CLUSTERED (
- [ID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpPermissionTemplate]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpPermissionTemplate]
- GO
- CREATE TABLE [dbo].[tb_ErpPermissionTemplate] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpPermissionTemplate_PKToString:System.__ComObject
- , [Pte_TemplateName] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpPermissionTemplate_PKToString:System.__ComObject
- , [Pte_PermissionValue] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpPermissionTemplate_PKToString:System.__ComObject
- , [Pte_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpPermissionTemplate_PKToString:System.__ComObject
- , [Pte_UpdateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpPermissionTemplate_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpPermissionTemplate] ADD CONSTRAINT [tb_ErpPermissionTemplate_PK] PRIMARY KEY CLUSTERED (
- [ID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpExpandField]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpExpandField]
- GO
- CREATE TABLE [dbo].[tb_ErpExpandField] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpExpandField_PKToString:System.__ComObject
- , [Ef_FieldCode] nvarchar(10) NOT NULL --注释:Attr2ElementID:tb_ErpExpandField_PKToString:System.__ComObject
- , [Ef_FieldName] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpExpandField_PKToString:System.__ComObject
- , [Ef_FieldValueList] nvarchar(1000) NOT NULL --注释:Attr2ElementID:tb_ErpExpandField_PKToString:System.__ComObject
- , [Ef_DefaultValue] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpExpandField_PKToString:System.__ComObject
- , [Ef_FieldType] nvarchar(10) NOT NULL --注释:Attr2ElementID:tb_ErpExpandField_PKToString:System.__ComObject
- , [Ef_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpExpandField_PKToString:System.__ComObject
- , [Ef_UpdateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpExpandField_PKToString:System.__ComObject
- , [Ef_FieldRemark] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpExpandField_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpExpandField] ADD CONSTRAINT [tb_ErpExpandField_PK] PRIMARY KEY CLUSTERED (
- [Ef_FieldCode]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpTwoSalesOrder]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpTwoSalesOrder]
- GO
- CREATE TABLE [dbo].[tb_ErpTwoSalesOrder] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpTwoSalesOrder_PKToString:System.__ComObject
- , [Tsorder_Number] nvarchar(50) NOT NULL --注释:Attr2ElementID:tb_ErpTwoSalesOrder_PKToString:System.__ComObject
- , [Tsorder_Name] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpTwoSalesOrder_PKToString:System.__ComObject
- , [Tsorder_CustomerName] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpTwoSalesOrder_PKToString:System.__ComObject
- , [Tsorder_Telephone] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpTwoSalesOrder_PKToString:System.__ComObject
- , [Tsorder_Money] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpTwoSalesOrder_PKToString:System.__ComObject
- , [Tsorder_Quantity] int NOT NULL --注释:Attr2ElementID:tb_ErpTwoSalesOrder_PKToString:System.__ComObject
- , [Tsorder_Category] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpTwoSalesOrder_PKToString:System.__ComObject
- , [Tsorder_OpenSingle] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpTwoSalesOrder_PKToString:System.__ComObject
- , [Tsorder_PersonHandling] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpTwoSalesOrder_PKToString:System.__ComObject
- , [Tsorder_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpTwoSalesOrder_PKToString:System.__ComObject
- , [Tsorder_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpTwoSalesOrder_PKToString:System.__ComObject
- , [Tsorder_UpdateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpTwoSalesOrder_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpTwoSalesOrder] ADD CONSTRAINT [tb_ErpTwoSalesOrder_PK] PRIMARY KEY CLUSTERED (
- [Tsorder_Number]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpSystemConfigure]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpSystemConfigure]
- GO
- CREATE TABLE [dbo].[tb_ErpSystemConfigure] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpSystemConfigure_PKToString:System.__ComObject
- , [Sconfig_Code] nvarchar(10) NOT NULL --注释:Attr2ElementID:tb_ErpSystemConfigure_PKToString:System.__ComObject
- , [Sconfig_Name] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpSystemConfigure_PKToString:System.__ComObject
- , [Sconfig_Value] nvarchar(500) NOT NULL --注释:Attr2ElementID:tb_ErpSystemConfigure_PKToString:System.__ComObject
- , [Sconfig_IsEnabled] bit NULL --注释:Attr2ElementID:tb_ErpSystemConfigure_PKToString:System.__ComObject
- , [Sconfig_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpSystemConfigure_PKToString:System.__ComObject
- , [Sconfig_Type] nvarchar(10) NOT NULL --注释:Attr2ElementID:tb_ErpSystemConfigure_PKToString:System.__ComObject
- , [Sconfig_Order] int NULL --注释:Attr2ElementID:tb_ErpSystemConfigure_PKToString:System.__ComObject
- , [Sconfig_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpSystemConfigure_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpSystemConfigure] ADD CONSTRAINT [tb_ErpSystemConfigure_PK] PRIMARY KEY CLUSTERED (
- [Sconfig_Code]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpConfigureInfo]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpConfigureInfo]
- GO
- CREATE TABLE [dbo].[tb_ErpConfigureInfo] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpConfigureInfo_PKToString:System.__ComObject
- , [Cfinfo_Code] nvarchar(10) NOT NULL --注释:Attr2ElementID:tb_ErpConfigureInfo_PKToString:System.__ComObject
- , [Cfinfo_Type] nvarchar(10) NOT NULL --注释:Attr2ElementID:tb_ErpConfigureInfo_PKToString:System.__ComObject
- , [Cfinfo_Title] nvarchar(200) NOT NULL --注释:Attr2ElementID:tb_ErpConfigureInfo_PKToString:System.__ComObject
- , [Cfinfo_Text] text NOT NULL --注释:Attr2ElementID:tb_ErpConfigureInfo_PKToString:System.__ComObject
- , [Cfinfo_IsEnabled] bit NOT NULL --注释:Attr2ElementID:tb_ErpConfigureInfo_PKToString:System.__ComObject
- , [Cfinfo_Order] int NULL --注释:Attr2ElementID:tb_ErpConfigureInfo_PKToString:System.__ComObject
- , [Cfinfo_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpConfigureInfo_PKToString:System.__ComObject
- , [Cfinfo_UpdateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpConfigureInfo_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpConfigureInfo] ADD CONSTRAINT [tb_ErpConfigureInfo_PK] PRIMARY KEY CLUSTERED (
- [Cfinfo_Code]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpRosteringSettings]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpRosteringSettings]
- GO
- CREATE TABLE [dbo].[tb_ErpRosteringSettings] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpRosteringSettings_PKToString:System.__ComObject
- , [Rs_Name] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpRosteringSettings_PKToString:System.__ComObject
- , [Rs_WorkTime] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpRosteringSettings_PKToString:System.__ComObject
- , [Rs_OffWorkTime] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpRosteringSettings_PKToString:System.__ComObject
- , [Rs_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpRosteringSettings_PKToString:System.__ComObject
- , [Rs_UpdateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpRosteringSettings_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpRosteringSettings] ADD CONSTRAINT [tb_ErpRosteringSettings_PK] PRIMARY KEY CLUSTERED (
- [ID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpVendor]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpVendor]
- GO
- CREATE TABLE [dbo].[tb_ErpVendor] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpVendor_PKToString:System.__ComObject
- , [Vd_Number] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpVendor_PKToString:System.__ComObject
- , [Vd_Name] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpVendor_PKToString:System.__ComObject
- , [Vd_Address] nvarchar(200) NULL --注释:Attr2ElementID:tb_ErpVendor_PKToString:System.__ComObject
- , [Vd_ContactPerson] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpVendor_PKToString:System.__ComObject
- , [Vd_Telephone] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpVendor_PKToString:System.__ComObject
- , [Vd_Fax] nvarchar(50) NULL --注释:Attr2ElementID:tb_ErpVendor_PKToString:System.__ComObject
- , [Vd_URL] nvarchar(200) NULL --注释:Attr2ElementID:tb_ErpVendor_PKToString:System.__ComObject
- , [Vd_Remark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpVendor_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpVendor] ADD CONSTRAINT [tb_ErpVendor_PK] PRIMARY KEY CLUSTERED (
- [Vd_Number]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpStyle]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpStyle]
- GO
- CREATE TABLE [dbo].[tb_ErpStyle] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpStyle_PKToString:System.__ComObject
- , [Style_Name] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpStyle_PKToString:System.__ComObject
- , [Style_Description] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpStyle_PKToString:System.__ComObject
- , [Style_PhotoThumbnail] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpStyle_PKToString:System.__ComObject
- , [Style_PhotoAlbum] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpStyle_PKToString:System.__ComObject
- , [Style_Detail] text NULL --注释:Attr2ElementID:tb_ErpStyle_PKToString:System.__ComObject
- , [Style_StarRating] int NULL --注释:Attr2ElementID:tb_ErpStyle_PKToString:System.__ComObject
- , [Style_CreateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpStyle_PKToString:System.__ComObject
- , [Style_UpdateDatetime] datetime NULL --注释:Attr2ElementID:tb_ErpStyle_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpStyle] ADD CONSTRAINT [tb_ErpStyle_PK] PRIMARY KEY CLUSTERED (
- [ID]
- )
- GO
- GO
- IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tb_ErpRentalSaleOrder]') AND type in (N'U'))
- DROP TABLE [dbo].[tb_ErpRentalSaleOrder]
- GO
- CREATE TABLE [dbo].[tb_ErpRentalSaleOrder] (
- [ID] int identity NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
- , [Rso_Number] nvarchar(50) NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
- , [Rso_Type] nvarchar(50) NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
- , [Rso_RentMoney] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
- , [Rso_Deposit] decimal(10,2) NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
- , [Rso_HandlingPerson] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
- , [Rso_RentalSaleDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
- , [Rso_RentalSaleRemark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
- , [Rso_ReturnRemark] nvarchar(800) NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
- , [Rso_CustomerName] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
- , [Rso_Telephone] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
- , [Rso_QQ] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
- , [Rso_Address] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
- , [Rso_CompanyName] nvarchar(100) NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
- , [Rso_WeddingDay] datetime NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
- , [Rso_Birthday] nvarchar(20) NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
- , [Rso_EstimateTakeDate] datetime NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
- , [Rso_EstimateReturnDate] datetime NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
- , [Rso_ActualTakeDate] datetime NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
- , [Rso_ActualReturnDate] datetime NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
- , [Rso_ProductName] nvarchar(100) NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
- , [Rso_ProductNumber] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
- , [Rso_ProductQuantity] int NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
- , [Rso_Status] nvarchar(20) NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
- , [Rso_CreateDatetime] datetime NOT NULL --注释:Attr2ElementID:tb_ErpRentalSaleOrder_PKToString:System.__ComObject
- )
- GO
- ALTER TABLE [dbo].[tb_ErpRentalSaleOrder] ADD CONSTRAINT [tb_ErpRentalSaleOrder_PK] PRIMARY KEY CLUSTERED (
- [Rso_Number]
- )
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
- GO
|