123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173 |
-
- set ansi_nulls on
- go
- set quoted_identifier on
- go
- set ansi_padding on
- go
- if not exists(select * from dbo.sysobjects where id = object_id(N'Department') and objectproperty(id,'IsTable') = 1)
- begin
- create table [dbo].[Department](
- [dep_id] [nvarchar](16) not null,
- [dep_name] [nvarchar](24) not null,
-
-
-
- constraint [PK_Department] primary key clustered
- (
- [dep_id] asc
- )with (pad_index = off, statistics_norecompute = off, ignore_dup_key = off, allow_row_locks = on,allow_page_locks = on) on [primary],
-
- constraint [UK_Department] unique nonclustered
- (
- [dep_name] asc
- )with (pad_index = off, statistics_norecompute = off, ignore_dup_key = off, allow_row_locks = on,allow_page_locks = on) on [primary]
- ) on [primary]
- end
- go
- set ansi_padding off
- set ansi_nulls on
- go
- set quoted_identifier on
- go
- set ansi_padding on
- go
- if not exists(select * from dbo.sysobjects where id = object_id(N'Position') and objectproperty(id,'IsTable') = 1)
- begin
- create table [dbo].[Position](
- [pos_id] [nvarchar](36) not null,
- [pos_name] [nvarchar](24) not null,
- [department] [nvarchar](16) not null,
-
-
-
-
-
-
-
-
- constraint [PK_Position] primary key clustered
- (
- [posid] asc
- )with (pad_index = off, statistics_norecompute = off, ignore_dup_key = off, allow_row_locks = on,allow_page_locks = on) on [primary],
-
- constraint [UK_Position] unique nonclustered
- (
- [posname] asc,
- [department] asc,
- )with (pad_index = off, statistics_norecompute = off, ignore_dup_key = off, allow_row_locks = on,allow_page_locks = on) on [primary]
- ) on [primary]
- end
- go
- set ansi_padding off
- set ansi_nulls on
- go
- set quoted_identifier on
- go
- set ansi_padding on
- go
- if not exists(select * from dbo.sysobjects where id = object_id(N'Personnel') and objectproperty(id,'IsTable') = 1)
- begin
- create table [dbo].[Personnel](
- [per_id] [nvarchar](36) not null,
- [per_name] [nvarchar](24) not null,
- [per_sex] [nvarchar](4) not null,
- [per_hometown] [nvarchar](48) not null,
- [per_nation] [nvarchar](16) not null,
- [per_birthday] [nvarchar](16) not null,
- [per_identity] [nvarchar](64) not null,
- [per_address] [nvarchar](64) not null,
- [per_married] [nvarchar](64) not null,
- [per_Graduated] [nvarchar](64) not null,
- [per_Education] [nvarchar](16) not null,
- [per_special] [nvarhcar](64) not null,
- [per_Email] [nvarchar](64) not null,
- [per_phone] [nvarchar](16) not null,
- [per_QQ] [nvarchar](24) not null,
- [per_WX] [nvarchar](36) not null,
- [per_ecperson1] [nvarchar](24) not null,
- [per_ecphone1] [nvarchar](16) not null,
- [per_ecperson2] [nvarchar](24) not null,
- [per_ecphone2] [nvarchar](16) not null,
- [per_Image] [image] null,
- [per_identityfrontphoto] [image] null,
- [per_identitybackphoto] [image] null,
-
-
- constraint [PK_Personnel] primary key clustered
- (
- [perid] asc
- )with (pad_index = off, statistics_norecompute = off, ignore_dup_key = off, allow_row_locks = on,allow_page_locks = on) on [primary],
-
- constraint [UK_Personnel] unique nonclustered
- (
- [peridentity] asc
- )with (pad_index = off, statistics_norecompute = off, ignore_dup_key = off, allow_row_locks = on,allow_page_locks = on) on [primary]
- ) on [primary]
- end
- go
- set ansi_padding off
|