From 64ac51e8c6675c9e30b0b53c202fbcf96fac620b Mon Sep 17 00:00:00 2001 From: Umachandar Jayachandran Date: Tue, 15 Jan 2019 18:25:14 -0800 Subject: [PATCH] Added sales_models table to store ML models --- .../sql-big-data-cluster/bootstrap-sample-db.sql | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/samples/features/sql-big-data-cluster/bootstrap-sample-db.sql b/samples/features/sql-big-data-cluster/bootstrap-sample-db.sql index 8ffe3873..8fc721d2 100644 --- a/samples/features/sql-big-data-cluster/bootstrap-sample-db.sql +++ b/samples/features/sql-big-data-cluster/bootstrap-sample-db.sql @@ -69,4 +69,15 @@ AS ) AS q INNER JOIN customer as c ON q.wcs_user_sk = c.c_customer_sk INNER JOIN customer_demographics as cd ON c.c_current_cdemo_sk = cd.cd_demo_sk; -GO \ No newline at end of file +GO + +-- Create table for storing the ML models +DROP TABLE IF EXISTS sales_models; +CREATE TABLE sales_models ( + model_name varchar(100) PRIMARY KEY, + model varbinary(max) NOT NULL, + model_native varbinary(max) NULL, + created_by nvarchar(500) NOT NULL DEFAULT(SYSTEM_USER), + create_time datetime2 NOT NULL DEFAULT(SYSDATETIME()) +); +GO