
IF NOT EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ORC_LAYOUT]') AND type in (N'U'))
BEGIN
	CREATE TABLE ORC_LAYOUT(
		CD_LAYOUT INT,
		DS_LAYOUT VARCHAR(255)
	);
END


IF NOT EXISTS (SELECT 1 FROM ORC_LAYOUT WHERE CD_LAYOUT = 0)
BEGIN
	INSERT INTO ORC_LAYOUT(CD_LAYOUT,DS_LAYOUT) 
	VALUES (0,'Térmica 10 Colunas');
END;

IF NOT EXISTS (SELECT 1 FROM ORC_LAYOUT WHERE CD_LAYOUT = 1)
BEGIN
	INSERT INTO ORC_LAYOUT(CD_LAYOUT,DS_LAYOUT)
	VALUES (1,'Etiqueta Rabbit');
END;






