BASEDIR "/src/"; MODULEX MCMS.Blog EXTENDS Mod.Base.Base { @version "1.0.0"; GENTABLEXML REPLACE; GENSCRIPT REPLACE "install" INSTALL { CREATE TABLE categorys; CREATE TABLE entrys; CREATE TABLE comments; } GENSCRIPT REPLACE "remove" REMOVE { DROP TABLE comments; DROP TABLE entrys; DROP TABLE categorys; } MODEL Category { id ObjectID; site_id NULLABLE Integer; instance NULLABLE String(32); name String(100); PKEY id; } CHLOG MODEL Entry { id ObjectID; site_id NULLABLE Integer; instance NULLABLE String(32); cat_id NULLABLE REF Category:id; title String(100); tags Text; shortinfo Text; content HTML; PKEY id; INDEX instance instance; } MODEL Comment { id ObjectID; entry_id REF Entry:id; created_by String(100); created_at DateTime; email NULLABLE EMail; content Text; PKEY id; } SERVICE Repo { } view index { } }