316 |
CREATE SEQUENCE item_category_id_seq; |
CREATE SEQUENCE item_category_id_seq; |
317 |
CREATE TABLE item_category |
CREATE TABLE item_category |
318 |
(id int8 DEFAULT nextval('item_category_id_seq') NOT NULL, |
(id int8 DEFAULT nextval('item_category_id_seq') NOT NULL, |
319 |
|
segment varchar(6), |
320 |
description varchar(30), |
description varchar(30), |
321 |
parent int8, |
parent int8, |
322 |
PRIMARY KEY (id)); |
PRIMARY KEY (id)); |
323 |
|
|
324 |
|
|
325 |
-- |
-- |
326 |
-- Create 'item_source' table |
-- Create 'item_group' table |
327 |
-- |
-- |
328 |
|
|
329 |
CREATE SEQUENCE item_source_id_seq; |
CREATE SEQUENCE item_group_id_seq; |
330 |
CREATE TABLE item_source |
CREATE TABLE item_group |
331 |
(id int8 DEFAULT nextval('item_source_id_seq') NOT NULL, |
(id int8 DEFAULT nextval('item_group_id_seq') NOT NULL, |
332 |
|
segment varchar(6), |
333 |
description varchar(30), |
description varchar(30), |
334 |
|
created_by int8, |
335 |
|
created_on timestamp DEFAULT now() NOT NULL, |
336 |
|
modified_on timestamp DEFAULT now(), |
337 |
|
modified_by int8, |
338 |
|
PRIMARY KEY (id)); |
339 |
|
|
340 |
|
|
341 |
|
-- |
342 |
|
-- Create 'item_mfg' table |
343 |
|
-- |
344 |
|
|
345 |
|
CREATE SEQUENCE item_mfg_id_seq; |
346 |
|
CREATE TABLE item_mfg |
347 |
|
(id int8 DEFAULT nextval('item_mfg_id_seq') NOT NULL, |
348 |
|
segment varchar(6), |
349 |
|
description varchar(30), |
350 |
|
created_by int8, |
351 |
|
created_on timestamp DEFAULT now() NOT NULL, |
352 |
|
modified_on timestamp DEFAULT now(), |
353 |
|
modified_by int8, |
354 |
|
PRIMARY KEY (id)); |
355 |
|
|
356 |
|
|
357 |
|
-- |
358 |
|
-- Create 'item_mfg_model' table |
359 |
|
-- |
360 |
|
|
361 |
|
CREATE SEQUENCE item_mfg_model_id_seq; |
362 |
|
CREATE TABLE item_mfg_model |
363 |
|
(id int8 DEFAULT nextval('item_mfg_model_id_seq') NOT NULL, |
364 |
|
mfg int8, |
365 |
|
model varchar(30), |
366 |
|
segment varchar(6), |
367 |
|
description varchar(60), |
368 |
|
detail text, |
369 |
|
created_by int8, |
370 |
|
created_on timestamp DEFAULT now() NOT NULL, |
371 |
|
modified_on timestamp DEFAULT now(), |
372 |
|
modified_by int8, |
373 |
PRIMARY KEY (id)); |
PRIMARY KEY (id)); |
374 |
|
|
375 |
|
|
384 |
PRIMARY KEY (id)); |
PRIMARY KEY (id)); |
385 |
|
|
386 |
|
|
387 |
|
-- |
388 |
|
-- Create 'item_type' table |
389 |
|
-- |
390 |
|
|
391 |
|
CREATE SEQUENCE item_type_id_seq; |
392 |
|
CREATE TABLE item_type |
393 |
|
(id int8 DEFAULT nextval('item_type_id_seq') NOT NULL, |
394 |
|
segment varchar(6), |
395 |
|
description varchar(30), |
396 |
|
created_by int8, |
397 |
|
created_on timestamp DEFAULT now() NOT NULL, |
398 |
|
modified_on timestamp DEFAULT now(), |
399 |
|
modified_by int8, |
400 |
|
PRIMARY KEY (id)); |
401 |
|
|
402 |
|
|
403 |
-- |
-- |
404 |
-- Create 'note_type' table |
-- Create 'note_type' table |
405 |
-- |
-- |