All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mybatis.uudb-pool.h2.xml Maven / Gradle / Ivy






	
		CREATE TABLE IF NOT EXISTS UUDB_POOLS (
			id			IDENTITY,
			name		VARCHAR(64) NOT NULL,
			keyType		VARCHAR(64) NOT NULL,
			valueType	VARCHAR(64) NOT NULL,
			UNIQUE (name)
		);
	

	
		CREATE TABLE IF NOT EXISTS UUDB_POOL_ENTRIES (
			id			IDENTITY,
			pool		INTEGER,
			entry		VARCHAR(64),
			poolKey		VARCHAR(512) DEFAULT NULL,
			lastAccess	DATETIME,
			freezeTime	DATETIME DEFAULT NULL,
			UNIQUE (pool, entry),
			FOREIGN KEY (pool) REFERENCES UUDB_POOLS (id) ON DELETE CASCADE
		);
		CREATE INDEX IF NOT EXISTS IDX_POOL ON UUDB_POOL_ENTRIES(pool, entry); 		
	




© 2015 - 2024 Weber Informatics LLC | Privacy Policy