field_order SMALLINT NOT NULL DEFAULT 0, -- Order for Field
admin_search BOOLEAN NOT NULL DEFAULT '0', -- If the field is added to member list filters.
required BOOLEAN NOT NULL DEFAULT '0', -- If the field is required.
- uid TINYTEXT NOT NULL, -- id for the series of custom fields associated with an entity
- entity_id INT NOT NULL DEFAULT 0, -- id for the specific field associated with an entity
+ uid TINYTEXT NOT NULL DEFAULT '', -- id for the series of custom fields associated with an entity
+ entity_id INT NULL, -- id for the specific field associated with an entity
PRIMARY KEY (id),
INDEX(field_name(20))
);