MySQL Create Table SQL
Table Structure: okayapi_cloud_container:/tablelist/okayapi_cloud_container.html
-- MySQL Table okayapi_cloud_container
-- From: OkayAPI.com
CREATE TABLE `okayapi_cloud_container` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`container_name` varchar(200) NULL COMMENT '容器名称',
`create_time` varchar(32) NULL COMMENT '创建时间',
`service_name` varchar(100) NULL COMMENT '服务名称',
`cluster_name` varchar(100) NULL COMMENT '集群名称',
`server_address` varchar(32) NULL COMMENT '宿主机地址',
`container_ip` varchar(32) NULL COMMENT '容器ip',
`image` varchar(300) NULL COMMENT '镜像名称',
`app_name` varchar(132) NULL COMMENT '应用名称',
`okayapi_cloud_container_status` varchar(32) NULL COMMENT '运行状态',
`resource_name` varchar(100) NULL COMMENT '资源空间',
`okayapi_cloud_container_cpu` int(11) NULL COMMENT '',
`okayapi_cloud_container_memory` int(11) NULL COMMENT '',
`env` text NULL COMMENT '',
`process` text NULL COMMENT '',
`storage_data` text NULL COMMENT '',
`restart` int(11) NULL COMMENT '',
`waiting_messages` text NULL COMMENT '容器等待时的信息',
`waiting_reason` varchar(100) NULL COMMENT '容器等待原因',
`terminated_reason` varchar(100) NULL COMMENT '容器停止原因',
`terminated_messages` varchar(100) NULL COMMENT '容器停止信息',
`create_user` varchar(100) NULL COMMENT '',
`entname` varchar(100) NULL COMMENT '环境名称',
`okayapi_cloud_container_events` varchar(32) NULL COMMENT '',
`service` varchar(300) NULL COMMENT '',
`last_update_time` bigint(20) NULL COMMENT '',
KEY `container_name` (`container_name`),
KEY `create_time` (`create_time`),
KEY `service_name` (`service_name`),
KEY `cluster_name` (`cluster_name`),
KEY `server_address` (`server_address`),
KEY `container_ip` (`container_ip`),
KEY `image` (`image`),
KEY `app_name` (`app_name`),
KEY `okayapi_cloud_container_status` (`okayapi_cloud_container_status`),
KEY `resource_name` (`resource_name`),
KEY `okayapi_cloud_container_cpu` (`okayapi_cloud_container_cpu`),
KEY `okayapi_cloud_container_memory` (`okayapi_cloud_container_memory`),
KEY `env` (`env`),
KEY `process` (`process`),
KEY `storage_data` (`storage_data`),
KEY `restart` (`restart`),
KEY `waiting_messages` (`waiting_messages`),
KEY `waiting_reason` (`waiting_reason`),
KEY `terminated_reason` (`terminated_reason`),
KEY `terminated_messages` (`terminated_messages`),
KEY `create_user` (`create_user`),
KEY `entname` (`entname`),
KEY `okayapi_cloud_container_events` (`okayapi_cloud_container_events`),
KEY `service` (`service`),
KEY `last_update_time` (`last_update_time`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'k8s管理-容器';
After replication, you can go to the database to create the database table.
MySQL database table structure design
Displaying 1-25 of 25 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
container_name | varchar(200) | 是 | 容器名称 | |||
create_time | varchar(32) | 是 | 创建时间 | |||
service_name | varchar(100) | 是 | 服务名称 | |||
cluster_name | varchar(100) | 是 | 集群名称 | |||
server_address | varchar(32) | 是 | 宿主机地址 | |||
container_ip | varchar(32) | 是 | 容器ip | |||
image | varchar(300) | 是 | 镜像名称 | |||
app_name | varchar(132) | 是 | 应用名称 | |||
okayapi_cloud_container_status | varchar(32) | 是 | 运行状态 | |||
resource_name | varchar(100) | 是 | 资源空间 | |||
okayapi_cloud_container_cpu | int(11) | 是 | ||||
okayapi_cloud_container_memory | int(11) | 是 | ||||
env | text | 是 | ||||
process | text | 是 | ||||
storage_data | text | 是 | ||||
restart | int(11) | 是 | ||||
waiting_messages | text | 是 | 容器等待时的信息 | |||
waiting_reason | varchar(100) | 是 | 容器等待原因 | |||
terminated_reason | varchar(100) | 是 | 容器停止原因 | |||
terminated_messages | varchar(100) | 是 | 容器停止信息 | |||
create_user | varchar(100) | 是 | ||||
entname | varchar(100) | 是 | 环境名称 | |||
okayapi_cloud_container_events | varchar(32) | 是 | ||||
service | varchar(300) | 是 | ||||
last_update_time | bigint(20) | 是 |