質問編集履歴
1
sqlの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -32,6 +32,150 @@
|
|
32
32
|
|
33
33
|
|
34
34
|
|
35
|
+
###Aマスタ
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
```
|
40
|
+
|
41
|
+
CREATE SEQUENCE users_id_seq;
|
42
|
+
|
43
|
+
create table public.users (
|
44
|
+
|
45
|
+
id integer default nextval('users_id_seq') PRIMARY KEY
|
46
|
+
|
47
|
+
, mail varchar(254) not null
|
48
|
+
|
49
|
+
, password varchar(255) not null
|
50
|
+
|
51
|
+
, onetime_password varchar(255)
|
52
|
+
|
53
|
+
, onetime_limit timestamp
|
54
|
+
|
55
|
+
, group_id integer not null
|
56
|
+
|
57
|
+
, created_user integer not null
|
58
|
+
|
59
|
+
, created_datetime timestamp not null
|
60
|
+
|
61
|
+
, modified_user integer not null
|
62
|
+
|
63
|
+
, modified_datetime timestamp not null
|
64
|
+
|
65
|
+
);
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
```
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
###Bマスタ
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
```
|
78
|
+
|
79
|
+
CREATE SEQUENCE mt_employees_id_seq;
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
create table public.mt_employees (
|
84
|
+
|
85
|
+
id integer default nextval('mt_employees_id_seq') PRIMARY KEY
|
86
|
+
|
87
|
+
, mt_section_id integer not null
|
88
|
+
|
89
|
+
, work_type varchar(10) not null
|
90
|
+
|
91
|
+
, mt_employement_class_id integer not null
|
92
|
+
|
93
|
+
, type integer not null
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
, employee_name varchar(20) not null
|
98
|
+
|
99
|
+
, employee_number varchar(10) not null
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
, employment_day date not null default '1989-01-01'
|
104
|
+
|
105
|
+
, paid_holiday_base_day date not null default '1989-07-01'
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
, mt_office_id integer not null
|
110
|
+
|
111
|
+
, mt_written_section_id integer not null
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
, basic_salary integer not null default 0
|
116
|
+
|
117
|
+
, allowance_one integer not null default 0
|
118
|
+
|
119
|
+
, allowance_two integer not null default 0
|
120
|
+
|
121
|
+
, commuting_allowance integer not null default 0
|
122
|
+
|
123
|
+
, monthly_total integer not null default 0
|
124
|
+
|
125
|
+
, ordinary_overtime_unit_price integer not null default 0
|
126
|
+
|
127
|
+
, midnight_overtime_unit_price integer not null default 0
|
128
|
+
|
129
|
+
, bonus integer not null default 0
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
, health_insurance integer not null default 0
|
134
|
+
|
135
|
+
, long_term_care_insurance integer not null default 0
|
136
|
+
|
137
|
+
, welfare_pension integer not null default 0
|
138
|
+
|
139
|
+
, child_allowance integer not null default 0
|
140
|
+
|
141
|
+
, employment_insurance integer not null default 0
|
142
|
+
|
143
|
+
, lndustrial_accident_insurance integer not null default 0
|
144
|
+
|
145
|
+
, other_one integer not null default 0
|
146
|
+
|
147
|
+
, insurance_total integer not null default 0
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
, retirement_fund_external integer not null default 0
|
152
|
+
|
153
|
+
, retirement_fund_in_house integer not null default 0
|
154
|
+
|
155
|
+
, work_clothes integer not null default 0
|
156
|
+
|
157
|
+
, other_two integer not null default 0
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
, order_no integer not null
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
, created_user integer not null
|
166
|
+
|
167
|
+
, created_datetime timestamp not null
|
168
|
+
|
169
|
+
, modified_user integer not null
|
170
|
+
|
171
|
+
, modified_datetime timestamp not null
|
172
|
+
|
173
|
+
);
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
```
|
178
|
+
|
35
179
|
### 最後に
|
36
180
|
|
37
181
|
|