--***************************************************************************
--
-- Author : Matthias Seidel
-- Date : 26. Oct 2021
-- Copyright : © 2021 WERK II, Matthias Seidel
--
--***************************************************************************
drop table comet_snippets;
create table comet_snippets
(
id int (10),
cometGroupId int (10) default 0,
label varchar (4000) default '',
description varchar (4000) default '',
component varchar (4000) default '',
templateId int (10) default 0,
publicationPlannerDocumentId varchar (4000) default '',
publicationPlannerRootPublicationId varchar (4000) default '',
documentName varchar (4000) default '',
documentPath varchar (4000) default '',
snippet longblob default null,
preview longblob default null,
recordId int (10) default 0,
recordId2 int (10) default 0,
recordId3 int (10) default 0,
recordStringId varchar (4000) default '',
objectEntityClass varchar (4000) default '',
objectEntityId varchar (4000) default '',
objectGroupId varchar (4000) default '',
objectId varchar (4000) default '',
parentObjectEntityClass varchar (4000) default '',
parentObjectEntityId varchar (4000) default '',
parentObjectGroupId varchar (4000) default '',
parentObjectId varchar (4000) default '',
layer varchar (4000) default '', -- since v4.1.8 R29320
x float (10, 4) default 0.0,
y float (10, 4) default 0.0,
width float (10, 4) default 0.0,
height float (10, 4) default 0.0,
createdOn varchar (256) default '',
updatedOn varchar (256) default '',
createdBy varchar (256) default '',
updatedBy varchar (256) default ''
);
alter table comet_snippets add primary key (id);
insert into comet_snippets (id) values (0);
commit;