code: function(db) {
  		var libs_uuid = uuid();
  		debug.assert(libs_uuid).is('uuid');
  		return db.query('CREATE SEQUENCE libs_seq'
  			).query([
  				"CREATE TABLE IF NOT EXISTS libs (",
  				"	id uuid PRIMARY KEY NOT NULL default uuid_generate_v5('" + libs_uuid +"', nextval('libs_seq'::regclass)::text),",
  				"	name text UNIQUE NOT NULL,",
  				"	content text NOT NULL,",
  				"	meta json,",
  				"	created timestamptz NOT NULL default now(),",
  				"	modified timestamptz NOT NULL default now(),",
  				"	CHECK (check_javascript(content))",
  				")"].join('\n')
  			).query("ALTER SEQUENCE libs_seq OWNED BY libs.id"
  			).query("CREATE TRIGGER libs_modified BEFORE UPDATE ON libs FOR EACH ROW EXECUTE PROCEDURE moddatetime (modified)");
  	}
docs: #2 Table for storing JS libraries (01_js_library_environment.sql)