Skip to content

Commit cc193be

Browse files
committed
Updated 'master', 'status', and 'type', and 'hist' scripts to create various tables.
1 parent 03fbd9a commit cc193be

18 files changed

+104
-1
lines changed

.idea/sqldialects.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
CREATE TABLE account_master (
2+
account_id SERIAL PRIMARY KEY,
3+
account_name VARCHAR(100) NOT NULL,
4+
account_type_id INTEGER REFERENCES account_type_desc(account_type_id),
5+
account_status_id INTEGER REFERENCES account_status_desc(account_status_id),
6+
org_id INTEGER REFERENCES org_master(org_id),
7+
updated_ts TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP,
8+
updated_by VARCHAR(50) DEFAULT CURRENT_USER,
9+
created_ts TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP,
10+
created_by VARCHAR(50) DEFAULT CURRENT_USER
11+
);
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
CREATE TABLE account_type_desc (
2+
account_type_id SERIAL PRIMARY KEY,
3+
account_type_name VARCHAR(50) NOT NULL,
4+
account_type_description TEXT,
5+
is_active BOOLEAN DEFAULT TRUE,
6+
updated_ts TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP,
7+
updated_by VARCHAR(50) DEFAULT CURRENT_USER,
8+
created_ts TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP,
9+
created_by VARCHAR(50) DEFAULT CURRENT_USER
10+
);

database/CRUD_scripts/create-account_master.sql

Whitespace-only changes.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
CREATE TABLE account_status_desc (
2+
account_status_id SERIAL PRIMARY KEY,
3+
account_status_name VARCHAR(50) NOT NULL,
4+
account_status_description TEXT,
5+
is_active BOOLEAN DEFAULT TRUE,
6+
updated_ts TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP,
7+
updated_by VARCHAR(50) DEFAULT CURRENT_USER,
8+
created_ts TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP,
9+
created_by VARCHAR(50) DEFAULT CURRENT_USER
10+
);

database/CRUD_scripts/create-account_type_desc.sql

Whitespace-only changes.

database/CRUD_scripts/create-employee_master.sql

Whitespace-only changes.

database/CRUD_scripts/create-employee_status_desc.sql

Whitespace-only changes.

database/CRUD_scripts/create-employee_type_desc.sql

Whitespace-only changes.

0 commit comments

Comments
 (0)