From de6d978ed599b8e40d6876190b7cacc3eea19224 Mon Sep 17 00:00:00 2001 From: "Cyrus.chen" Date: Fri, 19 May 2023 15:31:40 +0800 Subject: [PATCH 01/15] fix: handle internal domain --- frontend/main/.env.development | 3 +-- frontend/main/src/utils/business/index.ts | 8 +------- frontend/text-tool/vite.config.ts | 2 +- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/frontend/main/.env.development b/frontend/main/.env.development index 19c98043..75d43096 100644 --- a/frontend/main/.env.development +++ b/frontend/main/.env.development @@ -6,8 +6,7 @@ VITE_PUBLIC_PATH = / # Cross-domain proxy, you can configure multiple # Please note that no line breaks -# VITE_PROXY = [["/api","http://localhost:8190/api"],["/upload","http://localhost:8190"]] -VITE_PROXY = [["/api","https://xtreme1.alidev.beisai.com/api"],["/upload","https://xtreme1.alidev.beisai.com"]] +VITE_PROXY = [["/api","http://localhost:8190/api"],["/upload","http://localhost:8190"]] # Delete console VITE_DROP_CONSOLE = false diff --git a/frontend/main/src/utils/business/index.ts b/frontend/main/src/utils/business/index.ts index 216e0b74..32e4e469 100644 --- a/frontend/main/src/utils/business/index.ts +++ b/frontend/main/src/utils/business/index.ts @@ -52,13 +52,7 @@ export const setDatasetBreadcrumb = (name, type?) => { }; export const handleGoPortal = () => { - if (window.location.href.includes('dev')) { - window.location.href = 'http://portal.alidev.beisai.com/'; - } else if (window.location.href.includes('test')) { - window.location.href = 'http://portal.alitest.beisai.com/'; - } else { - window.location.href = 'https://basic.ai'; - } + window.location.href = 'https://www.basic.ai'; }; export const handleToast = (list, action) => { diff --git a/frontend/text-tool/vite.config.ts b/frontend/text-tool/vite.config.ts index 97e7306d..95a9ec9b 100644 --- a/frontend/text-tool/vite.config.ts +++ b/frontend/text-tool/vite.config.ts @@ -13,7 +13,7 @@ const config = defineConfig({ proxy: { '/api': { changeOrigin: true, - target: 'https://xtreme1.alidev.beisai.com', + target: 'http://localhost:8190', }, }, }, From 9cad58a0b182b28933dbfad19b1d7d02e32cfcdf Mon Sep 17 00:00:00 2001 From: fanyinbo <1553199396@qq.com> Date: Fri, 21 Jul 2023 17:36:54 +0800 Subject: [PATCH 02/15] Registration is temporarily closed Signed-off-by: fanyinbo <1553199396@qq.com> --- .../basic/x1/adapter/api/controller/UserController.java | 9 ++++++++- backend/src/main/resources/application.yml | 4 ++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/ai/basic/x1/adapter/api/controller/UserController.java b/backend/src/main/java/ai/basic/x1/adapter/api/controller/UserController.java index f8a01bba..5452481e 100644 --- a/backend/src/main/java/ai/basic/x1/adapter/api/controller/UserController.java +++ b/backend/src/main/java/ai/basic/x1/adapter/api/controller/UserController.java @@ -21,6 +21,7 @@ import cn.hutool.core.util.StrUtil; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; import org.springframework.http.MediaType; import org.springframework.security.crypto.password.PasswordEncoder; import org.springframework.util.StringUtils; @@ -49,10 +50,16 @@ public class UserController extends BaseController { @Autowired private UserTokenUseCase userTokenUseCase; + @Value("${user.auth.register.enabled}") + private Boolean enabledRegister; + @PostMapping("/register") public UserLoginResponseDTO register(@Validated @RequestBody UserAuthRequestDTO authDto) { - var user = UserDTO.fromBO(userUseCase.create(authDto.getUsername(), + var user = UserDTO.fromBO(userUseCase.create(authDto.getUsername(), authDto.getPassword())); + if (Boolean.FALSE.equals(enabledRegister)) { + throw new UsecaseException(UsecaseCode.PARAM_ERROR, "Registration is temporarily closed"); + } return UserLoginResponseDTO.builder() .token(userTokenUseCase.generateGatewayToken(user.getId()).getToken()) .user(user) diff --git a/backend/src/main/resources/application.yml b/backend/src/main/resources/application.yml index da2b9d79..3abb8a7e 100644 --- a/backend/src/main/resources/application.yml +++ b/backend/src/main/resources/application.yml @@ -54,6 +54,10 @@ jwt: secret: G6j7j#$&YOy9&p(s2b@v53^)38E!cG49 issuer: BasicAI expireHours: 120 +auth: + # 是否开启注册功能 + register: + enabled: true mybatis-plus: global-config: From ab8da14f1b67a630aeb806e94769df92a2a15140 Mon Sep 17 00:00:00 2001 From: fanyinbo <1553199396@qq.com> Date: Fri, 21 Jul 2023 17:37:52 +0800 Subject: [PATCH 03/15] Registration is temporarily closed Signed-off-by: fanyinbo <1553199396@qq.com> --- backend/src/main/resources/application.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/resources/application.yml b/backend/src/main/resources/application.yml index 3abb8a7e..94482dfc 100644 --- a/backend/src/main/resources/application.yml +++ b/backend/src/main/resources/application.yml @@ -55,7 +55,7 @@ jwt: issuer: BasicAI expireHours: 120 auth: - # 是否开启注册功能 + # Whether to enable the registration register: enabled: true From a2162924f2669eb6a3d16f60049a73a952dec179 Mon Sep 17 00:00:00 2001 From: fanyinbo <1553199396@qq.com> Date: Fri, 21 Jul 2023 17:44:40 +0800 Subject: [PATCH 04/15] Registration is temporarily closed Signed-off-by: fanyinbo <1553199396@qq.com> --- .../java/ai/basic/x1/adapter/api/controller/UserController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/ai/basic/x1/adapter/api/controller/UserController.java b/backend/src/main/java/ai/basic/x1/adapter/api/controller/UserController.java index 5452481e..700b2f01 100644 --- a/backend/src/main/java/ai/basic/x1/adapter/api/controller/UserController.java +++ b/backend/src/main/java/ai/basic/x1/adapter/api/controller/UserController.java @@ -50,7 +50,7 @@ public class UserController extends BaseController { @Autowired private UserTokenUseCase userTokenUseCase; - @Value("${user.auth.register.enabled}") + @Value("${auth.register.enabled}") private Boolean enabledRegister; @PostMapping("/register") From 4663dd468fe9a1350f867e5c124152760e9eb407 Mon Sep 17 00:00:00 2001 From: Jagger Wang Date: Mon, 21 Aug 2023 19:29:37 +0800 Subject: [PATCH 05/15] Rename x1-community to xtreme1 --- .ops/.gitlab-ci.yml | 36 +---- .ops/alidev/backend-deployment.yml | 12 +- .ops/alidev/frontend-deployment.yml | 12 +- .ops/alitest/backend-deployment.yml | 136 ------------------- .ops/alitest/frontend-deployment.yml | 145 --------------------- backend/src/main/resources/application.yml | 2 +- docker-compose.yml | 2 +- 7 files changed, 15 insertions(+), 330 deletions(-) delete mode 100644 .ops/alitest/backend-deployment.yml delete mode 100644 .ops/alitest/frontend-deployment.yml diff --git a/.ops/.gitlab-ci.yml b/.ops/.gitlab-ci.yml index 9f12c764..a7a2c048 100644 --- a/.ops/.gitlab-ci.yml +++ b/.ops/.gitlab-ci.yml @@ -16,7 +16,7 @@ variables: DOCKER_HUB_FRONTEND_IMAGE_NAME: "basicai/${APP_NAME}-frontend" DOCKER_HUB_BACKEND_IMAGE_NAME: "basicai/${APP_NAME}-backend" - KUBERNETES_NAMESPACE: "x1-community" + KUBERNETES_NAMESPACE: "basicai-xtreme1" build-backend-package: stage: build-package @@ -206,37 +206,3 @@ deploy-frontend-to-alidev: script: - sed -i 's|$FRONTEND_IMAGE_NAME|'"$FRONTEND_IMAGE_NAME"'|g' $DEPLOYMENT - kubectl apply -f $DEPLOYMENT -n $KUBERNETES_NAMESPACE --kubeconfig=$KUBECONFIG_ALIYUN_DEVELOPMENT - -deploy-backend-to-alitest: - extends: .deploy - rules: - - if: $CI_COMMIT_BRANCH == "dev" - changes: - - .ops/* - - .ops/**/* - - backend/* - - backend/**/* - when: manual - variables: - ENV: alitest - DEPLOYMENT: backend-deployment.yml - script: - - sed -i 's|$BACKEND_IMAGE_NAME|'"$BACKEND_IMAGE_NAME"'|g' $DEPLOYMENT - - kubectl apply -f $DEPLOYMENT -n $KUBERNETES_NAMESPACE --kubeconfig=$KUBECONFIG_ALIYUN_TESTING - -deploy-frontend-to-alitest: - extends: .deploy - rules: - - if: $CI_COMMIT_BRANCH == "dev" - changes: - - .ops/* - - .ops/**/* - - frontend/* - - frontend/**/* - when: manual - variables: - ENV: alitest - DEPLOYMENT: frontend-deployment.yml - script: - - sed -i 's|$FRONTEND_IMAGE_NAME|'"$FRONTEND_IMAGE_NAME"'|g' $DEPLOYMENT - - kubectl apply -f $DEPLOYMENT -n $KUBERNETES_NAMESPACE --kubeconfig=$KUBECONFIG_ALIYUN_TESTING diff --git a/.ops/alidev/backend-deployment.yml b/.ops/alidev/backend-deployment.yml index 0ff6e90d..d378813c 100644 --- a/.ops/alidev/backend-deployment.yml +++ b/.ops/alidev/backend-deployment.yml @@ -6,14 +6,14 @@ spec: replicas: 1 selector: matchLabels: - app.kubernetes.io/name: x1-community - app.kubernetes.io/instance: x1-community + app.kubernetes.io/name: xtreme1 + app.kubernetes.io/instance: xtreme1 app.kubernetes.io/component: backend template: metadata: labels: - app.kubernetes.io/name: x1-community - app.kubernetes.io/instance: x1-community + app.kubernetes.io/name: xtreme1 + app.kubernetes.io/instance: xtreme1 app.kubernetes.io/component: backend spec: nodeSelector: @@ -68,8 +68,8 @@ metadata: name: backend spec: selector: - app.kubernetes.io/name: x1-community - app.kubernetes.io/instance: x1-community + app.kubernetes.io/name: xtreme1 + app.kubernetes.io/instance: xtreme1 app.kubernetes.io/component: backend ports: - name: http diff --git a/.ops/alidev/frontend-deployment.yml b/.ops/alidev/frontend-deployment.yml index c2b181b6..4e7dde0d 100644 --- a/.ops/alidev/frontend-deployment.yml +++ b/.ops/alidev/frontend-deployment.yml @@ -6,14 +6,14 @@ spec: replicas: 1 selector: matchLabels: - app.kubernetes.io/name: x1-community - app.kubernetes.io/instance: x1-community + app.kubernetes.io/name: xtreme1 + app.kubernetes.io/instance: xtreme1 app.kubernetes.io/component: frontend template: metadata: labels: - app.kubernetes.io/name: x1-community - app.kubernetes.io/instance: x1-community + app.kubernetes.io/name: xtreme1 + app.kubernetes.io/instance: xtreme1 app.kubernetes.io/component: frontend spec: nodeSelector: @@ -40,8 +40,8 @@ metadata: name: frontend spec: selector: - app.kubernetes.io/name: x1-community - app.kubernetes.io/instance: x1-community + app.kubernetes.io/name: xtreme1 + app.kubernetes.io/instance: xtreme1 app.kubernetes.io/component: frontend ports: - name: http diff --git a/.ops/alitest/backend-deployment.yml b/.ops/alitest/backend-deployment.yml deleted file mode 100644 index 0031a9bd..00000000 --- a/.ops/alitest/backend-deployment.yml +++ /dev/null @@ -1,136 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: backend -spec: - replicas: 1 - selector: - matchLabels: - app.kubernetes.io/name: x1-community - app.kubernetes.io/instance: x1-community - app.kubernetes.io/component: backend - template: - metadata: - labels: - app.kubernetes.io/name: x1-community - app.kubernetes.io/instance: x1-community - app.kubernetes.io/component: backend - spec: - nodeSelector: - dedicated: app - imagePullSecrets: - - name: basicai-registry - containers: - - name: backend - image: $BACKEND_IMAGE_NAME:$CI_COMMIT_SHORT_SHA - env: - - name: JAVA_OPTS - value: "-XX:InitialRAMPercentage=20.0 -XX:MinRAMPercentage=80.0 -XX:MaxRAMPercentage=80.0 -XshowSettings:vm" - resources: - requests: - memory: 200Mi - cpu: 10m - limits: - memory: 2Gi - cpu: 1 - ports: - - name: http - containerPort: 8080 - startupProbe: - httpGet: - path: /actuator/health/liveness - port: 8080 - periodSeconds: 10 - failureThreshold: 6 - livenessProbe: - httpGet: - path: /actuator/health/liveness - port: 8080 - periodSeconds: 10 - failureThreshold: 3 - readinessProbe: - httpGet: - path: /actuator/health/readiness - port: 8080 - initialDelaySeconds: 10 - periodSeconds: 10 - volumeMounts: - - name: config - mountPath: /app/config - volumes: - - name: config - configMap: - name: backend ---- -apiVersion: v1 -kind: Service -metadata: - name: backend -spec: - selector: - app.kubernetes.io/name: x1-community - app.kubernetes.io/instance: x1-community - app.kubernetes.io/component: backend - ports: - - name: http - port: 80 - targetPort: 8080 ---- -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - annotations: - nginx.ingress.kubernetes.io/rewrite-target: /$2 - name: backend -spec: - ingressClassName: nginx - rules: - - host: xtreme1.alitest.beisai.com - http: - paths: - - backend: - service: - name: backend - port: - number: 80 - path: /api(/|$)(.*) - pathType: Prefix - tls: - - hosts: - - xtreme1.alitest.beisai.com - secretName: alitest.beisai.com ---- -apiVersion: v1 -kind: Service -metadata: - name: minio -spec: - type: ExternalName - externalName: basicai-dataset-tmp-minio-endpoint.alitest.beisai.com ---- -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - annotations: - nginx.ingress.kubernetes.io/rewrite-target: /$2 - nginx.ingress.kubernetes.io/backend-protocol: HTTPS - nginx.ingress.kubernetes.io/upstream-vhost: basicai-dataset-tmp-minio-endpoint.alitest.beisai.com - nginx.ingress.kubernetes.io/proxy-body-size: 1000m - name: minio -spec: - ingressClassName: nginx - rules: - - host: xtreme1.alitest.beisai.com - http: - paths: - - backend: - service: - name: minio - port: - number: 443 - path: /minio(/|$)(.*) - pathType: Prefix - tls: - - hosts: - - xtreme1.alitest.beisai.com - secretName: alitest.beisai.com diff --git a/.ops/alitest/frontend-deployment.yml b/.ops/alitest/frontend-deployment.yml deleted file mode 100644 index d17a8a30..00000000 --- a/.ops/alitest/frontend-deployment.yml +++ /dev/null @@ -1,145 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: frontend -spec: - replicas: 1 - selector: - matchLabels: - app.kubernetes.io/name: x1-community - app.kubernetes.io/instance: x1-community - app.kubernetes.io/component: frontend - template: - metadata: - labels: - app.kubernetes.io/name: x1-community - app.kubernetes.io/instance: x1-community - app.kubernetes.io/component: frontend - spec: - nodeSelector: - dedicated: app - imagePullSecrets: - - name: basicai-registry - containers: - - name: frontend - image: $FRONTEND_IMAGE_NAME:$CI_COMMIT_SHORT_SHA - resources: - requests: - memory: 200Mi - cpu: 10m - limits: - memory: 2Gi - cpu: 1 - ports: - - name: http - containerPort: 80 ---- -apiVersion: v1 -kind: Service -metadata: - name: frontend -spec: - selector: - app.kubernetes.io/name: x1-community - app.kubernetes.io/instance: x1-community - app.kubernetes.io/component: frontend - ports: - - name: http - port: 80 - targetPort: 80 ---- -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - annotations: - nginx.ingress.kubernetes.io/rewrite-target: /main/$1 - name: frontend-main -spec: - ingressClassName: nginx - rules: - - host: xtreme1.alitest.beisai.com - http: - paths: - - backend: - service: - name: frontend - port: - number: 80 - path: /(.*) - pathType: Prefix - tls: - - hosts: - - xtreme1.alitest.beisai.com - secretName: alitest.beisai.com ---- -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - annotations: - nginx.ingress.kubernetes.io/rewrite-target: /image-tool/$2 - name: frontend-image-tool -spec: - ingressClassName: nginx - rules: - - host: xtreme1.alitest.beisai.com - http: - paths: - - backend: - service: - name: frontend - port: - number: 80 - path: /tool/image(/|$)(.*) - pathType: Prefix - tls: - - hosts: - - xtreme1.alitest.beisai.com - secretName: alitest.beisai.com ---- -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - annotations: - nginx.ingress.kubernetes.io/rewrite-target: /pc-tool/$2 - name: frontend-pc-tool -spec: - ingressClassName: nginx - rules: - - host: xtreme1.alitest.beisai.com - http: - paths: - - backend: - service: - name: frontend - port: - number: 80 - path: /tool/pc(/|$)(.*) - pathType: Prefix - tls: - - hosts: - - xtreme1.alitest.beisai.com - secretName: alitest.beisai.com ---- -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - annotations: - nginx.ingress.kubernetes.io/rewrite-target: /text-tool/$2 - name: frontend-text-tool -spec: - ingressClassName: nginx - rules: - - host: xtreme1.alitest.beisai.com - http: - paths: - - backend: - service: - name: frontend - port: - number: 80 - path: /tool/text(/|$)(.*) - pathType: Prefix - tls: - - hosts: - - xtreme1.alitest.beisai.com - secretName: alitest.beisai.com diff --git a/backend/src/main/resources/application.yml b/backend/src/main/resources/application.yml index 94482dfc..884a30ff 100644 --- a/backend/src/main/resources/application.yml +++ b/backend/src/main/resources/application.yml @@ -74,7 +74,7 @@ minio: endpoint: http://minio:9000/ accessKey: admin secretKey: 1tQB970y - bucketName: x1-community + bucketName: xtreme1 export: data: diff --git a/docker-compose.yml b/docker-compose.yml index fdfff8d1..ce76b676 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -44,7 +44,7 @@ services: environment: MINIO_ROOT_USER: admin MINIO_ROOT_PASSWORD: 1tQB970y - MINIO_DEFAULT_BUCKETS: x1-community:download + MINIO_DEFAULT_BUCKETS: xtreme1:download ports: - 8193:9000 - 8194:9001 From a3c7c72947e88ead4380f84cdb16870d471a16f4 Mon Sep 17 00:00:00 2001 From: Jagger Wang Date: Tue, 22 Aug 2023 11:19:17 +0800 Subject: [PATCH 06/15] Rename x1_community to xtreme1 --- backend/README.md | 4 +- backend/src/main/resources/application.yml | 4 +- deploy/mysql/migration/V2__Init_data.sql | 186 ++++++++++----------- docker-compose.yml | 6 +- 4 files changed, 100 insertions(+), 100 deletions(-) diff --git a/backend/README.md b/backend/README.md index 75005932..2f5a7dea 100644 --- a/backend/README.md +++ b/backend/README.md @@ -63,8 +63,8 @@ debug: false spring: datasource: - url: jdbc:mysql://localhost:8191/x1_community - username: x1_community + url: jdbc:mysql://localhost:8191/xtreme1 + username: xtreme1 password: Rc4K3L6f redis: host: localhost diff --git a/backend/src/main/resources/application.yml b/backend/src/main/resources/application.yml index 884a30ff..85db57dc 100644 --- a/backend/src/main/resources/application.yml +++ b/backend/src/main/resources/application.yml @@ -18,8 +18,8 @@ spring: application: name: xtreme1 datasource: - url: jdbc:mysql://mysql:3306/x1_community - username: x1_community + url: jdbc:mysql://mysql:3306/xtreme1 + username: xtreme1 password: Rc4K3L6f hikari: connection-test-query: SELECT 1 diff --git a/deploy/mysql/migration/V2__Init_data.sql b/deploy/mysql/migration/V2__Init_data.sql index 83f18fed..28d7ffa0 100644 --- a/deploy/mysql/migration/V2__Init_data.sql +++ b/deploy/mysql/migration/V2__Init_data.sql @@ -1,93 +1,93 @@ -INSERT INTO `x1_community`.`model`(`id`, `name`, `version`, `description`, `scenario`, `dataset_type`, `model_type`, `model_code`, `url`, `is_deleted`, `del_unique_key`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (1, 'Basic Lidar Object Detection11', 'v0.1.2', '

Basic Lidar Object Detection Model empowers you to detect the most common classes precisely and efficiently during lidar and lidar fusion annotation in Autonomous Vehicle Industry. 

•  BLOD is a hyper-based methodology invented, trained and maintained by Basic AI 

•  BLOD has been testified in more than 20TB production data. 

•  BLOD boosts your annotation speed by at least 26%

•  Try it for free now!

', '[\"Lidar\",\"Lidar fusion\",\"Autonomous Vehicle\",\"Object Detection\"]', 'LIDAR', 'DETECTION', 'LIDAR_DETECTION', 'http://point-cloud-object-detection:5000/pointCloud/recognition', b'0', 0, current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model`(`id`, `name`, `version`, `description`, `scenario`, `dataset_type`, `model_type`, `model_code`, `url`, `is_deleted`, `del_unique_key`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'COCO Object Detection', 'v0.1.0', '

\r\n The COCO Object Detection Model, trained on MS COCO dataset, empowers you to detect 80 common classes precisely and efficiently. It outputs both bounding boxes and classes.\r\n

\r\n

\r\n •  It saves your annotation edits by at least 41.3% in 80 COCO classes.\r\n

\r\n

\r\n •  It is extremely fast. Results can be obtained in a short time.\r\n

\r\n

\r\n •  It is highly expandable, which allows new models with new datasets and classes to be trained easily. Contact us to know more.\r\n

\r\n

\r\n •  Try it for FREE now!\r\n

', '[\"Common Objects Detection\"]', 'IMAGE', 'DETECTION', 'IMAGE_DETECTION', 'http://image-object-detection:5000/image/recognition ', b'0', 0, current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`user`(`id`,`username`, `password`, `nickname`) VALUES (1,'admin@xtreme1.io', '$2a$10$0qk8vIkREsV6KYPeYJLU..C/JxJZc/ccfZIcEmFcnS8W9DtOD/y5K', 'admin'); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Person', 'PERSON', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bicycle', 'BICYCLE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Car', 'CAR', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Motorcycle', 'MOTORCYCLE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Airplane', 'AIRPLANE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Train', 'TRAIN', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Truck', 'TRUCK', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Boat', 'BOAT', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Traffic Light', 'TRAFFIC LIGHT', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Fire Hydrant', 'FIRE HYDRANT', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Stop Sign', 'STOP SIGN', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Parking Meter', 'PARKING METER', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bench', 'BENCH', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bird', 'BIRD', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Cat', 'CAT', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Dog', 'DOG', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Horse', 'HORSE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Sheep', 'SHEEP', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Cow', 'COW', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Elephant', 'ELEPHANT', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bear', 'BEAR', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Zebra', 'ZEBRA', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Giraffe', 'GIRAFFE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Backpack', 'BACKPACK', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Umbrella', 'UMBRELLA', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Handbag', 'HANDBAG', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Tie', 'TIE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Suitcase', 'SUITCASE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Frisbee', 'FRISBEE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Skis', 'SKIS', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Snowboard', 'SNOWBOARD', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Sports Ball', 'SPORTS BALL', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Kite', 'KITE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Baseball Bat', 'BASEBALL BAT', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Baseball Glove', 'BASEBALL GLOVE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Skateboard', 'SKATEBOARD', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Surfboard', 'SURFBOARD', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Tennis Racket', 'TENNIS RACKET', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bottle', 'BOTTLE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Wine Glass', 'WINE GLASS', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Cup', 'CUP', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Fork', 'FORK', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Knife', 'KNIFE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Spoon', 'SPOON', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bowl', 'BOWL', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Banana', 'BANANA', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Apple', 'APPLE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Sandwich', 'SANDWICH', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Orange', 'ORANGE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Broccoli', 'BROCCOLI', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Carrot', 'CARROT', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Hot Dog', 'HOT DOG', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Pizza', 'PIZZA', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Donut', 'DONUT', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Cake', 'CAKE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Chair', 'CHAIR', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Couch', 'COUCH', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Potted Plant', 'POTTED PLANT', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bed', 'BED', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Dining Table', 'DINING TABLE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Toilet', 'TOILET', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Tv', 'TV', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Laptop', 'LAPTOP', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Mouse', 'MOUSE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Remote', 'REMOTE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Keyboard', 'KEYBOARD', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Cell Phone', 'CELL PHONE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Microwave', 'MICROWAVE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Oven', 'OVEN', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Toaster', 'TOASTER', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Sink', 'SINK', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Refrigerator', 'REFRIGERATOR', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Book', 'BOOK', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Clock', 'CLOCK', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Vase', 'VASE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Scissors', 'SCISSORS', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Teddy Bear', 'TEDDY BEAR', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Hair Drier', 'HAIR DRIER', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Toothbrush', 'TOOTHBRUSH', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bus', 'BUS', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (1, 'Car', 'CAR', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (1, 'Truck', 'TRUCK', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (1, 'Construction Vehicle', 'CONSTRUCTION_VEHICLE ', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (1, ' Bus', 'BUS', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (1, 'Trailer', 'TRAILER', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (1, 'Barrier', 'BARRIER', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (1, 'Motorcycle', 'MOTORCYCLE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (1, 'Bicycle', 'BICYCLE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (1, 'Pedestrian', 'PEDESTRIAN', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (1, 'Traffic Cone', 'TRAFFIC_CONE', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model`(`id`, `name`, `version`, `description`, `scenario`, `dataset_type`, `model_type`, `model_code`, `url`, `is_deleted`, `del_unique_key`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (1, 'Basic Lidar Object Detection11', 'v0.1.2', '

Basic Lidar Object Detection Model empowers you to detect the most common classes precisely and efficiently during lidar and lidar fusion annotation in Autonomous Vehicle Industry. 

•  BLOD is a hyper-based methodology invented, trained and maintained by Basic AI 

•  BLOD has been testified in more than 20TB production data. 

•  BLOD boosts your annotation speed by at least 26%

•  Try it for free now!

', '[\"Lidar\",\"Lidar fusion\",\"Autonomous Vehicle\",\"Object Detection\"]', 'LIDAR', 'DETECTION', 'LIDAR_DETECTION', 'http://point-cloud-object-detection:5000/pointCloud/recognition', b'0', 0, current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model`(`id`, `name`, `version`, `description`, `scenario`, `dataset_type`, `model_type`, `model_code`, `url`, `is_deleted`, `del_unique_key`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'COCO Object Detection', 'v0.1.0', '

\r\n The COCO Object Detection Model, trained on MS COCO dataset, empowers you to detect 80 common classes precisely and efficiently. It outputs both bounding boxes and classes.\r\n

\r\n

\r\n •  It saves your annotation edits by at least 41.3% in 80 COCO classes.\r\n

\r\n

\r\n •  It is extremely fast. Results can be obtained in a short time.\r\n

\r\n

\r\n •  It is highly expandable, which allows new models with new datasets and classes to be trained easily. Contact us to know more.\r\n

\r\n

\r\n •  Try it for FREE now!\r\n

', '[\"Common Objects Detection\"]', 'IMAGE', 'DETECTION', 'IMAGE_DETECTION', 'http://image-object-detection:5000/image/recognition ', b'0', 0, current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`user`(`id`,`username`, `password`, `nickname`) VALUES (1,'admin@xtreme1.io', '$2a$10$0qk8vIkREsV6KYPeYJLU..C/JxJZc/ccfZIcEmFcnS8W9DtOD/y5K', 'admin'); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Person', 'PERSON', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bicycle', 'BICYCLE', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Car', 'CAR', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Motorcycle', 'MOTORCYCLE', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Airplane', 'AIRPLANE', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Train', 'TRAIN', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Truck', 'TRUCK', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Boat', 'BOAT', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Traffic Light', 'TRAFFIC LIGHT', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Fire Hydrant', 'FIRE HYDRANT', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Stop Sign', 'STOP SIGN', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Parking Meter', 'PARKING METER', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bench', 'BENCH', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bird', 'BIRD', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Cat', 'CAT', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Dog', 'DOG', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Horse', 'HORSE', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Sheep', 'SHEEP', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Cow', 'COW', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Elephant', 'ELEPHANT', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bear', 'BEAR', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Zebra', 'ZEBRA', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Giraffe', 'GIRAFFE', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Backpack', 'BACKPACK', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Umbrella', 'UMBRELLA', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Handbag', 'HANDBAG', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Tie', 'TIE', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Suitcase', 'SUITCASE', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Frisbee', 'FRISBEE', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Skis', 'SKIS', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Snowboard', 'SNOWBOARD', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Sports Ball', 'SPORTS BALL', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Kite', 'KITE', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Baseball Bat', 'BASEBALL BAT', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Baseball Glove', 'BASEBALL GLOVE', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Skateboard', 'SKATEBOARD', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Surfboard', 'SURFBOARD', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Tennis Racket', 'TENNIS RACKET', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bottle', 'BOTTLE', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Wine Glass', 'WINE GLASS', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Cup', 'CUP', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Fork', 'FORK', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Knife', 'KNIFE', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Spoon', 'SPOON', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bowl', 'BOWL', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Banana', 'BANANA', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Apple', 'APPLE', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Sandwich', 'SANDWICH', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Orange', 'ORANGE', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Broccoli', 'BROCCOLI', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Carrot', 'CARROT', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Hot Dog', 'HOT DOG', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Pizza', 'PIZZA', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Donut', 'DONUT', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Cake', 'CAKE', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Chair', 'CHAIR', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Couch', 'COUCH', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Potted Plant', 'POTTED PLANT', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bed', 'BED', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Dining Table', 'DINING TABLE', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Toilet', 'TOILET', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Tv', 'TV', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Laptop', 'LAPTOP', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Mouse', 'MOUSE', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Remote', 'REMOTE', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Keyboard', 'KEYBOARD', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Cell Phone', 'CELL PHONE', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Microwave', 'MICROWAVE', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Oven', 'OVEN', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Toaster', 'TOASTER', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Sink', 'SINK', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Refrigerator', 'REFRIGERATOR', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Book', 'BOOK', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Clock', 'CLOCK', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Vase', 'VASE', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Scissors', 'SCISSORS', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Teddy Bear', 'TEDDY BEAR', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Hair Drier', 'HAIR DRIER', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Toothbrush', 'TOOTHBRUSH', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bus', 'BUS', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (1, 'Car', 'CAR', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (1, 'Truck', 'TRUCK', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (1, 'Construction Vehicle', 'CONSTRUCTION_VEHICLE ', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (1, ' Bus', 'BUS', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (1, 'Trailer', 'TRAILER', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (1, 'Barrier', 'BARRIER', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (1, 'Motorcycle', 'MOTORCYCLE', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (1, 'Bicycle', 'BICYCLE', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (1, 'Pedestrian', 'PEDESTRIAN', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (1, 'Traffic Cone', 'TRAFFIC_CONE', current_timestamp, 1, NULL, NULL); diff --git a/docker-compose.yml b/docker-compose.yml index ce76b676..c3b64b6d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,8 +13,8 @@ services: image: mysql:5.7 environment: MYSQL_ROOT_PASSWORD: ImOxO8Lz - MYSQL_DATABASE: x1_community - MYSQL_USER: x1_community + MYSQL_DATABASE: xtreme1 + MYSQL_USER: xtreme1 MYSQL_PASSWORD: Rc4K3L6f ports: - 8191:3306 @@ -22,7 +22,7 @@ services: - mysql-data:/var/lib/mysql - ./deploy/mysql/migration:/docker-entrypoint-initdb.d healthcheck: - test: '/usr/bin/mysql --user=x1_community --password=Rc4K3L6f --execute "SHOW DATABASES;"' + test: '/usr/bin/mysql --user=xtreme1 --password=Rc4K3L6f --execute "SHOW DATABASES;"' interval: 10s timeout: 10s start_period: 10s From cdd9f06b6d95ba3aeeb1f66070bca068a4345c42 Mon Sep 17 00:00:00 2001 From: Jagger Wang Date: Tue, 22 Aug 2023 11:36:26 +0800 Subject: [PATCH 07/15] Update frontend README --- frontend/README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/frontend/README.md b/frontend/README.md index 4d1ed54c..8372b0e3 100644 --- a/frontend/README.md +++ b/frontend/README.md @@ -8,7 +8,6 @@ Xtreme1 frontend mainly includes three parts, each part is a separate project an - [image-tool](./image-tool/README.md) - Image annotation tool - [text-tool](./text-tool/README.md) - Text annotation tool - ## Deploy Each part is developed independently, and finally the static files are put together to `frontend/dist`. From fc5d796b1e683d99dc4ea10231f7590d98add7aa Mon Sep 17 00:00:00 2001 From: Jagger Wang Date: Wed, 23 Aug 2023 17:31:50 +0800 Subject: [PATCH 08/15] Update docker compose --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index c3b64b6d..72c25cc5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -117,7 +117,7 @@ services: - model runtime: nvidia image-vect-visualization: - image: basicai/xtreme1-image-vect-visualization-cpu + image: basicai/xtreme1-image-vect-visualization ports: - 8294:5000 pcd-tools: From 5d40d612ed2b710ae40ccb9ab96621a917cb0cc3 Mon Sep 17 00:00:00 2001 From: fanyinbo <1553199396@qq.com> Date: Fri, 25 Aug 2023 11:57:06 +0800 Subject: [PATCH 09/15] sql update, to solve the problem that the label cannot be displayed after the model is run Signed-off-by: fanyinbo <1553199396@qq.com> --- deploy/mysql/migration/V2__Init_data.sql | 160 +++++++++++------------ 1 file changed, 80 insertions(+), 80 deletions(-) diff --git a/deploy/mysql/migration/V2__Init_data.sql b/deploy/mysql/migration/V2__Init_data.sql index 83f18fed..abd6dae8 100644 --- a/deploy/mysql/migration/V2__Init_data.sql +++ b/deploy/mysql/migration/V2__Init_data.sql @@ -1,86 +1,86 @@ INSERT INTO `x1_community`.`model`(`id`, `name`, `version`, `description`, `scenario`, `dataset_type`, `model_type`, `model_code`, `url`, `is_deleted`, `del_unique_key`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (1, 'Basic Lidar Object Detection11', 'v0.1.2', '

Basic Lidar Object Detection Model empowers you to detect the most common classes precisely and efficiently during lidar and lidar fusion annotation in Autonomous Vehicle Industry. 

•  BLOD is a hyper-based methodology invented, trained and maintained by Basic AI 

•  BLOD has been testified in more than 20TB production data. 

•  BLOD boosts your annotation speed by at least 26%

•  Try it for free now!

', '[\"Lidar\",\"Lidar fusion\",\"Autonomous Vehicle\",\"Object Detection\"]', 'LIDAR', 'DETECTION', 'LIDAR_DETECTION', 'http://point-cloud-object-detection:5000/pointCloud/recognition', b'0', 0, current_timestamp, 1, NULL, NULL); INSERT INTO `x1_community`.`model`(`id`, `name`, `version`, `description`, `scenario`, `dataset_type`, `model_type`, `model_code`, `url`, `is_deleted`, `del_unique_key`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'COCO Object Detection', 'v0.1.0', '

\r\n The COCO Object Detection Model, trained on MS COCO dataset, empowers you to detect 80 common classes precisely and efficiently. It outputs both bounding boxes and classes.\r\n

\r\n

\r\n •  It saves your annotation edits by at least 41.3% in 80 COCO classes.\r\n

\r\n

\r\n •  It is extremely fast. Results can be obtained in a short time.\r\n

\r\n

\r\n •  It is highly expandable, which allows new models with new datasets and classes to be trained easily. Contact us to know more.\r\n

\r\n

\r\n •  Try it for FREE now!\r\n

', '[\"Common Objects Detection\"]', 'IMAGE', 'DETECTION', 'IMAGE_DETECTION', 'http://image-object-detection:5000/image/recognition ', b'0', 0, current_timestamp, 1, NULL, NULL); INSERT INTO `x1_community`.`user`(`id`,`username`, `password`, `nickname`) VALUES (1,'admin@xtreme1.io', '$2a$10$0qk8vIkREsV6KYPeYJLU..C/JxJZc/ccfZIcEmFcnS8W9DtOD/y5K', 'admin'); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Person', 'PERSON', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bicycle', 'BICYCLE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Car', 'CAR', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Motorcycle', 'MOTORCYCLE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Airplane', 'AIRPLANE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Train', 'TRAIN', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Truck', 'TRUCK', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Boat', 'BOAT', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Traffic Light', 'TRAFFIC LIGHT', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Fire Hydrant', 'FIRE HYDRANT', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Stop Sign', 'STOP SIGN', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Parking Meter', 'PARKING METER', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bench', 'BENCH', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bird', 'BIRD', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Cat', 'CAT', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Dog', 'DOG', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Horse', 'HORSE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Sheep', 'SHEEP', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Cow', 'COW', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Elephant', 'ELEPHANT', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bear', 'BEAR', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Zebra', 'ZEBRA', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Giraffe', 'GIRAFFE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Backpack', 'BACKPACK', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Umbrella', 'UMBRELLA', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Handbag', 'HANDBAG', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Tie', 'TIE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Suitcase', 'SUITCASE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Frisbee', 'FRISBEE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Skis', 'SKIS', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Snowboard', 'SNOWBOARD', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Sports Ball', 'SPORTS BALL', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Kite', 'KITE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Baseball Bat', 'BASEBALL BAT', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Baseball Glove', 'BASEBALL GLOVE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Skateboard', 'SKATEBOARD', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Surfboard', 'SURFBOARD', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Tennis Racket', 'TENNIS RACKET', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bottle', 'BOTTLE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Wine Glass', 'WINE GLASS', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Cup', 'CUP', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Fork', 'FORK', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Knife', 'KNIFE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Spoon', 'SPOON', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bowl', 'BOWL', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Banana', 'BANANA', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Apple', 'APPLE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Sandwich', 'SANDWICH', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Orange', 'ORANGE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Broccoli', 'BROCCOLI', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Carrot', 'CARROT', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Hot Dog', 'HOT DOG', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Pizza', 'PIZZA', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Donut', 'DONUT', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Cake', 'CAKE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Chair', 'CHAIR', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Couch', 'COUCH', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Potted Plant', 'POTTED PLANT', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bed', 'BED', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Dining Table', 'DINING TABLE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Toilet', 'TOILET', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Tv', 'TV', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Laptop', 'LAPTOP', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Mouse', 'MOUSE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Remote', 'REMOTE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Keyboard', 'KEYBOARD', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Cell Phone', 'CELL PHONE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Microwave', 'MICROWAVE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Oven', 'OVEN', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Toaster', 'TOASTER', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Sink', 'SINK', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Refrigerator', 'REFRIGERATOR', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Book', 'BOOK', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Clock', 'CLOCK', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Vase', 'VASE', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Scissors', 'SCISSORS', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Teddy Bear', 'TEDDY BEAR', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Hair Drier', 'HAIR DRIER', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Toothbrush', 'TOOTHBRUSH', current_timestamp, 1, NULL, NULL); -INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bus', 'BUS', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Person', 'person', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bicycle', 'bicycle', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Car', 'car', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Motorcycle', 'motorcycle', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Airplane', 'airplane', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Train', 'train', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Truck', 'truck', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Boat', 'boat', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Traffic Light', 'traffic light', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Fire Hydrant', 'fire hydrant', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Stop Sign', 'stop sign', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Parking Meter', 'parking meter', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bench', 'bench', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bird', 'bird', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Cat', 'cat', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Dog', 'dog', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Horse', 'horse', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Sheep', 'sheep', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Cow', 'cow', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Elephant', 'elephant', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bear', 'bear', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Zebra', 'zebra', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Giraffe', 'giraffe', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Backpack', 'backpack', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Umbrella', 'umbrella', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Handbag', 'handbag', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Tie', 'tie', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Suitcase', 'suitcase', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Frisbee', 'frisbee', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Skis', 'skis', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Snowboard', 'snowboard', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Sports Ball', 'sports ball', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Kite', 'kite', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Baseball Bat', 'baseball bat', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Baseball Glove', 'baseball glove', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Skateboard', 'skateboard', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Surfboard', 'surfboard', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Tennis Racket', 'tennis racket', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bottle', 'bottle', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Wine Glass', 'wine glass', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Cup', 'cup', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Fork', 'fork', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Knife', 'knife', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Spoon', 'spoon', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bowl', 'bowl', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Banana', 'banana', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Apple', 'apple', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Sandwich', 'sandwich', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Orange', 'orange', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Broccoli', 'broccoli', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Carrot', 'carrot', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Hot Dog', 'hot dog', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Pizza', 'pizza', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Donut', 'donut', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Cake', 'cake', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Chair', 'chair', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Couch', 'couch', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Potted Plant', 'potted plant', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bed', 'bed', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Dining Table', 'dining table', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Toilet', 'toilet', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Tv', 'tv', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Laptop', 'laptop', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Mouse', 'mouse', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Remote', 'remote', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Keyboard', 'keyboard', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Cell Phone', 'cell phone', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Microwave', 'microwave', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Oven', 'oven', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Toaster', 'toaster', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Sink', 'sink', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Refrigerator', 'refrigerator', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Book', 'book', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Clock', 'clock', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Vase', 'vase', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Scissors', 'scissors', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Teddy Bear', 'teddy bear', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Hair Drier', 'hair drier', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Toothbrush', 'toothbrush', current_timestamp, 1, NULL, NULL); +INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bus', 'bus', current_timestamp, 1, NULL, NULL); INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (1, 'Car', 'CAR', current_timestamp, 1, NULL, NULL); INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (1, 'Truck', 'TRUCK', current_timestamp, 1, NULL, NULL); INSERT INTO `x1_community`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (1, 'Construction Vehicle', 'CONSTRUCTION_VEHICLE ', current_timestamp, 1, NULL, NULL); From ff8898d816c908aaea4e0711bc8592644baf2892 Mon Sep 17 00:00:00 2001 From: fanyinbo <1553199396@qq.com> Date: Fri, 25 Aug 2023 12:03:50 +0800 Subject: [PATCH 10/15] sql update, to solve the problem that the label cannot be displayed after the model is run Signed-off-by: fanyinbo <1553199396@qq.com> --- deploy/mysql/migration/V2__Init_data.sql | 158 +++++++++++------------ 1 file changed, 79 insertions(+), 79 deletions(-) diff --git a/deploy/mysql/migration/V2__Init_data.sql b/deploy/mysql/migration/V2__Init_data.sql index 28d7ffa0..807ec3f9 100644 --- a/deploy/mysql/migration/V2__Init_data.sql +++ b/deploy/mysql/migration/V2__Init_data.sql @@ -1,86 +1,86 @@ INSERT INTO `xtreme1`.`model`(`id`, `name`, `version`, `description`, `scenario`, `dataset_type`, `model_type`, `model_code`, `url`, `is_deleted`, `del_unique_key`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (1, 'Basic Lidar Object Detection11', 'v0.1.2', '

Basic Lidar Object Detection Model empowers you to detect the most common classes precisely and efficiently during lidar and lidar fusion annotation in Autonomous Vehicle Industry. 

•  BLOD is a hyper-based methodology invented, trained and maintained by Basic AI 

•  BLOD has been testified in more than 20TB production data. 

•  BLOD boosts your annotation speed by at least 26%

•  Try it for free now!

', '[\"Lidar\",\"Lidar fusion\",\"Autonomous Vehicle\",\"Object Detection\"]', 'LIDAR', 'DETECTION', 'LIDAR_DETECTION', 'http://point-cloud-object-detection:5000/pointCloud/recognition', b'0', 0, current_timestamp, 1, NULL, NULL); INSERT INTO `xtreme1`.`model`(`id`, `name`, `version`, `description`, `scenario`, `dataset_type`, `model_type`, `model_code`, `url`, `is_deleted`, `del_unique_key`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'COCO Object Detection', 'v0.1.0', '

\r\n The COCO Object Detection Model, trained on MS COCO dataset, empowers you to detect 80 common classes precisely and efficiently. It outputs both bounding boxes and classes.\r\n

\r\n

\r\n •  It saves your annotation edits by at least 41.3% in 80 COCO classes.\r\n

\r\n

\r\n •  It is extremely fast. Results can be obtained in a short time.\r\n

\r\n

\r\n •  It is highly expandable, which allows new models with new datasets and classes to be trained easily. Contact us to know more.\r\n

\r\n

\r\n •  Try it for FREE now!\r\n

', '[\"Common Objects Detection\"]', 'IMAGE', 'DETECTION', 'IMAGE_DETECTION', 'http://image-object-detection:5000/image/recognition ', b'0', 0, current_timestamp, 1, NULL, NULL); INSERT INTO `xtreme1`.`user`(`id`,`username`, `password`, `nickname`) VALUES (1,'admin@xtreme1.io', '$2a$10$0qk8vIkREsV6KYPeYJLU..C/JxJZc/ccfZIcEmFcnS8W9DtOD/y5K', 'admin'); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Person', 'PERSON', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bicycle', 'BICYCLE', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Person', 'person', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bicycle', 'bicycle', current_timestamp, 1, NULL, NULL); INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Car', 'CAR', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Motorcycle', 'MOTORCYCLE', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Airplane', 'AIRPLANE', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Train', 'TRAIN', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Truck', 'TRUCK', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Boat', 'BOAT', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Traffic Light', 'TRAFFIC LIGHT', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Fire Hydrant', 'FIRE HYDRANT', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Stop Sign', 'STOP SIGN', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Parking Meter', 'PARKING METER', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bench', 'BENCH', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bird', 'BIRD', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Cat', 'CAT', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Dog', 'DOG', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Horse', 'HORSE', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Sheep', 'SHEEP', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Cow', 'COW', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Elephant', 'ELEPHANT', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bear', 'BEAR', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Zebra', 'ZEBRA', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Giraffe', 'GIRAFFE', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Backpack', 'BACKPACK', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Umbrella', 'UMBRELLA', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Handbag', 'HANDBAG', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Tie', 'TIE', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Suitcase', 'SUITCASE', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Frisbee', 'FRISBEE', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Skis', 'SKIS', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Snowboard', 'SNOWBOARD', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Sports Ball', 'SPORTS BALL', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Kite', 'KITE', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Baseball Bat', 'BASEBALL BAT', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Baseball Glove', 'BASEBALL GLOVE', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Skateboard', 'SKATEBOARD', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Surfboard', 'SURFBOARD', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Tennis Racket', 'TENNIS RACKET', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bottle', 'BOTTLE', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Wine Glass', 'WINE GLASS', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Cup', 'CUP', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Fork', 'FORK', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Knife', 'KNIFE', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Spoon', 'SPOON', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bowl', 'BOWL', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Banana', 'BANANA', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Apple', 'APPLE', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Sandwich', 'SANDWICH', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Orange', 'ORANGE', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Broccoli', 'BROCCOLI', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Carrot', 'CARROT', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Hot Dog', 'HOT DOG', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Pizza', 'PIZZA', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Donut', 'DONUT', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Cake', 'CAKE', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Chair', 'CHAIR', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Couch', 'COUCH', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Potted Plant', 'POTTED PLANT', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bed', 'BED', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Dining Table', 'DINING TABLE', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Toilet', 'TOILET', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Tv', 'TV', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Laptop', 'LAPTOP', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Mouse', 'MOUSE', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Remote', 'REMOTE', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Keyboard', 'KEYBOARD', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Cell Phone', 'CELL PHONE', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Microwave', 'MICROWAVE', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Oven', 'OVEN', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Toaster', 'TOASTER', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Sink', 'SINK', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Refrigerator', 'REFRIGERATOR', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Book', 'BOOK', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Clock', 'CLOCK', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Vase', 'VASE', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Scissors', 'SCISSORS', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Teddy Bear', 'TEDDY BEAR', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Hair Drier', 'HAIR DRIER', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Toothbrush', 'TOOTHBRUSH', current_timestamp, 1, NULL, NULL); -INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bus', 'BUS', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Motorcycle', 'motorcycle', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Airplane', 'airplane', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Train', 'train', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Truck', 'truck', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Boat', 'boat', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Traffic Light', 'traffic light', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Fire Hydrant', 'fire hydrant', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Stop Sign', 'stop sign', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Parking Meter', 'parking meter', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bench', 'bench', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bird', 'bird', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Cat', 'cat', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Dog', 'dog', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Horse', 'horse', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Sheep', 'sheep', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Cow', 'cow', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Elephant', 'elephant', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bear', 'bear', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Zebra', 'zebra', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Giraffe', 'giraffe', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Backpack', 'backpack', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Umbrella', 'umbrella', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Handbag', 'handbag', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Tie', 'tie', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Suitcase', 'suitcase', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Frisbee', 'frisbee', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Skis', 'skis', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Snowboard', 'snowboard', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Sports Ball', 'sports ball', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Kite', 'kite', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Baseball Bat', 'baseball bat', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Baseball Glove', 'baseball glove', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Skateboard', 'skateboard', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Surfboard', 'surfboard', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Tennis Racket', 'tennis racket', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bottle', 'bottle', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Wine Glass', 'wine glass', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Cup', 'cup', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Fork', 'fork', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Knife', 'knife', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Spoon', 'spoon', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bowl', 'bowl', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Banana', 'banana', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Apple', 'apple', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Sandwich', 'sandwich', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Orange', 'orange', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Broccoli', 'broccoli', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Carrot', 'carrot', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Hot Dog', 'hot dog', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Pizza', 'pizza', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Donut', 'donut', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Cake', 'cake', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Chair', 'chair', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Couch', 'couch', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Potted Plant', 'potted plant', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bed', 'bed', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Dining Table', 'dining table', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Toilet', 'toilet', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Tv', 'tv', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Laptop', 'laptop', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Mouse', 'mouse', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Remote', 'remote', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Keyboard', 'keyboard', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Cell Phone', 'cell phone', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Microwave', 'microwave', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Oven', 'oven', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Toaster', 'toaster', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Sink', 'sink', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Refrigerator', 'refrigerator', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Book', 'book', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Clock', 'clock', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Vase', 'vase', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Scissors', 'scissors', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Teddy Bear', 'teddy bear', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Hair Drier', 'hair drier', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Toothbrush', 'toothbrush', current_timestamp, 1, NULL, NULL); +INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (2, 'Bus', 'bus', current_timestamp, 1, NULL, NULL); INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (1, 'Car', 'CAR', current_timestamp, 1, NULL, NULL); INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (1, 'Truck', 'TRUCK', current_timestamp, 1, NULL, NULL); INSERT INTO `xtreme1`.`model_class`(`model_id`, `name`, `code`, `created_at`, `created_by`, `updated_at`, `updated_by`) VALUES (1, 'Construction Vehicle', 'CONSTRUCTION_VEHICLE ', current_timestamp, 1, NULL, NULL); From ed398044d88c5c8209eb149c20b5329ad611bfb1 Mon Sep 17 00:00:00 2001 From: Jagger Wang Date: Wed, 30 Aug 2023 10:22:15 +0800 Subject: [PATCH 11/15] Update CI template --- .ops/.gitlab-ci.yml | 207 +------------------------------------------- 1 file changed, 3 insertions(+), 204 deletions(-) diff --git a/.ops/.gitlab-ci.yml b/.ops/.gitlab-ci.yml index a7a2c048..5102cb0d 100644 --- a/.ops/.gitlab-ci.yml +++ b/.ops/.gitlab-ci.yml @@ -1,208 +1,7 @@ -stages: - - build-package - - build-image - - deploy +include: + - project: 'basicai/xtreme1/common' + file: '/ci/template/xtreme1-app.yml' variables: APP_NAME: "xtreme1" APP_VERSION: "0.7.1" - - FRONTEND_PACKAGE_DIR: "dist" - BACKEND_PACKAGE_NAME: "${APP_NAME}-backend-${APP_VERSION}-SNAPSHOT.jar" - - FRONTEND_IMAGE_NAME: "$CI_REGISTRY_IMAGE/frontend" - BACKEND_IMAGE_NAME: "$CI_REGISTRY_IMAGE/backend" - - DOCKER_HUB_FRONTEND_IMAGE_NAME: "basicai/${APP_NAME}-frontend" - DOCKER_HUB_BACKEND_IMAGE_NAME: "basicai/${APP_NAME}-backend" - - KUBERNETES_NAMESPACE: "basicai-xtreme1" - -build-backend-package: - stage: build-package - tags: - - openjdk-11 - rules: - - if: $CI_COMMIT_BRANCH == "dev" || $CI_COMMIT_BRANCH == "main" - changes: - - .ops/* - - .ops/**/* - - backend/* - - backend/**/* - - if: $CI_COMMIT_TAG =~ /^v/ - variables: - MAVEN_OPTS: "-Dmaven.repo.local=$CI_PROJECT_DIR/backend/.m2/repository" - MAVEN_ARGS: "--batch-mode" - script: - - cd backend - - mvn $MAVEN_ARGS package - artifacts: - paths: - - backend/target/$BACKEND_PACKAGE_NAME - cache: - paths: - - backend/.m2/repository - -build-frontend-package: - stage: build-package - tags: - - nodejs-16 - rules: - - if: $CI_COMMIT_BRANCH == "dev" || $CI_COMMIT_BRANCH == "main" - changes: - - .ops/* - - .ops/**/* - - frontend/* - - frontend/**/* - - if: $CI_COMMIT_TAG =~ /^v/ - script: - - cd frontend/main - - npm install - - npm run build - - cd ../image-tool - - npm install - - npm run build - - cd ../pc-tool - - npm install - - npm run build - - cd ../text-tool - - npm install - - npm run build - artifacts: - paths: - - frontend/$FRONTEND_PACKAGE_DIR - cache: - paths: - - frontend/main/node_modules - - frontend/image-tool/node_modules - - frontend/pc-tool/node_modules - - frontend/text-tool/node_modules - -build-release-package: - stage: build-package - tags: - - ubuntu - rules: - - if: $CI_COMMIT_BRANCH == "dev" || $CI_COMMIT_BRANCH == "main" - changes: - - .ops/* - - .ops/**/* - - deploy/* - - deploy/**/* - - docker-compose.yml - - if: $CI_COMMIT_TAG =~ /^v/ - script: - - ls - artifacts: - name: "${APP_NAME}-${CI_COMMIT_REF_NAME}" - paths: - - deploy/ - - docker-compose.yml - -.build-image: - stage: build-image - tags: - - docker - variables: - DOCKER_HOST: tcp://docker:2376 - DOCKER_TLS_CERTDIR: "/certs" - DOCKER_TLS_VERIFY: 1 - DOCKER_CERT_PATH: "$DOCKER_TLS_CERTDIR/client" - services: - - docker:20-dind - before_script: - - until docker info; do sleep 1; done - - docker login -u $CI_DEPLOY_USER -p $CI_DEPLOY_PASSWORD $CI_REGISTRY - - docker login -u $DOCKER_HUB_REGISTRY_USER -p $DOCKER_HUB_REGISTRY_PASS - after_script: - - cd $WORKING_DIR - - docker pull $IMAGE_NAME:latest || true - - docker build --cache-from $IMAGE_NAME:latest -t $IMAGE_NAME:$CI_COMMIT_REF_NAME -t $IMAGE_NAME:$CI_COMMIT_SHORT_SHA -t $IMAGE_NAME:latest . - - docker push $IMAGE_NAME:$CI_COMMIT_REF_NAME - - docker push $IMAGE_NAME:$CI_COMMIT_SHORT_SHA - - docker push $IMAGE_NAME:latest - # Push main and tag image to Docker Hub. - # - if [[ $CI_COMMIT_REF_NAME == main ]]; then docker tag $IMAGE_NAME:$CI_COMMIT_REF_NAME $DOCKER_HUB_IMAGE_NAME:latest; docker push $DOCKER_HUB_IMAGE_NAME:latest; fi - # - if [[ $CI_COMMIT_REF_NAME == v* ]]; then docker tag $IMAGE_NAME:$CI_COMMIT_REF_NAME $DOCKER_HUB_IMAGE_NAME:$CI_COMMIT_REF_NAME; docker push $DOCKER_HUB_IMAGE_NAME:$CI_COMMIT_REF_NAME; fi - -build-backend-image: - extends: .build-image - rules: - - if: $CI_COMMIT_BRANCH == "dev" || $CI_COMMIT_BRANCH == "main" - changes: - - .ops/* - - .ops/**/* - - backend/* - - backend/**/* - - if: $CI_COMMIT_TAG =~ /^v/ - variables: - WORKING_DIR: backend - IMAGE_NAME: $BACKEND_IMAGE_NAME - DOCKER_HUB_IMAGE_NAME: $DOCKER_HUB_BACKEND_IMAGE_NAME - script: - - cd $WORKING_DIR - - cp ../.ops/backend.dockerfile ./Dockerfile - - cp ../.ops/backend.dockerignore ./.dockerignore - - sed -i 's/$BACKEND_PACKAGE_NAME/'"$BACKEND_PACKAGE_NAME"'/g' Dockerfile - -build-frontend-image: - extends: .build-image - rules: - - if: $CI_COMMIT_BRANCH == "dev" || $CI_COMMIT_BRANCH == "main" - changes: - - .ops/* - - .ops/**/* - - frontend/* - - frontend/**/* - - if: $CI_COMMIT_TAG =~ /^v/ - variables: - WORKING_DIR: frontend - IMAGE_NAME: $FRONTEND_IMAGE_NAME - DOCKER_HUB_IMAGE_NAME: $DOCKER_HUB_FRONTEND_IMAGE_NAME - script: - - cd $WORKING_DIR - - cp ../.ops/frontend.dockerfile ./Dockerfile - - cp ../.ops/frontend.dockerignore ./.dockerignore - - sed -i 's/$FRONTEND_PACKAGE_DIR/'"$FRONTEND_PACKAGE_DIR"'/g' Dockerfile - -.deploy: - stage: deploy - tags: - - kubectl - before_script: - - cd .ops/$ENV - - sed -i 's/$APP_NAME/'"$APP_NAME"'/g' $DEPLOYMENT - - sed -i 's/$APP_VERSION/'"$APP_VERSION"'/g' $DEPLOYMENT - - sed -i 's/$CI_COMMIT_SHORT_SHA/'"$CI_COMMIT_SHORT_SHA"'/g' $DEPLOYMENT - -deploy-backend-to-alidev: - extends: .deploy - rules: - - if: $CI_COMMIT_BRANCH == "dev" - changes: - - .ops/* - - .ops/**/* - - backend/* - - backend/**/* - variables: - ENV: alidev - DEPLOYMENT: backend-deployment.yml - script: - - sed -i 's|$BACKEND_IMAGE_NAME|'"$BACKEND_IMAGE_NAME"'|g' $DEPLOYMENT - - kubectl apply -f $DEPLOYMENT -n $KUBERNETES_NAMESPACE --kubeconfig=$KUBECONFIG_ALIYUN_DEVELOPMENT - -deploy-frontend-to-alidev: - extends: .deploy - rules: - - if: $CI_COMMIT_BRANCH == "dev" - changes: - - .ops/* - - .ops/**/* - - frontend/* - - frontend/**/* - variables: - ENV: alidev - DEPLOYMENT: frontend-deployment.yml - script: - - sed -i 's|$FRONTEND_IMAGE_NAME|'"$FRONTEND_IMAGE_NAME"'|g' $DEPLOYMENT - - kubectl apply -f $DEPLOYMENT -n $KUBERNETES_NAMESPACE --kubeconfig=$KUBECONFIG_ALIYUN_DEVELOPMENT From 02f7f9ae9d4bfe3ab717bf9d5d04114a1f99cc7f Mon Sep 17 00:00:00 2001 From: Jagger Wang Date: Wed, 30 Aug 2023 10:28:06 +0800 Subject: [PATCH 12/15] Update CI --- .ops/alidev/backend-deployment.yml | 2 +- .ops/alidev/frontend-deployment.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.ops/alidev/backend-deployment.yml b/.ops/alidev/backend-deployment.yml index d378813c..0bac6f1c 100644 --- a/.ops/alidev/backend-deployment.yml +++ b/.ops/alidev/backend-deployment.yml @@ -22,7 +22,7 @@ spec: - name: basicai-registry containers: - name: backend - image: $BACKEND_IMAGE_NAME:$CI_COMMIT_SHORT_SHA + image: $BACKEND_IMAGE env: - name: JAVA_OPTS value: "-XX:InitialRAMPercentage=20.0 -XX:MinRAMPercentage=80.0 -XX:MaxRAMPercentage=80.0 -XshowSettings:vm" diff --git a/.ops/alidev/frontend-deployment.yml b/.ops/alidev/frontend-deployment.yml index 4e7dde0d..eb7fd498 100644 --- a/.ops/alidev/frontend-deployment.yml +++ b/.ops/alidev/frontend-deployment.yml @@ -22,7 +22,7 @@ spec: - name: basicai-registry containers: - name: frontend - image: $FRONTEND_IMAGE_NAME:$CI_COMMIT_SHORT_SHA + image: $FRONTEND_IMAGE resources: requests: memory: 200Mi From d31b78cd244282635a6d8ac7d2de6921938d06f3 Mon Sep 17 00:00:00 2001 From: Jagger Wang Date: Wed, 30 Aug 2023 17:00:04 +0800 Subject: [PATCH 13/15] Update CI --- .ops/{backend.dockerignore => backend.Dockerfile.dockerignore} | 0 .ops/{frontend.dockerignore => frontend.Dockerfile.dockerignore} | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename .ops/{backend.dockerignore => backend.Dockerfile.dockerignore} (100%) rename .ops/{frontend.dockerignore => frontend.Dockerfile.dockerignore} (100%) diff --git a/.ops/backend.dockerignore b/.ops/backend.Dockerfile.dockerignore similarity index 100% rename from .ops/backend.dockerignore rename to .ops/backend.Dockerfile.dockerignore diff --git a/.ops/frontend.dockerignore b/.ops/frontend.Dockerfile.dockerignore similarity index 100% rename from .ops/frontend.dockerignore rename to .ops/frontend.Dockerfile.dockerignore From 59ba96b11d8058f17b666093f77bc9e8ad63b652 Mon Sep 17 00:00:00 2001 From: Jagger Wang Date: Wed, 30 Aug 2023 17:26:50 +0800 Subject: [PATCH 14/15] Update CI --- .ops/{backend.dockerfile => backend.Dockerfile} | 0 .ops/{frontend.dockerfile => frontend.Dockerfile} | 0 .ops/image-object-detection.dockerfile | 12 ------------ .ops/image-object-detection.dockerignore | 1 - 4 files changed, 13 deletions(-) rename .ops/{backend.dockerfile => backend.Dockerfile} (100%) rename .ops/{frontend.dockerfile => frontend.Dockerfile} (100%) delete mode 100644 .ops/image-object-detection.dockerfile delete mode 100644 .ops/image-object-detection.dockerignore diff --git a/.ops/backend.dockerfile b/.ops/backend.Dockerfile similarity index 100% rename from .ops/backend.dockerfile rename to .ops/backend.Dockerfile diff --git a/.ops/frontend.dockerfile b/.ops/frontend.Dockerfile similarity index 100% rename from .ops/frontend.dockerfile rename to .ops/frontend.Dockerfile diff --git a/.ops/image-object-detection.dockerfile b/.ops/image-object-detection.dockerfile deleted file mode 100644 index 1a08e98c..00000000 --- a/.ops/image-object-detection.dockerfile +++ /dev/null @@ -1,12 +0,0 @@ -FROM python:3.10 - -WORKDIR /app - -ADD ./requirements.txt . -RUN pip install -r requirements.txt - -ADD . . - -EXPOSE 5000 - -CMD flask run --host=0.0.0.0 diff --git a/.ops/image-object-detection.dockerignore b/.ops/image-object-detection.dockerignore deleted file mode 100644 index 0eaf995b..00000000 --- a/.ops/image-object-detection.dockerignore +++ /dev/null @@ -1 +0,0 @@ -# Override for GitLab CI \ No newline at end of file From d03335e37d77ddb21fc293606f7866d45ca0bf6a Mon Sep 17 00:00:00 2001 From: guhao Date: Sun, 8 Oct 2023 15:22:44 +0800 Subject: [PATCH 15/15] fix: token bug --- .../src/business/chengdu/hook/useToken.ts | 12 +++++++----- frontend/pc-tool/src/hook/useToken.ts | 16 ++++++++-------- frontend/text-tool/src/hook/useToken.ts | 6 +++--- 3 files changed, 18 insertions(+), 16 deletions(-) diff --git a/frontend/image-tool/src/business/chengdu/hook/useToken.ts b/frontend/image-tool/src/business/chengdu/hook/useToken.ts index b1290a80..21ad0371 100644 --- a/frontend/image-tool/src/business/chengdu/hook/useToken.ts +++ b/frontend/image-tool/src/business/chengdu/hook/useToken.ts @@ -3,15 +3,17 @@ import Cookies from 'js-cookie'; window.Cookies = Cookies; let hostname = document.location.hostname || document.location.host; -let dot = hostname.indexOf('.'); -let parentHost = isIp(hostname) ? hostname : hostname.substring(dot + 1); +// let dot = hostname.indexOf('.'); +// let parentHost = isIp(hostname) ? hostname : hostname.substring(dot + 1); export default function useToken() { - let token = Cookies.get(`${parentHost} token`); + let token = Cookies.get(`${hostname} token`); token = token ? `Bearer ${token}` : ''; return token; } -function isIp(str:string = ''){ - return /((25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))/.test(str); +function isIp(str: string = '') { + return /((25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))/.test( + str, + ); } diff --git a/frontend/pc-tool/src/hook/useToken.ts b/frontend/pc-tool/src/hook/useToken.ts index 7f725bf4..21ad0371 100644 --- a/frontend/pc-tool/src/hook/useToken.ts +++ b/frontend/pc-tool/src/hook/useToken.ts @@ -3,17 +3,17 @@ import Cookies from 'js-cookie'; window.Cookies = Cookies; let hostname = document.location.hostname || document.location.host; -let dot = hostname.indexOf('.'); -let parentHost = isIp(hostname) ? hostname : hostname.substring(dot + 1); +// let dot = hostname.indexOf('.'); +// let parentHost = isIp(hostname) ? hostname : hostname.substring(dot + 1); export default function useToken() { - let token = Cookies.get(`${parentHost} token`); + let token = Cookies.get(`${hostname} token`); token = token ? `Bearer ${token}` : ''; return token; } - - -function isIp(str:string = ''){ - return /((25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))/.test(str); -} \ No newline at end of file +function isIp(str: string = '') { + return /((25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))/.test( + str, + ); +} diff --git a/frontend/text-tool/src/hook/useToken.ts b/frontend/text-tool/src/hook/useToken.ts index 7f725bf4..5bb1c899 100644 --- a/frontend/text-tool/src/hook/useToken.ts +++ b/frontend/text-tool/src/hook/useToken.ts @@ -3,11 +3,11 @@ import Cookies from 'js-cookie'; window.Cookies = Cookies; let hostname = document.location.hostname || document.location.host; -let dot = hostname.indexOf('.'); -let parentHost = isIp(hostname) ? hostname : hostname.substring(dot + 1); +// let dot = hostname.indexOf('.'); +// let parentHost = isIp(hostname) ? hostname : hostname.substring(dot + 1); export default function useToken() { - let token = Cookies.get(`${parentHost} token`); + let token = Cookies.get(`${hostname} token`); token = token ? `Bearer ${token}` : ''; return token; }