Merge remote-tracking branch 'origin/master'

Conflicts:
	RIGS/templatetags/filters.py
	db.sqlite3
This commit is contained in:
tomtom5152
2014-11-05 13:29:57 +00:00
19 changed files with 1226 additions and 59 deletions

2
.idea/PyRIGS.iml generated
View File

@@ -11,7 +11,7 @@
</component> </component>
<component name="NewModuleRootManager"> <component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" /> <content url="file://$MODULE_DIR$" />
<orderEntry type="jdk" jdkName="Python 2.7.5 virtualenv at ~/pyrigs" jdkType="Python SDK" /> <orderEntry type="jdk" jdkName="Python 3.4.2 virtualenv at ~/.virtualenvs/pyrigs" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="sass-stdlib" level="application" /> <orderEntry type="library" name="sass-stdlib" level="application" />
</component> </component>

830
.idea/dataSources.ids generated
View File

@@ -1,6 +1,836 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<component name="dataSourceStorage"> <component name="dataSourceStorage">
<data-source source="LOCAL" name="Django default" uuid="09730cb6-cd27-4034-9959-d242e7905a51"> <data-source source="LOCAL" name="Django default" uuid="09730cb6-cd27-4034-9959-d242e7905a51">
<database-info product="SQLite" version="3.7.6.3" jdbc-version="2.1" driver-name="SQLiteJDBC" driver-version="native"/>
<case-sensitivity plain-identifiers="mixed" quoted-identifiers="mixed"/>
<schema name="" catalog=""/>
<table name="RIGS_organisation" schema="" catalog="" type="TABLE">
<column name="id" sqlType="INTEGER" precision="2000000000" scale="10" nullable="false" jdbcType="4"/>
<column name="name" sqlType="VARCHAR(50)" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<column name="phone" sqlType="VARCHAR(15)" precision="2000000000" scale="10" nullable="true" jdbcType="12"/>
<column name="email" sqlType="VARCHAR(75)" precision="2000000000" scale="10" nullable="true" jdbcType="12"/>
<column name="address" sqlType="TEXT" precision="2000000000" scale="10" nullable="true" jdbcType="12"/>
<column name="notes" sqlType="TEXT" precision="2000000000" scale="10" nullable="true" jdbcType="12"/>
<column name="unionAccount" sqlType="BOOL" precision="2000000000" scale="10" nullable="false" jdbcType="4"/>
<primary-key columns="id"/>
</table>
<table name="RIGS_person" schema="" catalog="" type="TABLE">
<column name="id" sqlType="INTEGER" precision="2000000000" scale="10" nullable="false" jdbcType="4"/>
<column name="name" sqlType="VARCHAR(50)" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<column name="phone" sqlType="VARCHAR(15)" precision="2000000000" scale="10" nullable="true" jdbcType="12"/>
<column name="email" sqlType="VARCHAR(75)" precision="2000000000" scale="10" nullable="true" jdbcType="12"/>
<column name="address" sqlType="TEXT" precision="2000000000" scale="10" nullable="true" jdbcType="12"/>
<column name="notes" sqlType="TEXT" precision="2000000000" scale="10" nullable="true" jdbcType="12"/>
<primary-key columns="id"/>
</table>
<table name="RIGS_profile" schema="" catalog="" type="TABLE">
<column name="id" sqlType="INTEGER" precision="2000000000" scale="10" nullable="false" jdbcType="4"/>
<column name="password" sqlType="VARCHAR(128)" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<column name="last_login" sqlType="DATETIME" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<column name="is_superuser" sqlType="BOOL" precision="2000000000" scale="10" nullable="false" jdbcType="4"/>
<column name="username" sqlType="VARCHAR(30)" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<column name="first_name" sqlType="VARCHAR(30)" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<column name="last_name" sqlType="VARCHAR(30)" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<column name="email" sqlType="VARCHAR(75)" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<column name="is_staff" sqlType="BOOL" precision="2000000000" scale="10" nullable="false" jdbcType="4"/>
<column name="is_active" sqlType="BOOL" precision="2000000000" scale="10" nullable="false" jdbcType="4"/>
<column name="date_joined" sqlType="DATETIME" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<column name="initials" sqlType="VARCHAR(5)" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<column name="phone" sqlType="VARCHAR(13)" precision="2000000000" scale="10" nullable="true" jdbcType="12"/>
<primary-key columns="id"/>
<exported-key name="#FAKE_RIGS_profile_groups_2" table="RIGS_profile_groups" schema="" catalog="" columns="profile_id"/>
<exported-key name="#FAKE_RIGS_profile_user_permissions_2" table="RIGS_profile_user_permissions" schema="" catalog="" columns="profile_id"/>
<exported-key name="#FAKE_django_admin_log_1" table="django_admin_log" schema="" catalog="" columns="user_id"/>
<exported-key name="#FAKE_reversion_revision_1" table="reversion_revision" schema="" catalog="" columns="user_id"/>
</table>
<table name="RIGS_profile_groups" schema="" catalog="" type="TABLE">
<column name="id" sqlType="INTEGER" precision="2000000000" scale="10" nullable="false" jdbcType="4"/>
<column name="profile_id" sqlType="INTEGER" precision="2000000000" scale="10" nullable="false" jdbcType="4"/>
<column name="group_id" sqlType="INTEGER" precision="2000000000" scale="10" nullable="false" jdbcType="4"/>
<primary-key columns="id"/>
<foreign-key name="#FAKE_RIGS_profile_groups_1" columns="group_id" ref-table="auth_group" ref-schema="" ref-catalog="" ref-columns="id" update-rule="3" delete-rule="3" deferrability="1"/>
<foreign-key name="#FAKE_RIGS_profile_groups_2" columns="profile_id" ref-table="RIGS_profile" ref-schema="" ref-catalog="" ref-columns="id" update-rule="3" delete-rule="3" deferrability="1"/>
<index name="RIGS_profile_groups_0e939a4f" unique="true" columns="group_id"/>
<index name="RIGS_profile_groups_83a0eb3f" unique="true" columns="profile_id"/>
</table>
<table name="RIGS_profile_user_permissions" schema="" catalog="" type="TABLE">
<column name="id" sqlType="INTEGER" precision="2000000000" scale="10" nullable="false" jdbcType="4"/>
<column name="profile_id" sqlType="INTEGER" precision="2000000000" scale="10" nullable="false" jdbcType="4"/>
<column name="permission_id" sqlType="INTEGER" precision="2000000000" scale="10" nullable="false" jdbcType="4"/>
<primary-key columns="id"/>
<foreign-key name="#FAKE_RIGS_profile_user_permissions_1" columns="permission_id" ref-table="auth_permission" ref-schema="" ref-catalog="" ref-columns="id" update-rule="3" delete-rule="3" deferrability="1"/>
<foreign-key name="#FAKE_RIGS_profile_user_permissions_2" columns="profile_id" ref-table="RIGS_profile" ref-schema="" ref-catalog="" ref-columns="id" update-rule="3" delete-rule="3" deferrability="1"/>
<index name="RIGS_profile_user_permissions_8373b171" unique="true" columns="permission_id"/>
<index name="RIGS_profile_user_permissions_83a0eb3f" unique="true" columns="profile_id"/>
</table>
<table name="auth_group" schema="" catalog="" type="TABLE">
<column name="id" sqlType="INTEGER" precision="2000000000" scale="10" nullable="false" jdbcType="4"/>
<column name="name" sqlType="VARCHAR(80)" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<primary-key columns="id"/>
<exported-key name="#FAKE_RIGS_profile_groups_1" table="RIGS_profile_groups" schema="" catalog="" columns="group_id"/>
<exported-key name="#FAKE_auth_group_permissions_2" table="auth_group_permissions" schema="" catalog="" columns="group_id"/>
</table>
<table name="auth_group_permissions" schema="" catalog="" type="TABLE">
<column name="id" sqlType="INTEGER" precision="2000000000" scale="10" nullable="false" jdbcType="4"/>
<column name="group_id" sqlType="INTEGER" precision="2000000000" scale="10" nullable="false" jdbcType="4"/>
<column name="permission_id" sqlType="INTEGER" precision="2000000000" scale="10" nullable="false" jdbcType="4"/>
<primary-key columns="id"/>
<foreign-key name="#FAKE_auth_group_permissions_1" columns="permission_id" ref-table="auth_permission" ref-schema="" ref-catalog="" ref-columns="id" update-rule="3" delete-rule="3" deferrability="1"/>
<foreign-key name="#FAKE_auth_group_permissions_2" columns="group_id" ref-table="auth_group" ref-schema="" ref-catalog="" ref-columns="id" update-rule="3" delete-rule="3" deferrability="1"/>
<index name="auth_group_permissions_8373b171" unique="true" columns="permission_id"/>
<index name="auth_group_permissions_0e939a4f" unique="true" columns="group_id"/>
</table>
<table name="auth_permission" schema="" catalog="" type="TABLE">
<column name="id" sqlType="INTEGER" precision="2000000000" scale="10" nullable="false" jdbcType="4"/>
<column name="name" sqlType="VARCHAR(50)" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<column name="content_type_id" sqlType="INTEGER" precision="2000000000" scale="10" nullable="false" jdbcType="4"/>
<column name="codename" sqlType="VARCHAR(100)" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<primary-key columns="id"/>
<foreign-key name="#FAKE_auth_permission_1" columns="content_type_id" ref-table="django_content_type" ref-schema="" ref-catalog="" ref-columns="id" update-rule="3" delete-rule="3" deferrability="1"/>
<exported-key name="#FAKE_RIGS_profile_user_permissions_1" table="RIGS_profile_user_permissions" schema="" catalog="" columns="permission_id"/>
<exported-key name="#FAKE_auth_group_permissions_1" table="auth_group_permissions" schema="" catalog="" columns="permission_id"/>
<index name="auth_permission_417f1b1c" unique="true" columns="content_type_id"/>
</table>
<table name="django_admin_log" schema="" catalog="" type="TABLE">
<column name="id" sqlType="INTEGER" precision="2000000000" scale="10" nullable="false" jdbcType="4"/>
<column name="action_time" sqlType="DATETIME" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<column name="object_id" sqlType="TEXT" precision="2000000000" scale="10" nullable="true" jdbcType="12"/>
<column name="object_repr" sqlType="VARCHAR(200)" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<column name="action_flag" sqlType="SMALLINT UNSIGNED" precision="2000000000" scale="10" nullable="false" jdbcType="4"/>
<column name="change_message" sqlType="TEXT" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<column name="content_type_id" sqlType="INTEGER" precision="2000000000" scale="10" nullable="true" jdbcType="4"/>
<column name="user_id" sqlType="INTEGER" precision="2000000000" scale="10" nullable="false" jdbcType="4"/>
<primary-key columns="id"/>
<foreign-key name="#FAKE_django_admin_log_1" columns="user_id" ref-table="RIGS_profile" ref-schema="" ref-catalog="" ref-columns="id" update-rule="3" delete-rule="3" deferrability="1"/>
<foreign-key name="#FAKE_django_admin_log_2" columns="content_type_id" ref-table="django_content_type" ref-schema="" ref-catalog="" ref-columns="id" update-rule="3" delete-rule="3" deferrability="1"/>
<index name="django_admin_log_e8701ad4" unique="true" columns="user_id"/>
<index name="django_admin_log_417f1b1c" unique="true" columns="content_type_id"/>
</table>
<table name="django_content_type" schema="" catalog="" type="TABLE">
<column name="id" sqlType="INTEGER" precision="2000000000" scale="10" nullable="false" jdbcType="4"/>
<column name="name" sqlType="VARCHAR(100)" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<column name="app_label" sqlType="VARCHAR(100)" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<column name="model" sqlType="VARCHAR(100)" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<primary-key columns="id"/>
<exported-key name="#FAKE_auth_permission_1" table="auth_permission" schema="" catalog="" columns="content_type_id"/>
<exported-key name="#FAKE_django_admin_log_2" table="django_admin_log" schema="" catalog="" columns="content_type_id"/>
<exported-key name="#FAKE_reversion_version_2" table="reversion_version" schema="" catalog="" columns="content_type_id"/>
</table>
<table name="django_migrations" schema="" catalog="" type="TABLE">
<column name="id" sqlType="INTEGER" precision="2000000000" scale="10" nullable="false" jdbcType="4"/>
<column name="app" sqlType="VARCHAR(255)" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<column name="name" sqlType="VARCHAR(255)" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<column name="applied" sqlType="DATETIME" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<primary-key columns="id"/>
</table>
<table name="django_session" schema="" catalog="" type="TABLE">
<column name="session_key" sqlType="VARCHAR(40)" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<column name="session_data" sqlType="TEXT" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<column name="expire_date" sqlType="DATETIME" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<primary-key columns="session_key"/>
<index name="django_session_de54fa62" unique="true" columns="expire_date"/>
</table>
<table name="registration_registrationprofile" schema="" catalog="" type="TABLE">
<column name="id" sqlType="INTEGER" precision="2000000000" scale="10" nullable="false" jdbcType="4"/>
<column name="user_id" sqlType="INTEGER" precision="2000000000" scale="10" nullable="false" jdbcType="4"/>
<column name="activation_key" sqlType="VARCHAR(40)" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<primary-key columns="id"/>
</table>
<table name="reversion_revision" schema="" catalog="" type="TABLE">
<column name="id" sqlType="INTEGER" precision="2000000000" scale="10" nullable="false" jdbcType="4"/>
<column name="manager_slug" sqlType="VARCHAR(200)" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<column name="date_created" sqlType="DATETIME" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<column name="comment" sqlType="TEXT" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<column name="user_id" sqlType="INTEGER" precision="2000000000" scale="10" nullable="true" jdbcType="4"/>
<primary-key columns="id"/>
<foreign-key name="#FAKE_reversion_revision_1" columns="user_id" ref-table="RIGS_profile" ref-schema="" ref-catalog="" ref-columns="id" update-rule="3" delete-rule="3" deferrability="1"/>
<exported-key name="#FAKE_reversion_version_1" table="reversion_version" schema="" catalog="" columns="revision_id"/>
<index name="reversion_revision_e8701ad4" unique="true" columns="user_id"/>
<index name="reversion_revision_c69e55a4" unique="true" columns="date_created"/>
<index name="reversion_revision_b16b0f06" unique="true" columns="manager_slug"/>
</table>
<table name="reversion_version" schema="" catalog="" type="TABLE">
<column name="id" sqlType="INTEGER" precision="2000000000" scale="10" nullable="false" jdbcType="4"/>
<column name="object_id" sqlType="TEXT" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<column name="object_id_int" sqlType="INTEGER" precision="2000000000" scale="10" nullable="true" jdbcType="4"/>
<column name="format" sqlType="VARCHAR(255)" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<column name="serialized_data" sqlType="TEXT" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<column name="object_repr" sqlType="TEXT" precision="2000000000" scale="10" nullable="false" jdbcType="12"/>
<column name="content_type_id" sqlType="INTEGER" precision="2000000000" scale="10" nullable="false" jdbcType="4"/>
<column name="revision_id" sqlType="INTEGER" precision="2000000000" scale="10" nullable="false" jdbcType="4"/>
<primary-key columns="id"/>
<foreign-key name="#FAKE_reversion_version_1" columns="revision_id" ref-table="reversion_revision" ref-schema="" ref-catalog="" ref-columns="id" update-rule="3" delete-rule="3" deferrability="1"/>
<foreign-key name="#FAKE_reversion_version_2" columns="content_type_id" ref-table="django_content_type" ref-schema="" ref-catalog="" ref-columns="id" update-rule="3" delete-rule="3" deferrability="1"/>
<index name="reversion_version_5de09a8d" unique="true" columns="revision_id"/>
<index name="reversion_version_417f1b1c" unique="true" columns="content_type_id"/>
<index name="reversion_version_0c9ba3a3" unique="true" columns="object_id_int"/>
</table>
<table name="sqlite_sequence" schema="" catalog="" type="TABLE">
<column name="name" sqlType="" precision="2000000000" scale="10" nullable="true" jdbcType="12"/>
<column name="seq" sqlType="" precision="2000000000" scale="10" nullable="true" jdbcType="12"/>
</table>
</data-source>
<data-source source="LOCAL" name="MySQL - tec_rigs@alfie.codedinternet.com" uuid="828bc60d-f5c3-4e1f-9566-2614d7328388">
<database-info product="MySQL" version="5.1.73-cll" jdbc-version="4.0" driver-name="MySQL Connector Java" driver-version="mysql-connector-java-5.1.31 ( Revision: alexander.soklakov@oracle.com-20140520065950-groqzzbvxprqdmnz )">
<extra-name-characters>#@</extra-name-characters>
<identifier-quote-string>`</identifier-quote-string>
</database-info>
<case-sensitivity plain-identifiers="exact" quoted-identifiers="exact"/>
<schema name="" catalog="information_schema"/>
<schema name="" catalog="tec_rigs"/>
<table name="CHARACTER_SETS" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="CHARACTER_SET_NAME" sqlType="VARCHAR" precision="32" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="DEFAULT_COLLATE_NAME" sqlType="VARCHAR" precision="32" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="DESCRIPTION" sqlType="VARCHAR" precision="60" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="MAXLEN" sqlType="BIGINT" precision="19" scale="0" nullable="false" jdbcType="-5" def="MA=="/>
</table>
<table name="CLIENT_STATISTICS" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="CLIENT" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="TOTAL_CONNECTIONS" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="CONCURRENT_CONNECTIONS" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="CONNECTED_TIME" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="BUSY_TIME" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="CPU_TIME" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="BYTES_RECEIVED" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="BYTES_SENT" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="BINLOG_BYTES_WRITTEN" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="ROWS_FETCHED" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="ROWS_UPDATED" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="TABLE_ROWS_READ" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="SELECT_COMMANDS" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="UPDATE_COMMANDS" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="OTHER_COMMANDS" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="COMMIT_TRANSACTIONS" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="ROLLBACK_TRANSACTIONS" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="DENIED_CONNECTIONS" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="LOST_CONNECTIONS" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="ACCESS_DENIED" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="EMPTY_QUERIES" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
</table>
<table name="COLLATIONS" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="COLLATION_NAME" sqlType="VARCHAR" precision="32" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="CHARACTER_SET_NAME" sqlType="VARCHAR" precision="32" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="ID" sqlType="BIGINT" precision="19" scale="0" nullable="false" jdbcType="-5" def="MA=="/>
<column name="IS_DEFAULT" sqlType="VARCHAR" precision="3" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="IS_COMPILED" sqlType="VARCHAR" precision="3" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="SORTLEN" sqlType="BIGINT" precision="19" scale="0" nullable="false" jdbcType="-5" def="MA=="/>
</table>
<table name="COLLATION_CHARACTER_SET_APPLICABILITY" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="COLLATION_NAME" sqlType="VARCHAR" precision="32" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="CHARACTER_SET_NAME" sqlType="VARCHAR" precision="32" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
</table>
<table name="COLUMNS" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="TABLE_CATALOG" sqlType="VARCHAR" precision="512" scale="0" nullable="true" jdbcType="12"/>
<column name="TABLE_SCHEMA" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="TABLE_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="COLUMN_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="ORDINAL_POSITION" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="false" jdbcType="-5" def="MA=="/>
<column name="COLUMN_DEFAULT" sqlType="LONGTEXT" precision="2147483647" scale="0" nullable="true" jdbcType="-1"/>
<column name="IS_NULLABLE" sqlType="VARCHAR" precision="3" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="DATA_TYPE" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="CHARACTER_MAXIMUM_LENGTH" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="true" jdbcType="-5"/>
<column name="CHARACTER_OCTET_LENGTH" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="true" jdbcType="-5"/>
<column name="NUMERIC_PRECISION" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="true" jdbcType="-5"/>
<column name="NUMERIC_SCALE" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="true" jdbcType="-5"/>
<column name="CHARACTER_SET_NAME" sqlType="VARCHAR" precision="32" scale="0" nullable="true" jdbcType="12"/>
<column name="COLLATION_NAME" sqlType="VARCHAR" precision="32" scale="0" nullable="true" jdbcType="12"/>
<column name="COLUMN_TYPE" sqlType="LONGTEXT" precision="2147483647" scale="0" nullable="false" jdbcType="-1"/>
<column name="COLUMN_KEY" sqlType="VARCHAR" precision="3" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="EXTRA" sqlType="VARCHAR" precision="27" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="PRIVILEGES" sqlType="VARCHAR" precision="80" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="COLUMN_COMMENT" sqlType="VARCHAR" precision="255" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
</table>
<table name="COLUMN_PRIVILEGES" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="GRANTEE" sqlType="VARCHAR" precision="81" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="TABLE_CATALOG" sqlType="VARCHAR" precision="512" scale="0" nullable="true" jdbcType="12"/>
<column name="TABLE_SCHEMA" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="TABLE_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="COLUMN_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="PRIVILEGE_TYPE" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="IS_GRANTABLE" sqlType="VARCHAR" precision="3" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
</table>
<table name="ENGINES" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="ENGINE" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="SUPPORT" sqlType="VARCHAR" precision="8" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="COMMENT" sqlType="VARCHAR" precision="80" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="TRANSACTIONS" sqlType="VARCHAR" precision="3" scale="0" nullable="true" jdbcType="12"/>
<column name="XA" sqlType="VARCHAR" precision="3" scale="0" nullable="true" jdbcType="12"/>
<column name="SAVEPOINTS" sqlType="VARCHAR" precision="3" scale="0" nullable="true" jdbcType="12"/>
</table>
<table name="EVENTS" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="EVENT_CATALOG" sqlType="VARCHAR" precision="64" scale="0" nullable="true" jdbcType="12"/>
<column name="EVENT_SCHEMA" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="EVENT_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="DEFINER" sqlType="VARCHAR" precision="77" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="TIME_ZONE" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="EVENT_BODY" sqlType="VARCHAR" precision="8" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="EVENT_DEFINITION" sqlType="LONGTEXT" precision="2147483647" scale="0" nullable="false" jdbcType="-1"/>
<column name="EVENT_TYPE" sqlType="VARCHAR" precision="9" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="EXECUTE_AT" sqlType="DATETIME" precision="19" scale="0" nullable="true" jdbcType="93"/>
<column name="INTERVAL_VALUE" sqlType="VARCHAR" precision="256" scale="0" nullable="true" jdbcType="12"/>
<column name="INTERVAL_FIELD" sqlType="VARCHAR" precision="18" scale="0" nullable="true" jdbcType="12"/>
<column name="SQL_MODE" sqlType="VARCHAR" precision="8192" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="STARTS" sqlType="DATETIME" precision="19" scale="0" nullable="true" jdbcType="93"/>
<column name="ENDS" sqlType="DATETIME" precision="19" scale="0" nullable="true" jdbcType="93"/>
<column name="STATUS" sqlType="VARCHAR" precision="18" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="ON_COMPLETION" sqlType="VARCHAR" precision="12" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="CREATED" sqlType="DATETIME" precision="19" scale="0" nullable="false" jdbcType="93" def="JzAwMDAtMDAtMDAgMDA6MDA6MDAn"/>
<column name="LAST_ALTERED" sqlType="DATETIME" precision="19" scale="0" nullable="false" jdbcType="93" def="JzAwMDAtMDAtMDAgMDA6MDA6MDAn"/>
<column name="LAST_EXECUTED" sqlType="DATETIME" precision="19" scale="0" nullable="true" jdbcType="93"/>
<column name="EVENT_COMMENT" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="ORIGINATOR" sqlType="BIGINT" precision="19" scale="0" nullable="false" jdbcType="-5" def="MA=="/>
<column name="CHARACTER_SET_CLIENT" sqlType="VARCHAR" precision="32" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="COLLATION_CONNECTION" sqlType="VARCHAR" precision="32" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="DATABASE_COLLATION" sqlType="VARCHAR" precision="32" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
</table>
<table name="FILES" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="FILE_ID" sqlType="BIGINT" precision="19" scale="0" nullable="false" jdbcType="-5" def="MA=="/>
<column name="FILE_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="true" jdbcType="12"/>
<column name="FILE_TYPE" sqlType="VARCHAR" precision="20" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="TABLESPACE_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="true" jdbcType="12"/>
<column name="TABLE_CATALOG" sqlType="VARCHAR" precision="64" scale="0" nullable="true" jdbcType="12"/>
<column name="TABLE_SCHEMA" sqlType="VARCHAR" precision="64" scale="0" nullable="true" jdbcType="12"/>
<column name="TABLE_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="true" jdbcType="12"/>
<column name="LOGFILE_GROUP_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="true" jdbcType="12"/>
<column name="LOGFILE_GROUP_NUMBER" sqlType="BIGINT" precision="19" scale="0" nullable="true" jdbcType="-5"/>
<column name="ENGINE" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="FULLTEXT_KEYS" sqlType="VARCHAR" precision="64" scale="0" nullable="true" jdbcType="12"/>
<column name="DELETED_ROWS" sqlType="BIGINT" precision="19" scale="0" nullable="true" jdbcType="-5"/>
<column name="UPDATE_COUNT" sqlType="BIGINT" precision="19" scale="0" nullable="true" jdbcType="-5"/>
<column name="FREE_EXTENTS" sqlType="BIGINT" precision="19" scale="0" nullable="true" jdbcType="-5"/>
<column name="TOTAL_EXTENTS" sqlType="BIGINT" precision="19" scale="0" nullable="true" jdbcType="-5"/>
<column name="EXTENT_SIZE" sqlType="BIGINT" precision="19" scale="0" nullable="false" jdbcType="-5" def="MA=="/>
<column name="INITIAL_SIZE" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="true" jdbcType="-5"/>
<column name="MAXIMUM_SIZE" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="true" jdbcType="-5"/>
<column name="AUTOEXTEND_SIZE" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="true" jdbcType="-5"/>
<column name="CREATION_TIME" sqlType="DATETIME" precision="19" scale="0" nullable="true" jdbcType="93"/>
<column name="LAST_UPDATE_TIME" sqlType="DATETIME" precision="19" scale="0" nullable="true" jdbcType="93"/>
<column name="LAST_ACCESS_TIME" sqlType="DATETIME" precision="19" scale="0" nullable="true" jdbcType="93"/>
<column name="RECOVER_TIME" sqlType="BIGINT" precision="19" scale="0" nullable="true" jdbcType="-5"/>
<column name="TRANSACTION_COUNTER" sqlType="BIGINT" precision="19" scale="0" nullable="true" jdbcType="-5"/>
<column name="VERSION" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="true" jdbcType="-5"/>
<column name="ROW_FORMAT" sqlType="VARCHAR" precision="10" scale="0" nullable="true" jdbcType="12"/>
<column name="TABLE_ROWS" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="true" jdbcType="-5"/>
<column name="AVG_ROW_LENGTH" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="true" jdbcType="-5"/>
<column name="DATA_LENGTH" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="true" jdbcType="-5"/>
<column name="MAX_DATA_LENGTH" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="true" jdbcType="-5"/>
<column name="INDEX_LENGTH" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="true" jdbcType="-5"/>
<column name="DATA_FREE" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="true" jdbcType="-5"/>
<column name="CREATE_TIME" sqlType="DATETIME" precision="19" scale="0" nullable="true" jdbcType="93"/>
<column name="UPDATE_TIME" sqlType="DATETIME" precision="19" scale="0" nullable="true" jdbcType="93"/>
<column name="CHECK_TIME" sqlType="DATETIME" precision="19" scale="0" nullable="true" jdbcType="93"/>
<column name="CHECKSUM" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="true" jdbcType="-5"/>
<column name="STATUS" sqlType="VARCHAR" precision="20" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="EXTRA" sqlType="VARCHAR" precision="255" scale="0" nullable="true" jdbcType="12"/>
</table>
<table name="GLOBAL_STATUS" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="VARIABLE_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="VARIABLE_VALUE" sqlType="VARCHAR" precision="1024" scale="0" nullable="true" jdbcType="12"/>
</table>
<table name="GLOBAL_VARIABLES" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="VARIABLE_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="VARIABLE_VALUE" sqlType="VARCHAR" precision="1024" scale="0" nullable="true" jdbcType="12"/>
</table>
<table name="INDEX_STATISTICS" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="TABLE_SCHEMA" sqlType="VARCHAR" precision="192" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="TABLE_NAME" sqlType="VARCHAR" precision="192" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="INDEX_NAME" sqlType="VARCHAR" precision="192" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="ROWS_READ" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
</table>
<table name="KEY_COLUMN_USAGE" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="CONSTRAINT_CATALOG" sqlType="VARCHAR" precision="512" scale="0" nullable="true" jdbcType="12"/>
<column name="CONSTRAINT_SCHEMA" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="CONSTRAINT_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="TABLE_CATALOG" sqlType="VARCHAR" precision="512" scale="0" nullable="true" jdbcType="12"/>
<column name="TABLE_SCHEMA" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="TABLE_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="COLUMN_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="ORDINAL_POSITION" sqlType="BIGINT" precision="19" scale="0" nullable="false" jdbcType="-5" def="MA=="/>
<column name="POSITION_IN_UNIQUE_CONSTRAINT" sqlType="BIGINT" precision="19" scale="0" nullable="true" jdbcType="-5"/>
<column name="REFERENCED_TABLE_SCHEMA" sqlType="VARCHAR" precision="64" scale="0" nullable="true" jdbcType="12"/>
<column name="REFERENCED_TABLE_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="true" jdbcType="12"/>
<column name="REFERENCED_COLUMN_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="true" jdbcType="12"/>
</table>
<table name="PARTITIONS" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="TABLE_CATALOG" sqlType="VARCHAR" precision="512" scale="0" nullable="true" jdbcType="12"/>
<column name="TABLE_SCHEMA" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="TABLE_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="PARTITION_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="true" jdbcType="12"/>
<column name="SUBPARTITION_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="true" jdbcType="12"/>
<column name="PARTITION_ORDINAL_POSITION" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="true" jdbcType="-5"/>
<column name="SUBPARTITION_ORDINAL_POSITION" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="true" jdbcType="-5"/>
<column name="PARTITION_METHOD" sqlType="VARCHAR" precision="12" scale="0" nullable="true" jdbcType="12"/>
<column name="SUBPARTITION_METHOD" sqlType="VARCHAR" precision="12" scale="0" nullable="true" jdbcType="12"/>
<column name="PARTITION_EXPRESSION" sqlType="LONGTEXT" precision="2147483647" scale="0" nullable="true" jdbcType="-1"/>
<column name="SUBPARTITION_EXPRESSION" sqlType="LONGTEXT" precision="2147483647" scale="0" nullable="true" jdbcType="-1"/>
<column name="PARTITION_DESCRIPTION" sqlType="LONGTEXT" precision="2147483647" scale="0" nullable="true" jdbcType="-1"/>
<column name="TABLE_ROWS" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="false" jdbcType="-5" def="MA=="/>
<column name="AVG_ROW_LENGTH" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="false" jdbcType="-5" def="MA=="/>
<column name="DATA_LENGTH" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="false" jdbcType="-5" def="MA=="/>
<column name="MAX_DATA_LENGTH" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="true" jdbcType="-5"/>
<column name="INDEX_LENGTH" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="false" jdbcType="-5" def="MA=="/>
<column name="DATA_FREE" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="false" jdbcType="-5" def="MA=="/>
<column name="CREATE_TIME" sqlType="DATETIME" precision="19" scale="0" nullable="true" jdbcType="93"/>
<column name="UPDATE_TIME" sqlType="DATETIME" precision="19" scale="0" nullable="true" jdbcType="93"/>
<column name="CHECK_TIME" sqlType="DATETIME" precision="19" scale="0" nullable="true" jdbcType="93"/>
<column name="CHECKSUM" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="true" jdbcType="-5"/>
<column name="PARTITION_COMMENT" sqlType="VARCHAR" precision="80" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="NODEGROUP" sqlType="VARCHAR" precision="12" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="TABLESPACE_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="true" jdbcType="12"/>
</table>
<table name="PLUGINS" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="PLUGIN_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="PLUGIN_VERSION" sqlType="VARCHAR" precision="20" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="PLUGIN_STATUS" sqlType="VARCHAR" precision="10" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="PLUGIN_TYPE" sqlType="VARCHAR" precision="80" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="PLUGIN_TYPE_VERSION" sqlType="VARCHAR" precision="20" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="PLUGIN_LIBRARY" sqlType="VARCHAR" precision="64" scale="0" nullable="true" jdbcType="12"/>
<column name="PLUGIN_LIBRARY_VERSION" sqlType="VARCHAR" precision="20" scale="0" nullable="true" jdbcType="12"/>
<column name="PLUGIN_AUTHOR" sqlType="VARCHAR" precision="64" scale="0" nullable="true" jdbcType="12"/>
<column name="PLUGIN_DESCRIPTION" sqlType="LONGTEXT" precision="2147483647" scale="0" nullable="true" jdbcType="-1"/>
<column name="PLUGIN_LICENSE" sqlType="VARCHAR" precision="80" scale="0" nullable="true" jdbcType="12"/>
</table>
<table name="PROCESSLIST" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="ID" sqlType="BIGINT" precision="19" scale="0" nullable="false" jdbcType="-5" def="MA=="/>
<column name="USER" sqlType="VARCHAR" precision="16" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="HOST" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="DB" sqlType="VARCHAR" precision="64" scale="0" nullable="true" jdbcType="12"/>
<column name="COMMAND" sqlType="VARCHAR" precision="16" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="TIME" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="STATE" sqlType="VARCHAR" precision="64" scale="0" nullable="true" jdbcType="12"/>
<column name="INFO" sqlType="LONGTEXT" precision="2147483647" scale="0" nullable="true" jdbcType="-1"/>
</table>
<table name="PROFILING" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="QUERY_ID" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="SEQ" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="STATE" sqlType="VARCHAR" precision="30" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="DURATION" sqlType="DECIMAL" precision="9" scale="6" nullable="false" jdbcType="3" def="MC4wMDAwMDA="/>
<column name="CPU_USER" sqlType="DECIMAL" precision="9" scale="6" nullable="true" jdbcType="3"/>
<column name="CPU_SYSTEM" sqlType="DECIMAL" precision="9" scale="6" nullable="true" jdbcType="3"/>
<column name="CONTEXT_VOLUNTARY" sqlType="INT" precision="10" scale="0" nullable="true" jdbcType="4"/>
<column name="CONTEXT_INVOLUNTARY" sqlType="INT" precision="10" scale="0" nullable="true" jdbcType="4"/>
<column name="BLOCK_OPS_IN" sqlType="INT" precision="10" scale="0" nullable="true" jdbcType="4"/>
<column name="BLOCK_OPS_OUT" sqlType="INT" precision="10" scale="0" nullable="true" jdbcType="4"/>
<column name="MESSAGES_SENT" sqlType="INT" precision="10" scale="0" nullable="true" jdbcType="4"/>
<column name="MESSAGES_RECEIVED" sqlType="INT" precision="10" scale="0" nullable="true" jdbcType="4"/>
<column name="PAGE_FAULTS_MAJOR" sqlType="INT" precision="10" scale="0" nullable="true" jdbcType="4"/>
<column name="PAGE_FAULTS_MINOR" sqlType="INT" precision="10" scale="0" nullable="true" jdbcType="4"/>
<column name="SWAPS" sqlType="INT" precision="10" scale="0" nullable="true" jdbcType="4"/>
<column name="SOURCE_FUNCTION" sqlType="VARCHAR" precision="30" scale="0" nullable="true" jdbcType="12"/>
<column name="SOURCE_FILE" sqlType="VARCHAR" precision="20" scale="0" nullable="true" jdbcType="12"/>
<column name="SOURCE_LINE" sqlType="INT" precision="10" scale="0" nullable="true" jdbcType="4"/>
</table>
<table name="REFERENTIAL_CONSTRAINTS" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="CONSTRAINT_CATALOG" sqlType="VARCHAR" precision="512" scale="0" nullable="true" jdbcType="12"/>
<column name="CONSTRAINT_SCHEMA" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="CONSTRAINT_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="UNIQUE_CONSTRAINT_CATALOG" sqlType="VARCHAR" precision="512" scale="0" nullable="true" jdbcType="12"/>
<column name="UNIQUE_CONSTRAINT_SCHEMA" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="UNIQUE_CONSTRAINT_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="true" jdbcType="12"/>
<column name="MATCH_OPTION" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="UPDATE_RULE" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="DELETE_RULE" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="TABLE_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="REFERENCED_TABLE_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
</table>
<table name="ROUTINES" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="SPECIFIC_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="ROUTINE_CATALOG" sqlType="VARCHAR" precision="512" scale="0" nullable="true" jdbcType="12"/>
<column name="ROUTINE_SCHEMA" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="ROUTINE_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="ROUTINE_TYPE" sqlType="VARCHAR" precision="9" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="DTD_IDENTIFIER" sqlType="VARCHAR" precision="64" scale="0" nullable="true" jdbcType="12"/>
<column name="ROUTINE_BODY" sqlType="VARCHAR" precision="8" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="ROUTINE_DEFINITION" sqlType="LONGTEXT" precision="2147483647" scale="0" nullable="true" jdbcType="-1"/>
<column name="EXTERNAL_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="true" jdbcType="12"/>
<column name="EXTERNAL_LANGUAGE" sqlType="VARCHAR" precision="64" scale="0" nullable="true" jdbcType="12"/>
<column name="PARAMETER_STYLE" sqlType="VARCHAR" precision="8" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="IS_DETERMINISTIC" sqlType="VARCHAR" precision="3" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="SQL_DATA_ACCESS" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="SQL_PATH" sqlType="VARCHAR" precision="64" scale="0" nullable="true" jdbcType="12"/>
<column name="SECURITY_TYPE" sqlType="VARCHAR" precision="7" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="CREATED" sqlType="DATETIME" precision="19" scale="0" nullable="false" jdbcType="93" def="JzAwMDAtMDAtMDAgMDA6MDA6MDAn"/>
<column name="LAST_ALTERED" sqlType="DATETIME" precision="19" scale="0" nullable="false" jdbcType="93" def="JzAwMDAtMDAtMDAgMDA6MDA6MDAn"/>
<column name="SQL_MODE" sqlType="VARCHAR" precision="8192" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="ROUTINE_COMMENT" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="DEFINER" sqlType="VARCHAR" precision="77" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="CHARACTER_SET_CLIENT" sqlType="VARCHAR" precision="32" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="COLLATION_CONNECTION" sqlType="VARCHAR" precision="32" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="DATABASE_COLLATION" sqlType="VARCHAR" precision="32" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
</table>
<table name="SCHEMATA" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="CATALOG_NAME" sqlType="VARCHAR" precision="512" scale="0" nullable="true" jdbcType="12"/>
<column name="SCHEMA_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="DEFAULT_CHARACTER_SET_NAME" sqlType="VARCHAR" precision="32" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="DEFAULT_COLLATION_NAME" sqlType="VARCHAR" precision="32" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="SQL_PATH" sqlType="VARCHAR" precision="512" scale="0" nullable="true" jdbcType="12"/>
</table>
<table name="SCHEMA_PRIVILEGES" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="GRANTEE" sqlType="VARCHAR" precision="81" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="TABLE_CATALOG" sqlType="VARCHAR" precision="512" scale="0" nullable="true" jdbcType="12"/>
<column name="TABLE_SCHEMA" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="PRIVILEGE_TYPE" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="IS_GRANTABLE" sqlType="VARCHAR" precision="3" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
</table>
<table name="SESSION_STATUS" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="VARIABLE_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="VARIABLE_VALUE" sqlType="VARCHAR" precision="1024" scale="0" nullable="true" jdbcType="12"/>
</table>
<table name="SESSION_VARIABLES" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="VARIABLE_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="VARIABLE_VALUE" sqlType="VARCHAR" precision="1024" scale="0" nullable="true" jdbcType="12"/>
</table>
<table name="STATISTICS" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="TABLE_CATALOG" sqlType="VARCHAR" precision="512" scale="0" nullable="true" jdbcType="12"/>
<column name="TABLE_SCHEMA" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="TABLE_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="NON_UNIQUE" sqlType="BIGINT" precision="19" scale="0" nullable="false" jdbcType="-5" def="MA=="/>
<column name="INDEX_SCHEMA" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="INDEX_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="SEQ_IN_INDEX" sqlType="BIGINT" precision="19" scale="0" nullable="false" jdbcType="-5" def="MA=="/>
<column name="COLUMN_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="COLLATION" sqlType="VARCHAR" precision="1" scale="0" nullable="true" jdbcType="12"/>
<column name="CARDINALITY" sqlType="BIGINT" precision="19" scale="0" nullable="true" jdbcType="-5"/>
<column name="SUB_PART" sqlType="BIGINT" precision="19" scale="0" nullable="true" jdbcType="-5"/>
<column name="PACKED" sqlType="VARCHAR" precision="10" scale="0" nullable="true" jdbcType="12"/>
<column name="NULLABLE" sqlType="VARCHAR" precision="3" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="INDEX_TYPE" sqlType="VARCHAR" precision="16" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="COMMENT" sqlType="VARCHAR" precision="16" scale="0" nullable="true" jdbcType="12"/>
</table>
<table name="TABLES" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="TABLE_CATALOG" sqlType="VARCHAR" precision="512" scale="0" nullable="true" jdbcType="12"/>
<column name="TABLE_SCHEMA" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="TABLE_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="TABLE_TYPE" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="ENGINE" sqlType="VARCHAR" precision="64" scale="0" nullable="true" jdbcType="12"/>
<column name="VERSION" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="true" jdbcType="-5"/>
<column name="ROW_FORMAT" sqlType="VARCHAR" precision="10" scale="0" nullable="true" jdbcType="12"/>
<column name="TABLE_ROWS" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="true" jdbcType="-5"/>
<column name="AVG_ROW_LENGTH" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="true" jdbcType="-5"/>
<column name="DATA_LENGTH" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="true" jdbcType="-5"/>
<column name="MAX_DATA_LENGTH" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="true" jdbcType="-5"/>
<column name="INDEX_LENGTH" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="true" jdbcType="-5"/>
<column name="DATA_FREE" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="true" jdbcType="-5"/>
<column name="AUTO_INCREMENT" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="true" jdbcType="-5"/>
<column name="CREATE_TIME" sqlType="DATETIME" precision="19" scale="0" nullable="true" jdbcType="93"/>
<column name="UPDATE_TIME" sqlType="DATETIME" precision="19" scale="0" nullable="true" jdbcType="93"/>
<column name="CHECK_TIME" sqlType="DATETIME" precision="19" scale="0" nullable="true" jdbcType="93"/>
<column name="TABLE_COLLATION" sqlType="VARCHAR" precision="32" scale="0" nullable="true" jdbcType="12"/>
<column name="CHECKSUM" sqlType="BIGINT UNSIGNED" precision="20" scale="0" nullable="true" jdbcType="-5"/>
<column name="CREATE_OPTIONS" sqlType="VARCHAR" precision="255" scale="0" nullable="true" jdbcType="12"/>
<column name="TABLE_COMMENT" sqlType="VARCHAR" precision="80" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
</table>
<table name="TABLE_CONSTRAINTS" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="CONSTRAINT_CATALOG" sqlType="VARCHAR" precision="512" scale="0" nullable="true" jdbcType="12"/>
<column name="CONSTRAINT_SCHEMA" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="CONSTRAINT_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="TABLE_SCHEMA" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="TABLE_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="CONSTRAINT_TYPE" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
</table>
<table name="TABLE_PRIVILEGES" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="GRANTEE" sqlType="VARCHAR" precision="81" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="TABLE_CATALOG" sqlType="VARCHAR" precision="512" scale="0" nullable="true" jdbcType="12"/>
<column name="TABLE_SCHEMA" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="TABLE_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="PRIVILEGE_TYPE" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="IS_GRANTABLE" sqlType="VARCHAR" precision="3" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
</table>
<table name="TABLE_STATISTICS" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="TABLE_SCHEMA" sqlType="VARCHAR" precision="192" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="TABLE_NAME" sqlType="VARCHAR" precision="192" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="ROWS_READ" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="ROWS_CHANGED" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="ROWS_CHANGED_X_INDEXES" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
</table>
<table name="THREAD_STATISTICS" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="THREAD_ID" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="TOTAL_CONNECTIONS" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="CONCURRENT_CONNECTIONS" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="CONNECTED_TIME" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="BUSY_TIME" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="CPU_TIME" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="BYTES_RECEIVED" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="BYTES_SENT" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="BINLOG_BYTES_WRITTEN" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="ROWS_FETCHED" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="ROWS_UPDATED" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="TABLE_ROWS_READ" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="SELECT_COMMANDS" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="UPDATE_COMMANDS" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="OTHER_COMMANDS" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="COMMIT_TRANSACTIONS" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="ROLLBACK_TRANSACTIONS" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="DENIED_CONNECTIONS" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="LOST_CONNECTIONS" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="ACCESS_DENIED" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="EMPTY_QUERIES" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
</table>
<table name="TRIGGERS" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="TRIGGER_CATALOG" sqlType="VARCHAR" precision="512" scale="0" nullable="true" jdbcType="12"/>
<column name="TRIGGER_SCHEMA" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="TRIGGER_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="EVENT_MANIPULATION" sqlType="VARCHAR" precision="6" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="EVENT_OBJECT_CATALOG" sqlType="VARCHAR" precision="512" scale="0" nullable="true" jdbcType="12"/>
<column name="EVENT_OBJECT_SCHEMA" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="EVENT_OBJECT_TABLE" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="ACTION_ORDER" sqlType="BIGINT" precision="19" scale="0" nullable="false" jdbcType="-5" def="MA=="/>
<column name="ACTION_CONDITION" sqlType="LONGTEXT" precision="2147483647" scale="0" nullable="true" jdbcType="-1"/>
<column name="ACTION_STATEMENT" sqlType="LONGTEXT" precision="2147483647" scale="0" nullable="false" jdbcType="-1"/>
<column name="ACTION_ORIENTATION" sqlType="VARCHAR" precision="9" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="ACTION_TIMING" sqlType="VARCHAR" precision="6" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="ACTION_REFERENCE_OLD_TABLE" sqlType="VARCHAR" precision="64" scale="0" nullable="true" jdbcType="12"/>
<column name="ACTION_REFERENCE_NEW_TABLE" sqlType="VARCHAR" precision="64" scale="0" nullable="true" jdbcType="12"/>
<column name="ACTION_REFERENCE_OLD_ROW" sqlType="VARCHAR" precision="3" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="ACTION_REFERENCE_NEW_ROW" sqlType="VARCHAR" precision="3" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="CREATED" sqlType="DATETIME" precision="19" scale="0" nullable="true" jdbcType="93"/>
<column name="SQL_MODE" sqlType="VARCHAR" precision="8192" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="DEFINER" sqlType="VARCHAR" precision="77" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="CHARACTER_SET_CLIENT" sqlType="VARCHAR" precision="32" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="COLLATION_CONNECTION" sqlType="VARCHAR" precision="32" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="DATABASE_COLLATION" sqlType="VARCHAR" precision="32" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
</table>
<table name="USER_PRIVILEGES" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="GRANTEE" sqlType="VARCHAR" precision="81" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="TABLE_CATALOG" sqlType="VARCHAR" precision="512" scale="0" nullable="true" jdbcType="12"/>
<column name="PRIVILEGE_TYPE" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="IS_GRANTABLE" sqlType="VARCHAR" precision="3" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
</table>
<table name="USER_STATISTICS" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="USER" sqlType="VARCHAR" precision="48" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="TOTAL_CONNECTIONS" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="CONCURRENT_CONNECTIONS" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="CONNECTED_TIME" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="BUSY_TIME" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="CPU_TIME" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="BYTES_RECEIVED" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="BYTES_SENT" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="BINLOG_BYTES_WRITTEN" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="ROWS_FETCHED" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="ROWS_UPDATED" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="TABLE_ROWS_READ" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="SELECT_COMMANDS" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="UPDATE_COMMANDS" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="OTHER_COMMANDS" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="COMMIT_TRANSACTIONS" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="ROLLBACK_TRANSACTIONS" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="DENIED_CONNECTIONS" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="LOST_CONNECTIONS" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="ACCESS_DENIED" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="EMPTY_QUERIES" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
</table>
<table name="VIEWS" schema="" catalog="information_schema" type="SYSTEM VIEW">
<column name="TABLE_CATALOG" sqlType="VARCHAR" precision="512" scale="0" nullable="true" jdbcType="12"/>
<column name="TABLE_SCHEMA" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="TABLE_NAME" sqlType="VARCHAR" precision="64" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="VIEW_DEFINITION" sqlType="LONGTEXT" precision="2147483647" scale="0" nullable="false" jdbcType="-1"/>
<column name="CHECK_OPTION" sqlType="VARCHAR" precision="8" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="IS_UPDATABLE" sqlType="VARCHAR" precision="3" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="DEFINER" sqlType="VARCHAR" precision="77" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="SECURITY_TYPE" sqlType="VARCHAR" precision="7" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="CHARACTER_SET_CLIENT" sqlType="VARCHAR" precision="32" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="COLLATION_CONNECTION" sqlType="VARCHAR" precision="32" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
</table>
<table name="crew_constraints" schema="" catalog="tec_rigs" type="TABLE">
<column name="id" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" autoIncrement="true"/>
<column name="rig_id" sqlType="INT" precision="10" scale="0" nullable="true" jdbcType="4"/>
<column name="role" sqlType="VARCHAR" precision="255" scale="0" nullable="true" jdbcType="12"/>
<column name="limit_type" sqlType="VARCHAR" precision="255" scale="0" nullable="true" jdbcType="12"/>
<column name="limit_number" sqlType="INT" precision="10" scale="0" nullable="true" jdbcType="4"/>
<column name="for_rig" sqlType="TINYINT" precision="3" scale="0" nullable="true" jdbcType="-6" def="MQ=="/>
<column name="for_running" sqlType="TINYINT" precision="3" scale="0" nullable="true" jdbcType="-6" def="MQ=="/>
<column name="for_derig" sqlType="TINYINT" precision="3" scale="0" nullable="true" jdbcType="-6" def="MQ=="/>
<primary-key name="PRIMARY" columns="id"/>
</table>
<table name="eventdetails" schema="" catalog="tec_rigs" type="TABLE">
<column name="id" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" autoIncrement="true"/>
<column name="event" sqlType="VARCHAR" precision="255" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="person_id" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="organisation_id" sqlType="INT" precision="10" scale="0" nullable="true" jdbcType="4"/>
<column name="access_date" sqlType="DATE" precision="10" scale="0" nullable="true" jdbcType="91"/>
<column name="venue" sqlType="VARCHAR" precision="255" scale="0" nullable="true" jdbcType="12"/>
<column name="description" sqlType="TEXT" precision="65535" scale="0" nullable="true" jdbcType="-1"/>
<column name="created_on" sqlType="DATETIME" precision="19" scale="0" nullable="false" jdbcType="93" def="JzAwMDAtMDAtMDAgMDA6MDA6MDAn"/>
<column name="start_date" sqlType="DATE" precision="10" scale="0" nullable="true" jdbcType="91"/>
<column name="end_date" sqlType="DATE" precision="10" scale="0" nullable="true" jdbcType="91"/>
<column name="threephasepower" sqlType="TINYINT" precision="3" scale="0" nullable="true" jdbcType="-6"/>
<column name="updated_on" sqlType="DATETIME" precision="19" scale="0" nullable="true" jdbcType="93"/>
<column name="describable_id" sqlType="INT" precision="10" scale="0" nullable="true" jdbcType="4"/>
<column name="describable_type" sqlType="VARCHAR" precision="255" scale="0" nullable="true" jdbcType="12"/>
<column name="based_on_id" sqlType="INT" precision="10" scale="0" nullable="true" jdbcType="4" def="MA=="/>
<column name="based_on_type" sqlType="VARCHAR" precision="255" scale="0" nullable="true" jdbcType="12"/>
<column name="start_time" sqlType="TIME" precision="8" scale="0" nullable="true" jdbcType="92"/>
<column name="end_time" sqlType="TIME" precision="8" scale="0" nullable="true" jdbcType="92"/>
<column name="access_time" sqlType="TIME" precision="8" scale="0" nullable="true" jdbcType="92"/>
<column name="dry_hire" sqlType="TINYINT" precision="3" scale="0" nullable="false" jdbcType="-6" def="MA=="/>
<primary-key name="PRIMARY" columns="id"/>
<index name="Index_organisation_id" unique="false" columns="organisation_id"/>
<index name="Index_person_id" unique="false" columns="person_id"/>
</table>
<table name="invoices" schema="" catalog="tec_rigs" type="TABLE">
<column name="id" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" autoIncrement="true"/>
<column name="created_by_id" sqlType="INT" precision="10" scale="0" nullable="true" jdbcType="4"/>
<column name="last_edited_by_id" sqlType="INT" precision="10" scale="0" nullable="true" jdbcType="4"/>
<column name="person_id" sqlType="INT" precision="10" scale="0" nullable="true" jdbcType="4"/>
<column name="organisation_id" sqlType="INT" precision="10" scale="0" nullable="true" jdbcType="4"/>
<column name="rig_id" sqlType="INT" precision="10" scale="0" nullable="true" jdbcType="4"/>
<column name="invoice_date" sqlType="DATE" precision="10" scale="0" nullable="true" jdbcType="91"/>
<column name="payment_date" sqlType="DATE" precision="10" scale="0" nullable="true" jdbcType="91"/>
<column name="payment_id" sqlType="VARCHAR" precision="30" scale="0" nullable="true" jdbcType="12"/>
<column name="description" sqlType="TEXT" precision="65535" scale="0" nullable="true" jdbcType="-1"/>
<column name="amount" sqlType="DECIMAL" precision="10" scale="0" nullable="false" jdbcType="3"/>
<column name="created_at" sqlType="DATETIME" precision="19" scale="0" nullable="true" jdbcType="93"/>
<column name="updated_at" sqlType="DATETIME" precision="19" scale="0" nullable="true" jdbcType="93"/>
<primary-key name="PRIMARY" columns="id"/>
</table>
<table name="non_rigs" schema="" catalog="tec_rigs" type="TABLE">
<column name="id" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" autoIncrement="true"/>
<column name="name" sqlType="VARCHAR" precision="255" scale="0" nullable="true" jdbcType="12"/>
<column name="start_date" sqlType="DATE" precision="10" scale="0" nullable="true" jdbcType="91"/>
<column name="start_time" sqlType="TIME" precision="8" scale="0" nullable="true" jdbcType="92"/>
<column name="end_date" sqlType="DATE" precision="10" scale="0" nullable="true" jdbcType="91"/>
<column name="end_time" sqlType="TIME" precision="8" scale="0" nullable="true" jdbcType="92"/>
<column name="description" sqlType="VARCHAR" precision="255" scale="0" nullable="true" jdbcType="12"/>
<column name="user_id" sqlType="INT" precision="10" scale="0" nullable="true" jdbcType="4"/>
<column name="created_on" sqlType="DATETIME" precision="19" scale="0" nullable="true" jdbcType="93"/>
<column name="updated_on" sqlType="DATETIME" precision="19" scale="0" nullable="true" jdbcType="93"/>
<column name="active" sqlType="TINYINT" precision="3" scale="0" nullable="true" jdbcType="-6"/>
<primary-key name="PRIMARY" columns="id"/>
</table>
<table name="organisations" schema="" catalog="tec_rigs" type="TABLE">
<column name="id" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" autoIncrement="true"/>
<column name="name" sqlType="VARCHAR" precision="255" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="address" sqlType="TEXT" precision="65535" scale="0" nullable="true" jdbcType="-1"/>
<column name="phone" sqlType="VARCHAR" precision="255" scale="0" nullable="true" jdbcType="12"/>
<column name="union_account" sqlType="TINYINT" precision="3" scale="0" nullable="false" jdbcType="-6" def="MA=="/>
<column name="status" sqlType="VARCHAR" precision="45" scale="0" nullable="false" jdbcType="12"/>
<primary-key name="PRIMARY" columns="id"/>
</table>
<table name="people" schema="" catalog="tec_rigs" type="TABLE">
<column name="id" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" autoIncrement="true"/>
<column name="name" sqlType="VARCHAR" precision="255" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="phone" sqlType="VARCHAR" precision="255" scale="0" nullable="true" jdbcType="12"/>
<column name="email" sqlType="VARCHAR" precision="255" scale="0" nullable="true" jdbcType="12"/>
<column name="address" sqlType="TEXT" precision="65535" scale="0" nullable="true" jdbcType="-1"/>
<column name="status" sqlType="VARCHAR" precision="45" scale="0" nullable="false" jdbcType="12"/>
<primary-key name="PRIMARY" columns="id"/>
</table>
<table name="quotes" schema="" catalog="tec_rigs" type="TABLE">
<column name="id" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" autoIncrement="true"/>
<column name="user_id" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="created_on" sqlType="DATETIME" precision="19" scale="0" nullable="false" jdbcType="93" def="JzAwMDAtMDAtMDAgMDA6MDA6MDAn"/>
<column name="updated_on" sqlType="DATETIME" precision="19" scale="0" nullable="false" jdbcType="93" def="JzAwMDAtMDAtMDAgMDA6MDA6MDAn"/>
<column name="issued_on" sqlType="DATETIME" precision="19" scale="0" nullable="true" jdbcType="93"/>
<column name="valid_for" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MzA="/>
<column name="status" sqlType="VARCHAR" precision="45" scale="0" nullable="false" jdbcType="12"/>
<primary-key name="PRIMARY" columns="id"/>
<index name="FK_quotes_user" unique="false" columns="user_id"/>
</table>
<table name="rig_items" schema="" catalog="tec_rigs" type="TABLE">
<column name="id" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" autoIncrement="true"/>
<column name="eventdetail_id" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="name" sqlType="VARCHAR" precision="255" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="description" sqlType="TEXT" precision="65535" scale="0" nullable="true" jdbcType="-1"/>
<column name="quantity" sqlType="INT" precision="10" scale="0" nullable="true" jdbcType="4" def="MQ=="/>
<column name="sortorder" sqlType="INT" precision="10" scale="0" nullable="true" jdbcType="4"/>
<column name="cost" sqlType="FLOAT" precision="12" scale="0" nullable="true" jdbcType="7"/>
<primary-key name="PRIMARY" columns="id"/>
<index name="FK_rigitem_eventdetails" unique="false" columns="eventdetail_id"/>
</table>
<table name="rig_signups" schema="" catalog="tec_rigs" type="TABLE">
<column name="id" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" autoIncrement="true"/>
<column name="rig_id" sqlType="INT" precision="10" scale="0" nullable="true" jdbcType="4"/>
<column name="user_id" sqlType="INT" precision="10" scale="0" nullable="true" jdbcType="4"/>
<column name="role" sqlType="VARCHAR" precision="255" scale="0" nullable="true" jdbcType="12"/>
<column name="comment" sqlType="VARCHAR" precision="255" scale="0" nullable="true" jdbcType="12"/>
<column name="created_on" sqlType="DATETIME" precision="19" scale="0" nullable="true" jdbcType="93"/>
<column name="updated_on" sqlType="DATETIME" precision="19" scale="0" nullable="true" jdbcType="93"/>
<column name="for_rig" sqlType="TINYINT" precision="3" scale="0" nullable="true" jdbcType="-6" def="MA=="/>
<column name="for_running" sqlType="TINYINT" precision="3" scale="0" nullable="true" jdbcType="-6" def="MA=="/>
<column name="for_derig" sqlType="TINYINT" precision="3" scale="0" nullable="true" jdbcType="-6" def="MA=="/>
<primary-key name="PRIMARY" columns="id"/>
</table>
<table name="rigs" schema="" catalog="tec_rigs" type="TABLE">
<column name="id" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" autoIncrement="true"/>
<column name="user_id" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="created_on" sqlType="DATETIME" precision="19" scale="0" nullable="false" jdbcType="93" def="JzAwMDAtMDAtMDAgMDA6MDA6MDAn"/>
<column name="meet_date" sqlType="DATE" precision="10" scale="0" nullable="true" jdbcType="91"/>
<column name="order_no" sqlType="TEXT" precision="65535" scale="0" nullable="true" jdbcType="-1"/>
<column name="payment_received" sqlType="TEXT" precision="65535" scale="0" nullable="true" jdbcType="-1"/>
<column name="payment_method" sqlType="TEXT" precision="65535" scale="0" nullable="true" jdbcType="-1"/>
<column name="collectorsid" sqlType="TEXT" precision="65535" scale="0" nullable="true" jdbcType="-1"/>
<column name="updated_on" sqlType="DATETIME" precision="19" scale="0" nullable="false" jdbcType="93" def="JzAwMDAtMDAtMDAgMDA6MDA6MDAn"/>
<column name="meet_time" sqlType="TIME" precision="8" scale="0" nullable="true" jdbcType="92"/>
<column name="status" sqlType="VARCHAR" precision="45" scale="0" nullable="false" jdbcType="12"/>
<column name="meet_info" sqlType="TEXT" precision="65535" scale="0" nullable="true" jdbcType="-1"/>
<primary-key name="PRIMARY" columns="id"/>
<index name="FK_rigs_user" unique="false" columns="user_id"/>
</table>
<table name="schema_info" schema="" catalog="tec_rigs" type="TABLE">
<column name="version" sqlType="INT" precision="10" scale="0" nullable="true" jdbcType="4"/>
</table>
<table name="sessions" schema="" catalog="tec_rigs" type="TABLE">
<column name="id" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" autoIncrement="true"/>
<column name="session_id" sqlType="VARCHAR" precision="255" scale="0" nullable="false" jdbcType="12"/>
<column name="data" sqlType="TEXT" precision="65535" scale="0" nullable="true" jdbcType="-1"/>
<column name="created_at" sqlType="DATETIME" precision="19" scale="0" nullable="true" jdbcType="93"/>
<column name="updated_at" sqlType="DATETIME" precision="19" scale="0" nullable="true" jdbcType="93"/>
<primary-key name="PRIMARY" columns="id"/>
<index name="index_sessions_on_session_id" unique="false" columns="session_id"/>
<index name="index_sessions_on_updated_at" unique="false" columns="updated_at"/>
</table>
<table name="user_group_controller_permissions" schema="" catalog="tec_rigs" type="TABLE">
<column name="id" sqlType="INT UNSIGNED" precision="10" scale="0" nullable="false" jdbcType="4" autoIncrement="true"/>
<column name="user_group_id" sqlType="INT UNSIGNED" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="controller_name" sqlType="VARCHAR" precision="45" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<primary-key name="PRIMARY" columns="id"/>
<foreign-key name="FK_user_group_controller_permissions_user_group" columns="user_group_id" ref-table="user_groups" ref-schema="" ref-catalog="tec_rigs" ref-columns="id" update-rule="3" delete-rule="0" deferrability="2"/>
<index name="FK_user_group_controller_permissions_user_group" unique="false" columns="user_group_id"/>
</table>
<table name="user_group_memberships" schema="" catalog="tec_rigs" type="TABLE">
<column name="user_id" sqlType="INT UNSIGNED" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="group_id" sqlType="INT UNSIGNED" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="is_admin" sqlType="TINYINT UNSIGNED" precision="3" scale="0" nullable="false" jdbcType="-6" def="MA=="/>
<column name="id" sqlType="INT UNSIGNED" precision="10" scale="0" nullable="false" jdbcType="4" autoIncrement="true"/>
<primary-key name="PRIMARY" columns="id"/>
</table>
<table name="user_groups" schema="" catalog="tec_rigs" type="TABLE">
<column name="id" sqlType="INT UNSIGNED" precision="10" scale="0" nullable="false" jdbcType="4" autoIncrement="true"/>
<column name="name" sqlType="VARCHAR" precision="45" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="description" sqlType="VARCHAR" precision="200" scale="0" nullable="true" jdbcType="12"/>
<primary-key name="PRIMARY" columns="id"/>
<exported-key name="FK_user_group_controller_permissions_user_group" table="user_group_controller_permissions" schema="" catalog="tec_rigs" columns="user_group_id"/>
</table>
<table name="users" schema="" catalog="tec_rigs" type="TABLE">
<column name="id" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" autoIncrement="true"/>
<column name="login" sqlType="VARCHAR" precision="80" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="salted_password" sqlType="VARCHAR" precision="40" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="email" sqlType="VARCHAR" precision="60" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="first_name" sqlType="VARCHAR" precision="40" scale="0" nullable="true" jdbcType="12"/>
<column name="last_name" sqlType="VARCHAR" precision="40" scale="0" nullable="true" jdbcType="12"/>
<column name="salt" sqlType="VARCHAR" precision="40" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="verified" sqlType="INT" precision="10" scale="0" nullable="true" jdbcType="4" def="MA=="/>
<column name="role" sqlType="INT UNSIGNED" precision="10" scale="0" nullable="false" jdbcType="4" def="MA=="/>
<column name="security_token" sqlType="VARCHAR" precision="40" scale="0" nullable="true" jdbcType="12"/>
<column name="token_expiry" sqlType="DATETIME" precision="19" scale="0" nullable="true" jdbcType="93"/>
<column name="deleted" sqlType="INT" precision="10" scale="0" nullable="true" jdbcType="4" def="MA=="/>
<column name="delete_after" sqlType="DATETIME" precision="19" scale="0" nullable="true" jdbcType="93"/>
<column name="initials" sqlType="VARCHAR" precision="15" scale="0" nullable="false" jdbcType="12" def="Jyc="/>
<column name="phone_number" sqlType="VARCHAR" precision="30" scale="0" nullable="true" jdbcType="12"/>
<primary-key name="PRIMARY" columns="id"/>
</table>
<table name="vat_rates" schema="" catalog="tec_rigs" type="TABLE">
<column name="id" sqlType="INT" precision="10" scale="0" nullable="false" jdbcType="4" autoIncrement="true"/>
<column name="created_at" sqlType="DATETIME" precision="19" scale="0" nullable="true" jdbcType="93"/>
<column name="updated_at" sqlType="DATETIME" precision="19" scale="0" nullable="true" jdbcType="93"/>
<column name="start_date" sqlType="DATE" precision="10" scale="0" nullable="false" jdbcType="91"/>
<column name="start_time" sqlType="TIME" precision="8" scale="0" nullable="false" jdbcType="92"/>
<column name="comment" sqlType="TINYTEXT" precision="255" scale="0" nullable="true" jdbcType="12"/>
<column name="rate" sqlType="DECIMAL" precision="6" scale="6" nullable="false" jdbcType="3"/>
<primary-key name="PRIMARY" columns="id"/>
</table>
</data-source>
<data-source source="LOCAL" name="Django legacy" uuid="04d2e6df-d917-475c-8507-d831cabc32c0">
<database-info product="" version="" jdbc-version="" driver-name="" driver-version=""/> <database-info product="" version="" jdbc-version="" driver-name="" driver-version=""/>
</data-source> </data-source>
</component> </component>

24
.idea/dataSources.xml generated
View File

@@ -1,10 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="DataSourceManagerImpl" format="xml" hash="3382254696"> <component name="DataSourceManagerImpl" format="xml" hash="3810298710">
<data-source source="LOCAL" name="Django default" uuid="09730cb6-cd27-4034-9959-d242e7905a51"> <data-source source="LOCAL" name="Django default" uuid="09730cb6-cd27-4034-9959-d242e7905a51">
<driver-ref>sqlite.xerial</driver-ref> <driver-ref>sqlite.xerial</driver-ref>
<jdbc-driver>org.sqlite.JDBC</jdbc-driver> <jdbc-driver>org.sqlite.JDBC</jdbc-driver>
<jdbc-url>jdbc:sqlite:$PROJECT_DIR$/db.sqlite3</jdbc-url> <jdbc-url>jdbc:sqlite:$PROJECT_DIR$/db.sqlite3</jdbc-url>
<table-pattern>.*</table-pattern>
<libraries />
</data-source>
<data-source source="LOCAL" name="MySQL - tec_rigs@alfie.codedinternet.com" read-only="true" uuid="828bc60d-f5c3-4e1f-9566-2614d7328388">
<driver-ref>mysql</driver-ref>
<synchronize>true</synchronize>
<jdbc-driver>com.mysql.jdbc.Driver</jdbc-driver>
<jdbc-url>jdbc:mysql://alfie.codedinternet.com:3306/tec_rigs</jdbc-url>
<user-name>tec_rigs</user-name>
<user-password>dfd2dfe7dfe4dfc8df82dfc8df81dfeddfc3dfdfdff7df8c</user-password>
<driver-properties>
<property name="zeroDateTimeBehavior" value="convertToNull" />
<property name="tinyInt1isBit" value="false" />
</driver-properties>
<libraries />
</data-source>
<data-source source="LOCAL" name="Django legacy" uuid="04d2e6df-d917-475c-8507-d831cabc32c0">
<driver-ref>mysql</driver-ref>
<jdbc-driver>com.mysql.jdbc.Driver</jdbc-driver>
<jdbc-url>jdbc:mysql://alfie.codedinternet.com/tec_rigs</jdbc-url>
<user-name>tec_rigs</user-name>
<user-password>dfd2dfe7dfe4dfc8df82dfc8df81dfeddfc3dfdfdff7df8c</user-password>
<libraries /> <libraries />
</data-source> </data-source>
</component> </component>

View File

@@ -62,11 +62,22 @@ WSGI_APPLICATION = 'PyRIGS.wsgi.application'
# Database # Database
# https://docs.djangoproject.com/en/1.7/ref/settings/#databases # https://docs.djangoproject.com/en/1.7/ref/settings/#databases
try:
import pymysql
pymysql.install_as_MySQLdb()
except ImportError:
pass
DATABASES = { DATABASES = {
'default': { 'default': {
'ENGINE': 'django.db.backends.sqlite3', 'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
},
'legacy': {
'ENGINE': 'django.db.backends.mysql',
'HOST': 'alfie.codedinternet.com',
'NAME': 'tec_rigs',
'USER': 'tec_rigs',
'PASSWORD': 'xMNb(b+Giu]&',
} }
} }
@@ -99,6 +110,17 @@ USE_L10N = True
USE_TZ = True USE_TZ = True
TEMPLATE_CONTEXT_PROCESSORS = (
"django.contrib.auth.context_processors.auth",
"django.core.context_processors.debug",
"django.core.context_processors.i18n",
"django.core.context_processors.media",
"django.core.context_processors.static",
"django.core.context_processors.tz",
"django.core.context_processors.request",
"django.contrib.messages.context_processors.messages",
)
# Static files (CSS, JavaScript, Images) # Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.7/howto/static-files/ # https://docs.djangoproject.com/en/1.7/howto/static-files/

75
RIGS/importer.py Normal file
View File

@@ -0,0 +1,75 @@
__author__ = 'Ghost'
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "PyRIGS.settings")
import django
django.setup()
from django.db import connections
from django.core.exceptions import ObjectDoesNotExist
from django.db.utils import ConnectionDoesNotExist
from django.db import transaction
from RIGS import models
import reversion
def setup_cursor():
try:
cursor = connections['legacy'].cursor()
return cursor
except ConnectionDoesNotExist:
print("Legacy database is not configured")
print(connections._databases)
return None
def import_people():
cursor = setup_cursor()
if cursor is None:
return
sql = """SELECT `id`, `name`, `phone`, `email`, `address`, `status` FROM `people`"""
cursor.execute(sql)
resp = cursor.fetchall()
for row in resp:
email = row[3]
if email is not "" and "@" not in email:
email += "@nottingham.ac.uk"
notes = ""
if row[5] != "Normal":
notes = row[5]
person, created = models.Person.objects.get_or_create(pk=row[0], name=row[1], phone=row[2], email=email, address=row[4], notes=notes)
if created:
print("Created: " + person.__unicode__())
with transaction.atomic(), reversion.create_revision():
person.save()
else:
print("Found: " + person.__unicode__())
def import_organisations():
cursor = setup_cursor()
if cursor is None:
return
sql = """SELECT `id`, `name`, `phone`, `address`, `union_account`, `status` FROM `organisations`"""
cursor.execute(sql)
for row in cursor.fetchall():
unionAccount = False
if row[4] == "1":
unionAccount = True
notes = ""
if row[5] != "Normal":
notes = row[5]
object, created = models.Organisation.objects.get_or_create(pk=row[0], name=row[1], phone=row[2], address=row[3], unionAccount=unionAccount, notes=notes)
if created:
print("Created: " + object.__unicode__())
with transaction.atomic(), reversion.create_revision():
object.save()
else:
print("Found: " + object.__unicode__())
def main():
#import_people()
import_organisations()
if __name__=="__main__":
main()

View File

@@ -0,0 +1,30 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import RIGS.models
class Migration(migrations.Migration):
dependencies = [
('RIGS', '0003_auto_20141031_0219'),
]
operations = [
migrations.CreateModel(
name='Organisation',
fields=[
('id', models.AutoField(verbose_name='ID', auto_created=True, primary_key=True, serialize=False)),
('name', models.CharField(max_length=50)),
('phone', models.CharField(null=True, blank=True, max_length=15)),
('email', models.EmailField(null=True, blank=True, max_length=75)),
('address', models.TextField(null=True, blank=True)),
('notes', models.TextField(null=True, blank=True)),
('unionAccount', models.BooleanField(default=False)),
],
options={
},
bases=(models.Model, RIGS.models.RevisionMixin),
),
]

View File

@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('RIGS', '0004_organisation'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='initials',
field=models.CharField(blank=True, max_length=5, unique=True, null=True),
preserve_default=True,
),
]

View File

@@ -6,7 +6,7 @@ import reversion
# Create your models here. # Create your models here.
class Profile(AbstractUser): class Profile(AbstractUser):
initials = models.CharField(max_length=5, unique=True) initials = models.CharField(max_length=5, unique=True, null=True, blank=True)
phone = models.CharField(max_length=13, null=True, blank=True) phone = models.CharField(max_length=13, null=True, blank=True)
@property @property
@@ -16,8 +16,20 @@ class Profile(AbstractUser):
url = "https://www.gravatar.com/avatar/" + hashlib.md5(self.email).hexdigest() + "?d=identicon&s=500" url = "https://www.gravatar.com/avatar/" + hashlib.md5(self.email).hexdigest() + "?d=identicon&s=500"
return url return url
class RevisionMixin(object):
@property
def last_edited_at(self):
version = reversion.get_for_object(self)[0]
return version.revision.date_created
@property
def last_edited_by(self):
version = reversion.get_for_object(self)[0]
return version.revision.user
@reversion.register @reversion.register
class Person(models.Model): class Person(models.Model, RevisionMixin):
name = models.CharField(max_length=50) name = models.CharField(max_length=50)
phone = models.CharField(max_length=15, blank=True, null=True) phone = models.CharField(max_length=15, blank=True, null=True)
email = models.EmailField(blank=True, null=True) email = models.EmailField(blank=True, null=True)
@@ -26,6 +38,23 @@ class Person(models.Model):
notes = models.TextField(blank=True, null=True) notes = models.TextField(blank=True, null=True)
def __unicode__(self):
string = self.name
if len(self.notes) > 0:
string += "*"
return string
@reversion.register
class Organisation(models.Model, RevisionMixin):
name = models.CharField(max_length=50)
phone = models.CharField(max_length=15, blank=True, null=True)
email = models.EmailField(blank=True, null=True)
address = models.TextField(blank=True, null=True)
notes = models.TextField(blank=True, null=True)
unionAccount = models.BooleanField(default=False)
def __unicode__(self): def __unicode__(self):
string = self.name string = self.name
if len(self.notes) > 0: if len(self.notes) > 0:

View File

@@ -4,15 +4,16 @@
{% block title %}{{ object.name }}{% endblock %} {% block title %}{{ object.name }}{% endblock %}
{% block content %} {% block content %}
<div class="col-sm-10 col-sm-offset-1"> <div class="row">
<h3>{{ object.name }}</h3> {% if not request.is_ajax %}
<h3>{{ object.name }}</h3>
<div class="pull-right"> <div class="pull-right">
<a href="{% url 'person_update' object.pk %}" class="btn btn-primary">Edit <span <a href="{% url 'person_update' object.pk %}" class="btn btn-primary">Edit <span
class="glyphicon glyphicon-pencil"></span></a> class="glyphicon glyphicon-pencil"></span></a>
</div> </div>
<div class="row col-sm-12"> {% endif %}
<div class="col-sm-6"> <div class="col-sm-10 col-sm-offset-1">
<div class="">
<dl class="dl-horizontal"> <dl class="dl-horizontal">
<dt>Name</dt> <dt>Name</dt>
<dd>{{ object.name }}</dd> <dd>{{ object.name }}</dd>
@@ -32,4 +33,20 @@
</div> </div>
</div> </div>
</div> </div>
{% endblock %} {% endblock %}
{% if request.is_ajax %}
{% block footer %}
<div class="row">
<div class="col-sm-10 align-left">
Lasted edited at {{ object.last_edited_at|date:"SHORT_DATE_FORMAT" }} by {{ user }}
</div>
<div class="col-sm-2">
<div class="pull-right">
<a href="{% url 'person_update' object.pk %}" class="btn btn-primary">Edit <span
class="glyphicon glyphicon-pencil"></span></a>
</div>
</div>
</div>
{% endblock %}
{% endif %}

View File

@@ -1,19 +1,35 @@
{% extends request.is_ajax|yesno:"base_ajax.html,base.html" %} {% extends request.is_ajax|yesno:"base_ajax.html,base.html" %}
{% load widget_tweaks %} {% load widget_tweaks %}
{% load paginator from filters %}
{% load url_replace from filters %}
{% load orderby from filters %}
{% block title %}People list{% endblock %} {% block title %}People{% endblock %}
{% block content %} {% block content %}
<div class="col-sm-10 col-sm-offset-1"> <div class="col-sm-10 col-sm-offset-1">
<h3>People</h3> <div class="row">
<a href="{% url 'person_add' %}" class="btn btn-default pull-right">New <span class="glyphicon glyphicon-plus"></span></a> <div class="col-sm-10">
<div class="align-right">{% include 'pagination.html' %}</div> <h3>People</h3>
</div>
<div class="col-sm-2">
<a href="{% url 'person_add' %}" class="btn btn-default pull-right">New <span class="glyphicon glyphicon-plus"></span></a>
</div>
<div class="col-sm-3 col-sm-offset-9">
<form class="form form-horizontal col-sm-12">
<div class="form-group">
<input type="search" name="q" placeholder="Search" value="{{ request.GET.q }}" class="form-control" />
</div>
</form>
</div>
</div>
<div class="pull-right">{% paginator %}</div>
<div> <div>
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
<td></td> <td></td>
<td>Name</td> <td>Name<a href="?{% orderby request 'orderBy' 'name' %}"><span class="caret"></span></a></td>
<td>Email</td> <td>Email</td>
<td>Phone</td> <td>Phone</td>
<td>Notes</td> <td>Notes</td>
@@ -28,7 +44,12 @@
<td>{{ person.email }}</td> <td>{{ person.email }}</td>
<td>{{ person.phone }}</td> <td>{{ person.phone }}</td>
<td>{{ person.notes|yesno|capfirst }}</td> <td>{{ person.notes|yesno|capfirst }}</td>
<td>Add buttons</td> <td>
<a href="{% url 'person_detail' person.pk %}" class="btn btn-default modal-href">
<span class="glyphicon glyphicon-eye-open"></span>
</a>
<a href="{% url 'person_update' person.pk %}" class="btn btn-default"><span class="glyphicon glyphicon-pencil"></span></a>
</td>
</tr> </tr>
{% empty %} {% empty %}
<tr> <tr>
@@ -39,6 +60,6 @@
</tbody> </tbody>
</table> </table>
</div> </div>
<div class="align-right">{% include 'pagination.html' %}</div> <div class="align-right">{% paginator %}</div>
</div> </div>
{% endblock %} {% endblock %}

View File

@@ -2,7 +2,6 @@ from django import template
from django import forms from django import forms
from django.forms.forms import NON_FIELD_ERRORS from django.forms.forms import NON_FIELD_ERRORS
from django.forms.util import ErrorDict from django.forms.util import ErrorDict
from reversion.revisions import RevisionManager
register = template.Library() register = template.Library()
@@ -22,9 +21,67 @@ def nice_errors(form, non_field_msg='General form errors'):
nice_errors[key] = errors nice_errors[key] = errors
return nice_errors return nice_errors
def lastedit(model): def paginator(context, adjacent_pages=3):
if RevisionManager.is_registered(model): """
versions = RevisionManager.get_for_object(model) To be used in conjunction with the object_list generic view.
return versions[0].createdAt
Adds pagination context variables for use in displaying first, adjacent and
last page links in addition to those created by the object_list generic
view.
"""
page = context['page_obj']
paginator = context['paginator']
startPage = max(page.number - adjacent_pages, 1)
if startPage <= 3: startPage = 1
endPage = page.number + adjacent_pages + 1
if endPage >= paginator.num_pages - 1: endPage = paginator.num_pages + 1
page_numbers = [n for n in range(startPage, endPage) \
if n > 0 and n <= paginator.num_pages]
dict = {
'request': context['request'],
'is_paginated': paginator.num_pages > 0,
'page_obj': page,
'paginator': paginator,
'results': paginator.per_page,
'page_numbers': page_numbers,
'show_first': 1 not in page_numbers,
'show_last': paginator.num_pages not in page_numbers,
'first': 1,
'last': paginator.num_pages,
'has_next': page.has_next(),
'has_previous': page.has_previous(),
}
if page.has_next():
dict['next'] = page.next_page_number()
if page.has_previous():
dict['previous'] = page.previous_page_number()
return dict
register.inclusion_tag('pagination.html', takes_context=True)(paginator)
@register.simple_tag
def url_replace(request, field, value):
dict_ = request.GET.copy()
dict_[field] = value
return dict_.urlencode()
@register.simple_tag
def orderby(request, field, attr):
dict_ = request.GET.copy()
if dict_[field] == attr:
if not dict_[field].startswith("-"):
dict_[field] = "-" + attr
else:
dict_[field] = attr
else: else:
return "No version model saved" dict_[field] = attr
return dict_.urlencode()

View File

@@ -1,7 +1,9 @@
from django.http.response import HttpResponseRedirect from django.http.response import HttpResponseRedirect
from django.core.urlresolvers import reverse_lazy from django.core.urlresolvers import reverse_lazy
from django.views import generic from django.views import generic
import models from django.views.decorators.csrf import csrf_exempt
from django.db.models import Q
from RIGS import models
# Create your views here. # Create your views here.
def login(request, **kwargs): def login(request, **kwargs):
@@ -26,6 +28,18 @@ class CloseModal(generic.TemplateView):
class PersonIndex(generic.ListView): class PersonIndex(generic.ListView):
model = models.Person model = models.Person
paginate_by = 20
def get_queryset(self):
q = self.request.GET.get('q', "")
if len(q) >= 3:
object_list = self.model.objects.filter(Q(name__icontains=q) | Q(email__icontains=q))
else:
object_list = self.model.objects.all()
orderBy = self.request.GET.get('orderBy', None)
if orderBy is not None:
object_list = object_list.order_by(orderBy)
return object_list
class PersonDetail(generic.DetailView): class PersonDetail(generic.DetailView):
model = models.Person model = models.Person

Binary file not shown.

6
requirements.txt Normal file
View File

@@ -0,0 +1,6 @@
Django==1.7.1
PyMySQL==0.6.2
django-debug-toolbar==1.2.2
django-registration-redux==1.1
django-reversion==1.8.5
sqlparse==0.1.13

View File

@@ -126,7 +126,6 @@
var dd = this.getDate().toString(); var dd = this.getDate().toString();
return yyyy + '-' + (mm[1]?mm:"0"+mm[0]) + '-' + (dd[1]?dd:"0"+dd[0]); // padding return yyyy + '-' + (mm[1]?mm:"0"+mm[0]) + '-' + (dd[1]?dd:"0"+dd[0]); // padding
}; };
</script> </script>
<script src="{% static "js/jquery.cookie.js" %}"></script> <script src="{% static "js/jquery.cookie.js" %}"></script>
<script src="{% static "js/alert.js" %}"></script> <script src="{% static "js/alert.js" %}"></script>
@@ -136,6 +135,16 @@
</script> </script>
<script src="{% static "js/dropdown.js" %}"></script> <script src="{% static "js/dropdown.js" %}"></script>
<script src="{% static "js/modal.js" %}"></script> <script src="{% static "js/modal.js" %}"></script>
<script>
jQuery(document).ready(function() {
jQuery(document).on('click', '.modal-href', function(e) {
e.preventDefault()
jQuery('#modal').load(jQuery(this).attr('href'), function(e) {
jQuery('#modal').modal();
});
});
});
</script>
{% block js %} {% block js %}
{% endblock %} {% endblock %}
</body> </body>

14
templates/base_ajax.html Normal file
View File

@@ -0,0 +1,14 @@
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
<h4 class="modal-title">{% block title %}{% endblock %}</h4>
</div>
<div class="modal-body">
{% block content %}{% endblock %}
</div>
<div class="modal-footer">
{% block footer %}{% endblock %}
</div>
</div>
</div>

View File

@@ -1,27 +1,36 @@
{% if request.is_paginated %} {% if is_paginated %}
{% load url_replace from filters %}
<div> <div>
<ul class="pagination"> <ul class="pagination">
{% if page_obj.has_previous %} {% if has_previous %}
<li><a href="?page{{ page_obj.previous_page_number }}{{ getvars }}{{ hashtag }}" class="prev">&lsaquo;&lsaquo;</a></li> <li><a href="?{% url_replace request 'page' previous %}" class="prev">&lsaquo;&lsaquo;</a></li>
{% else %} {% else %}
<li class="disabled prev"><a href="#">&lsaquo;&lsaquo;</a></li> <li class="disabled prev"><a href="#">&lsaquo;&lsaquo;</a></li>
{% endif %} {% endif %}
{% for page in pages %}
{% if page %} {% if show_first %}
{% ifequal page page_obj.number %} <li><a href="?{% url_replace request 'page' first %}" class="prev">{{ first }}</a></li>
<li class="current page active"><a href="#">{{ page }}</a></li> <li><span>&hellip;</span></li>
{% else %} {% endif %}
<li><a href="?page={{ page }}{{ getvars }}{{ hashtag }}" class="page">{{ page }}</a></li>
{% endifequal %} {% for page in page_numbers %}
{% else %} {% ifequal page page_obj.number %}
... <li class="current page active"><a href="#">{{ page }}</a></li>
{% endif %} {% else %}
{% endfor %} <li><a href="?{% url_replace request 'page' page %}" class="page">{{ page }}</a></li>
{% if page_obj.has_next %} {% endifequal %}
<li><a href="?page={{ page_obj.next_page_number }}{{ getvars }}{{ hashtag }}" class="next">&rsaquo;&rsaquo;</a></li> {% endfor %}
{% else %}
<li class="disabled next"><a href="#">&rsaquo;&rsaquo;</a></li> {% if show_last %}
{% endif %} <li><span>&hellip;</span></li>
</ul> <li><a href="?{% url_replace request 'page' last %}" class="prev">{{ last }}</a></li>
{% endif %}
{% if has_next %}
<li><a href="?{% url_replace request 'page' next %}" class="next">&rsaquo;&rsaquo;</a></li>
{% else %}
<li class="disabled next"><a href="#">&rsaquo;&rsaquo;</a></li>
{% endif %}
</ul>
</div> </div>
{% endif %} {% endif %}

View File

@@ -5,6 +5,6 @@
{% block content %} {% block content %}
<div class="alert alert-success"> <div class="alert alert-success">
<h2>Thanks for registering</h2> <h2>Thanks for registering</h2>
<p>Thanks for registering with RIGS, you application will now be moderated by an administrator and further instructions will be emailed to you</p> <p>Thanks for registering with RIGS, further details will be emailed to you.</p>
</div> </div>
{% endblock %} {% endblock %}

View File

@@ -19,14 +19,6 @@
</div> </div>
</div> </div>
{% endfor %} {% endfor %}
{% for field in supplement_form %}
<div class="form-group">
<label for="{{ field.id_for_label }}" class="control-label col-sm-2">{{ field.label }}</label>
<div class="controls col-sm-10">
{% render_field field class+="form-control" placeholder=field.label %}
</div>
</div>
{% endfor %}
<p><input type="submit" value="Register" class="btn btn-primary pull-right"></p> <p><input type="submit" value="Register" class="btn btn-primary pull-right"></p>
</form> </form>
{% endblock %} {% endblock %}