CREATE DATABASE `saas_ui` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
use `saas_ui`;

create table `ui_page`(
  id int unsigned primary key not null auto_increment,
  description varchar(500) not null,
  xtype varchar(50),
  layout json
);

create table `ui_form`(
  id int unsigned primary key not null auto_increment,
  page_id varchar(100) not null,
  field_name varchar(100) not null,
  field_desc varchar(100) not null,
  field_order int not null
);