リビジョン 280
出勤日報データフィールド追加
branches/ddl/20170929_SQL.txt | ||
---|---|---|
1 |
-- ?o?????f?[?^ |
|
2 |
drop table if exists attendancedailydata cascade; |
|
3 |
|
|
4 |
create table attendancedailydata ( |
|
5 |
PersonCode decimal(8,0) unsigned not null comment '????R?[?h' |
|
6 |
, AttendanceDate date not null comment '???????' |
|
7 |
, SeqNo decimal(3,0) unsigned not null comment '????s???' |
|
8 |
, ConstructionCode decimal(10,0) unsigned not null comment '?H???R?[?h' |
|
9 |
, ActionResult varchar(30) not null comment '?s??????' |
|
10 |
, StartTime datetime comment '?J?n????' |
|
11 |
, CompTime datetime comment '?I??????' |
|
12 |
, DayTimes decimal(4,1) not null comment '????????v????' |
|
13 |
, WorkingComment varchar(120) comment '?R?????g' |
|
14 |
, WorkKindFlg decimal(2,0) not null comment '?????t???O' |
|
15 |
, EntryDate datetime not null comment '?o?^???t' |
|
16 |
, UpdateDate datetime not null comment '?X?V???t' |
|
17 |
, constraint attendancedailydata_PKC primary key (PersonCode,AttendanceDate,SeqNo) |
|
18 |
) comment '?o?????f?[?^' ; |
|
19 |
|
|
20 |
create index AttendDaily_Index1 |
|
21 |
on attendancedailydata(ConstructionCode); |
|
22 |
|
|
23 |
create index AttendDaily_Index2 |
|
24 |
on attendancedailydata(AttendanceDate); |
他の形式にエクスポート: Unified diff