OSDN Git Service

I decided the specifications in the database table below.
authormasashi <masashi@ms-n.com>
Tue, 11 Feb 2014 09:46:47 +0000 (18:46 +0900)
committermasashi <masashi@ms-n.com>
Tue, 11 Feb 2014 09:46:47 +0000 (18:46 +0900)
database/postgres/monitor_plan.sql [new file with mode: 0644]
database/postgres/monitor_server_info.sql [new file with mode: 0644]
database/postgres/monitoring.sql [new file with mode: 0644]
database/postgres/user_auth.sql [new file with mode: 0644]

diff --git a/database/postgres/monitor_plan.sql b/database/postgres/monitor_plan.sql
new file mode 100644 (file)
index 0000000..228bb2e
--- /dev/null
@@ -0,0 +1,18 @@
+
+CREATE TABLE monitor_plan (
+       uukey       int not null,
+       mpsnumber   int not null,
+       moproto     int not null,
+       serverid    int not null,
+       modport     int,
+       mailprno    int not null,
+       mailreno    int not null,
+       invtime     int,
+       sosstat     int,
+       starttime   bigint,
+       stoptime    bigint,
+       modhost     char[1024],
+       mpukey      serial
+);
+
+
diff --git a/database/postgres/monitor_server_info.sql b/database/postgres/monitor_server_info.sql
new file mode 100644 (file)
index 0000000..9f6ea96
--- /dev/null
@@ -0,0 +1,9 @@
+
+CREATE TABLE monitor_server_info (
+       erverip      inet not null,
+       spnum        int  not null,
+       serverstat   int  not null,
+       serverinfo   text,
+       serverid     serial
+);
+
diff --git a/database/postgres/monitoring.sql b/database/postgres/monitoring.sql
new file mode 100644 (file)
index 0000000..c3967b7
--- /dev/null
@@ -0,0 +1,22 @@
+
+
+CREATE TABLE monitoring (
+       juukey     int not null,
+       msnumber   int not null,
+       moproto    int not null,
+       serverid   int not null,
+       modport    int not null,
+       mailprno   int not null,
+       mailreno   int not null,
+       mostat     int not null,
+       msps       int,
+       premsps    int,
+       moextime   bigint,
+       expitime   bigint,
+       modhost    char[1024],
+       moptions   char[256],
+       moinfo     char[1024],
+       mukey      serial
+);
+
+
diff --git a/database/postgres/user_auth.sql b/database/postgres/user_auth.sql
new file mode 100644 (file)
index 0000000..10baf04
--- /dev/null
@@ -0,0 +1,20 @@
+
+CREATE TABLE user_auth (
+       aastat     int not null,
+       cnum       int not null,
+       eoa1       int not null,
+       eoa2       int not null,
+       soip       inet,
+       starttime  bigint,
+       stoptime   bigint,
+       lltime     bigint,
+       detime     bigint,
+       fmaddr     char[256] not null,
+       uname      char[128] not null,
+       pass       char[256] not null,
+       sesid      char[256],
+       makey      char[256],
+       uukey      serial
+);
+
+