--- 目录结构规划
--- grapetec
---  |-- biz（业务逻辑相关）
---  |-- step（Step-NC相关）
---  |-- event（Event相关）

--- 创建GrapeTec
create class if not exists /grapetec() 
with key=manual, ttl=366 day, autosearch, nickname='GrapeTec1', version=true;

--- step的基类
CREATE CLASS IF NOT EXISTS step: GrapeTec1 (
)with alias='Step1', nickname='Step1', version=true;

--- biz的基类
CREATE CLASS IF NOT EXISTS biz: GrapeTec1 (
)with alias='Biz1', nickname='Biz1', version=true;

--- event的基类
CREATE CLASS IF NOT EXISTS event: GrapeTec1 (
	client_timestamp			 			timestamp,
	server_timestamp			 			timestamp,
	event_type								varchar
)with alias='Event1', nickname='Event1', key=sequence, version=true;
