From 05af48e8fe49321aa4e15faae7f79d2692ef5037 Mon Sep 17 00:00:00 2001 From: risadmin_prod Date: Fri, 18 Oct 2024 03:13:55 +0000 Subject: [PATCH] deployment_files --- .../src/main/resources/application.properties | 192 ++- .../src/environments/environment.prod.ts | 8 +- .../src/environments/environment.ts | 7 +- .../prod18oct-back-b/deployment/Dockerfile | 33 + sureops/prod18oct-back-b/deployment/build.sh | 37 + sureops/prod18oct-db-d/deployment/Dockerfile | 18 + sureops/prod18oct-db-d/deployment/build.sh | 40 + .../deployment/conf.d/config.ini | 36 + sureops/prod18oct-db-d/deployment/dump.sql | 1173 +++++++++++++++++ .../prod18oct-front-f/deployment/Dockerfile | 30 + sureops/prod18oct-front-f/deployment/build.sh | 71 + 11 files changed, 1545 insertions(+), 100 deletions(-) create mode 100755 sureops/prod18oct-back-b/deployment/Dockerfile create mode 100755 sureops/prod18oct-back-b/deployment/build.sh create mode 100755 sureops/prod18oct-db-d/deployment/Dockerfile create mode 100755 sureops/prod18oct-db-d/deployment/build.sh create mode 100755 sureops/prod18oct-db-d/deployment/conf.d/config.ini create mode 100755 sureops/prod18oct-db-d/deployment/dump.sql create mode 100755 sureops/prod18oct-front-f/deployment/Dockerfile create mode 100755 sureops/prod18oct-front-f/deployment/build.sh diff --git a/prod18oct-back-b/authsec_springboot/backend/src/main/resources/application.properties b/prod18oct-back-b/authsec_springboot/backend/src/main/resources/application.properties index 09e8dbf..4be8778 100644 --- a/prod18oct-back-b/authsec_springboot/backend/src/main/resources/application.properties +++ b/prod18oct-back-b/authsec_springboot/backend/src/main/resources/application.properties @@ -1,97 +1,95 @@ -# File is used by sprigboot -server.contextPath=/* -server.port=9292 -spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,classpath:/webui/ - -spring.banner.location=classpath:banner_txt.txt - -#Temporary disable security to enable it remove this -#security.ignored=/** - -springfox.documentation.swagger.v2.path=/api-docs -spring.jackson.date-format=yyyy-MM-dd - - - -System.Net.ServicePointManager.Expect100Continue = false; - -#spring.jpa.hibernate.ddl-auto=none -#spring.jpa.hibernate.ddl-auto=update -#spring.datasource.continue-on-error=false - -# **** MY SQL DATABASE CONNECTION **** - -spring.datasource.url=jdbc:mysql://realnet.cdas4e08uugj.us-east-1.rds.amazonaws.com:3306/realnet_CNSBENEW?createDatabaseIfNotExist=true -spring.datasource.username=cnsdev -spring.datasource.password=cnsdev2407 - -spring.datasource.driverClassName = com.mysql.cj.jdbc.Driver - -spring.jpa.hibernate.ddl-auto=update -spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5InnoDBDialect -# Prefix Path - -#spring.jpa.show-sql=true -spring.jpa.properties.hibernate.format_sql=true -spring.jpa.properties.hibernate.proc.param_null_passing=true - -# **********paytm dependency ****** -razorpay.api.key=rzp_test_xVnrBUjJWTEH0r -razorpay.api.secret=evTXkIFcgpVtiLa1P7M7CIox - -#***** MAIL SENDER -spring.mail.host=smtp.gmail.com -spring.mail.username=realitmailsender@gmail.com -spring.mail.password=epnmhzsccotnyozf -spring.mail.port=587 -#spring.mail.properties.mail.smtp.auth=true -spring.mail.properties.mail.smtp.starttls.enable=true -spring.mail.properties.mail.smtp.starttls.required=true - -# JACKSON -spring.jackson.serialization.FAIL_ON_EMPTY_BEANS=false - - -spring.mail.properties.mail.smtp.auth = true -spring.mail.properties.mail.smtp.socketFactory.port = 465 -spring.mail.properties.mail.smtp.socketFactory.class = javax.net.ssl.SSLSocketFactory -spring.mail.properties.mail.smtp.socketFactory.fallback = false - -#******* MULTIPART RESOLVER -spring.servlet.multipart.enabled=true -spring.servlet.multipart.max-file-size=100MB -spring.servlet.multipart.max-request-size=100MB - -#***************OAUTH2 SOCIAL LOGIN ********* -# Social login provider props -spring.security.oauth2.client.registration.google.clientId=437023664181-0lm0ipgip3qbhga4nd7o4128jv4g2nv9.apps.googleusercontent.com -spring.security.oauth2.client.registration.google.clientSecret=I1HPyUqdJ9UONu45W1_wwfww -spring.security.oauth2.client.registration.google.scope=profile, email - - -spring.security.oauth2.client.registration.linkedin.clientId= -spring.security.oauth2.client.registration.linkedin.clientSecret= -spring.security.oauth2.client.registration.linkedin.client-authentication-method=post -spring.security.oauth2.client.registration.linkedin.authorization-grant-type=authorization_code -spring.security.oauth2.client.registration.linkedin.scope=r_liteprofile, r_emailaddress -spring.security.oauth2.client.registration.linkedin.redirect-uri={baseUrl}/login/oauth2/code/{registrationId} -spring.security.oauth2.client.registration.linkedin.client-name=Linkedin -spring.security.oauth2.client.registration.linkedin.provider=linkedin -spring.security.oauth2.client.provider.linkedin.authorization-uri=https://www.linkedin.com/oauth/v2/authorization -spring.security.oauth2.client.provider.linkedin.token-uri=https://www.linkedin.com/oauth/v2/accessToken -spring.security.oauth2.client.provider.linkedin.user-info-uri=https://api.linkedin.com/v2/me -spring.security.oauth2.client.provider.linkedin.user-name-attribute=id -linkedin.email-address-uri=https://api.linkedin.com/v2/emailAddress?q=members&projection=(elements*(handle~)) -app.auth.tokenSecret=926D96C90030DD58429D2751AC1BDBBC -app.auth.tokenExpirationMsec=864000000 - # After successfully authenticating with the OAuth2 Provider, - # we'll be generating an auth token for the user and sending the token to the - # redirectUri mentioned by the frontend client in the /oauth2/authorization request. - # We're not using cookies because they won't work well in mobile clients. -app.oauth2.authorizedRedirectUris=http://localhost:8081/oauth2/redirect,myandroidapp://oauth2/redirect,myiosapp://oauth2/redirect - - -projectPath=@project.basedir@ -angularProjectPath=@project.basedir@/webui - - +# File is used by sprigboot +server.contextPath=/* +server.port=9292 +spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,classpath:/webui/ + +spring.banner.location=classpath:banner_txt.txt + +#Temporary disable security to enable it remove this +#security.ignored=/** + +springfox.documentation.swagger.v2.path=/api-docs +spring.jackson.date-format=yyyy-MM-dd + + + +System.Net.ServicePointManager.Expect100Continue = false; + +#spring.jpa.hibernate.ddl-auto=none +#spring.jpa.hibernate.ddl-auto=update +#spring.datasource.continue-on-error=false + +# **** MY SQL DATABASE CONNECTION **** + +spring.datasource.url=jdbc:mysql://prod18oct-db-d:3306/db?createDatabaseIfNotExist=true +spring.datasource.username=root +spring.datasource.password=root + +spring.datasource.driverClassName = com.mysql.cj.jdbc.Driver + +spring.jpa.hibernate.ddl-auto=update +spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5InnoDBDialect +server.servlet.contextPath=/back + +#spring.jpa.show-sql=true +spring.jpa.properties.hibernate.format_sql=true +spring.jpa.properties.hibernate.proc.param_null_passing=true + +# **********paytm dependency ****** +razorpay.api.key=rzp_test_xVnrBUjJWTEH0r +razorpay.api.secret=evTXkIFcgpVtiLa1P7M7CIox + +#***** MAIL SENDER +spring.mail.host=smtp.gmail.com +spring.mail.username=realitmailsender@gmail.com +spring.mail.password=epnmhzsccotnyozf +spring.mail.port=587 +#spring.mail.properties.mail.smtp.auth=true +spring.mail.properties.mail.smtp.starttls.enable=true +spring.mail.properties.mail.smtp.starttls.required=true + +# JACKSON +spring.jackson.serialization.FAIL_ON_EMPTY_BEANS=false + + +spring.mail.properties.mail.smtp.auth = true +spring.mail.properties.mail.smtp.socketFactory.port = 465 +spring.mail.properties.mail.smtp.socketFactory.class = javax.net.ssl.SSLSocketFactory +spring.mail.properties.mail.smtp.socketFactory.fallback = false + +#******* MULTIPART RESOLVER +spring.servlet.multipart.enabled=true +spring.servlet.multipart.max-file-size=100MB +spring.servlet.multipart.max-request-size=100MB + +#***************OAUTH2 SOCIAL LOGIN ********* +# Social login provider props +spring.security.oauth2.client.registration.google.clientId=437023664181-0lm0ipgip3qbhga4nd7o4128jv4g2nv9.apps.googleusercontent.com +spring.security.oauth2.client.registration.google.clientSecret=I1HPyUqdJ9UONu45W1_wwfww +spring.security.oauth2.client.registration.google.scope=profile, email + + +spring.security.oauth2.client.registration.linkedin.clientId= +spring.security.oauth2.client.registration.linkedin.clientSecret= +spring.security.oauth2.client.registration.linkedin.client-authentication-method=post +spring.security.oauth2.client.registration.linkedin.authorization-grant-type=authorization_code +spring.security.oauth2.client.registration.linkedin.scope=r_liteprofile, r_emailaddress +spring.security.oauth2.client.registration.linkedin.redirect-uri={baseUrl}/login/oauth2/code/{registrationId} +spring.security.oauth2.client.registration.linkedin.client-name=Linkedin +spring.security.oauth2.client.registration.linkedin.provider=linkedin +spring.security.oauth2.client.provider.linkedin.authorization-uri=https://www.linkedin.com/oauth/v2/authorization +spring.security.oauth2.client.provider.linkedin.token-uri=https://www.linkedin.com/oauth/v2/accessToken +spring.security.oauth2.client.provider.linkedin.user-info-uri=https://api.linkedin.com/v2/me +spring.security.oauth2.client.provider.linkedin.user-name-attribute=id +linkedin.email-address-uri=https://api.linkedin.com/v2/emailAddress?q=members&projection=(elements*(handle~)) +app.auth.tokenSecret=926D96C90030DD58429D2751AC1BDBBC +app.auth.tokenExpirationMsec=864000000 + # After successfully authenticating with the OAuth2 Provider, + # we'll be generating an auth token for the user and sending the token to the + # redirectUri mentioned by the frontend client in the /oauth2/authorization request. + # We're not using cookies because they won't work well in mobile clients. +app.oauth2.authorizedRedirectUris=http://localhost:8081/oauth2/redirect,myandroidapp://oauth2/redirect,myiosapp://oauth2/redirect + + +projectPath=@project.basedir@ +angularProjectPath=@project.basedir@/webui \ No newline at end of file diff --git a/prod18oct-front-f/authsec_angular/frontend/angular-clarity-master/src/environments/environment.prod.ts b/prod18oct-front-f/authsec_angular/frontend/angular-clarity-master/src/environments/environment.prod.ts index f038c84..5745acd 100644 --- a/prod18oct-front-f/authsec_angular/frontend/angular-clarity-master/src/environments/environment.prod.ts +++ b/prod18oct-front-f/authsec_angular/frontend/angular-clarity-master/src/environments/environment.prod.ts @@ -11,7 +11,11 @@ export const environment = { captchaSiteKey: '6LfrdSUpAAAAALkYDmnvdX3GLLCArgPWNHfXasjP', //Deployment configs - + + backport:'30669/prod18oct25126/back', + backendUrl:'/prod18oct25126/back', + }; + + -}; diff --git a/prod18oct-front-f/authsec_angular/frontend/angular-clarity-master/src/environments/environment.ts b/prod18oct-front-f/authsec_angular/frontend/angular-clarity-master/src/environments/environment.ts index 6bfca3d..f7a0529 100644 --- a/prod18oct-front-f/authsec_angular/frontend/angular-clarity-master/src/environments/environment.ts +++ b/prod18oct-front-f/authsec_angular/frontend/angular-clarity-master/src/environments/environment.ts @@ -12,5 +12,10 @@ export const environment = { //Deployment configs + backport:'30669/prod18oct25126/back', + backendUrl:'/prod18oct25126/back', + }; + + + -}; diff --git a/sureops/prod18oct-back-b/deployment/Dockerfile b/sureops/prod18oct-back-b/deployment/Dockerfile new file mode 100755 index 0000000..383ea9f --- /dev/null +++ b/sureops/prod18oct-back-b/deployment/Dockerfile @@ -0,0 +1,33 @@ +#pulling from github + +FROM alpine/git:v2.30.1 AS code +ARG BUILD_ID +ARG GITEA_USER +ARG GITEA_PASS +RUN echo $BUILD_ID +LABEL stage=builder +LABEL build_id=$BUILD_ID +RUN mkdir repo +WORKDIR /repo +RUN git clone http://$GITEA_USER:$GITEA_PASS@git.io8.dev/risadmin_prod/prod18oct.git +#************* Stage 2 - Maven Build ************** +FROM maven:3.9.3 AS mvn +LABEL stage=builder +LABEL build=$BUILD_ID +WORKDIR /workspace/app +COPY --from=code /repo/prod18oct/prod18oct-back-b/authsec_springboot/backend/ /workspace/app +RUN mkdir builder/ +RUN mvn install -Dmaven.test.skip + +#******** Stage 3 - Docker Build ********* + +#FROM java:8-jdk-alpine +FROM openjdk:8-jdk-alpine +LABEL stage=app +LABEL build=$BUILD_ID +RUN mkdir /usr/app +COPY --from=mvn /workspace/app/target/*jar /usr/app/gtest.jar +RUN mkdir /usr/app/sureops +WORKDIR /usr/app +EXPOSE 9292 +ENTRYPOINT ["java", "-jar", "gtest.jar"] \ No newline at end of file diff --git a/sureops/prod18oct-back-b/deployment/build.sh b/sureops/prod18oct-back-b/deployment/build.sh new file mode 100755 index 0000000..0607785 --- /dev/null +++ b/sureops/prod18oct-back-b/deployment/build.sh @@ -0,0 +1,37 @@ +#!/bin/bash +PRJ_NAME=prod18oct-back-b +DOCKER_USER=risadmin_prod +DOCKER_PASS=$(sv get risadmin_prod dockerPassword) +DOCKER_URL=git.io8.dev +#******************** +REPO_NAME=prod18oct +GITEA_USER=risadmin_prod +GITEA_PASS=$(sv get risadmin_prod dockerPassword) +GITEA_EMAIL=ganeshk@dekatc.com +GIT_BRANCH=main +DOMAIN=git.io8.dev +#WEB-URL-PORT +CONT_PORT=3306 +TARGET_PORT=9292 +PATH_DIR=/data/25126_1729221207694/sureops_deploy/prod18oct/sureops/prod18oct-back-b/deployment +#********************** +cd $PATH_DIR +DOCKER_TAG=1.0 +#docker system prune -f +# Stop any existing containers with the same name and ports +docker stop $PRJ_NAME >/dev/null 2>&1 || true +docker rm $PRJ_NAME >/dev/null 2>&1 || true + +# Build and push the Docker image +DOCKER_BUILDKIT=0 docker build --no-cache -t $DOCKER_URL/$DOCKER_USER/$PRJ_NAME:$DOCKER_TAG --build-arg $GITEA_PASS --build-arg $GITEA_USER . +docker login --username=$DOCKER_USER --password=$DOCKER_PASS $DOCKER_URL +docker tag $DOCKER_URL/$DOCKER_USER/$PRJ_NAME:$DOCKER_TAG $DOCKER_URL/$DOCKER_USER/$PRJ_NAME +docker push $DOCKER_URL/$DOCKER_USER/$PRJ_NAME +docker push $DOCKER_URL/$DOCKER_USER/$PRJ_NAME:$DOCKER_TAG +docker logout $DOCKER_URL +#docker system prune -f +# Deploy the image in a Docker container +#docker run -d --name $PRJ_NAME -p $CONT_PORT:$TARGET_PORT $DOCKER_USER/$PRJ_NAME:$DOCKER_TAG + +curl -X GET "https://ops.io8.dev/sureops/suredocker/updaterepo?repoName=$REPO_NAME&packageName=$PRJ_NAME" + diff --git a/sureops/prod18oct-db-d/deployment/Dockerfile b/sureops/prod18oct-db-d/deployment/Dockerfile new file mode 100755 index 0000000..9bcf1f4 --- /dev/null +++ b/sureops/prod18oct-db-d/deployment/Dockerfile @@ -0,0 +1,18 @@ + #pulling from github + # FROM alpine/git:v2.30.1 AS code + #ARG BUILD_ID + #RUN echo $BUILD_ID + #LABEL stage=builder + #LABEL build_id=$BUILD_ID + #RUN mkdir repo + #WORKDIR /repo + #RUN git clone http://risadmin:admin1234@try.gitea.io/risadmin/a_madhurtest1.git + #******** Stage 2 - Mysql Build********* + FROM mysql:8.0 + ENV MYSQL_ROOT_PASSWORD root + COPY conf.d /etc/mysql/conf.d + COPY *.sql /docker-entrypoint-initdb.d/ + #COPY --from=code /repo//data/25126_1729221207694/sureops_deploy/prod18oct/prod18oct-db-d/authsec_mysql/mysql/wf_table/backend/src/main/resources/ . + VOLUME /var/lib/mysql + EXPOSE 3306 + CMD ["mysqld"] \ No newline at end of file diff --git a/sureops/prod18oct-db-d/deployment/build.sh b/sureops/prod18oct-db-d/deployment/build.sh new file mode 100755 index 0000000..54db60a --- /dev/null +++ b/sureops/prod18oct-db-d/deployment/build.sh @@ -0,0 +1,40 @@ +#!/bin/bash +PRJ_NAME=prod18oct-db-d +DOCKER_USER=risadmin_prod +DOCKER_PASS=$(sv get risadmin_prod dockerPassword) +DOCKER_URL=git.io8.dev +REPO_NAME=prod18oct +GITEA_USER=risadmin_prod +GITEA_PASS=$(sv get risadmin_prod dockerPassword) +GITEA_EMAIL=ganeshk@dekatc.com +GIT_BRANCH=main +DOMAIN=git.io8.dev +CONT_PORT=3306 +TARGET_PORT=3306 +PATH_DIR=/data/25126_1729221207694/sureops_deploy/prod18oct/sureops/prod18oct-db-d/deployment + +#********************** +cd $PATH_DIR +cp /data/25126_1729221207694/sureops_deploy/prod18oct/prod18oct-db-d/authsec_mysql/mysql/wf_table/*.sql . +pwd +DOCKER_TAG=1.0 +# Stop any existing containers with the same name and ports +docker stop $PRJ_NAME >/dev/null 2>&1 || true +docker rm $PRJ_NAME >/dev/null 2>&1 || true + +# Build and push the Docker image +DOCKER_BUILDKIT=0 docker build -t $DOCKER_URL/$DOCKER_USER/$PRJ_NAME:$DOCKER_TAG --build-arg $GITEA_PASS --build-arg $GITEA_USER . +docker login --username=$DOCKER_USER --password=$DOCKER_PASS $DOCKER_URL +docker tag $DOCKER_URL/$DOCKER_USER/$PRJ_NAME:$DOCKER_TAG $DOCKER_URL/$DOCKER_USER/$PRJ_NAME +docker push $DOCKER_URL/$DOCKER_USER/$PRJ_NAME +docker push $DOCKER_URL/$DOCKER_USER/$PRJ_NAME:$DOCKER_TAG +IMAGE_ID=$(docker images --format "{{.ID}}" $IMAGE_NAME) +docker logout $DOCKER_URL +#docker system prune -f +# Deploy the image in a Docker container +#docker run -d --name $PRJ_NAME -p $CONT_PORT:$TARGET_PORT $DOCKER_USER/$PRJ_NAME:$DOCKER_TAG +#echo "Image $IMAGE_ID deployed in container $PRJ_NAME" +curl -X GET "https://ops.io8.dev/sureops/suredocker/updaterepo?repoName=$REPO_NAME&packageName=$PRJ_NAME" +docker volume prune -f +docker network prune -f +docker image prune -f --filter "dangling=true \ No newline at end of file diff --git a/sureops/prod18oct-db-d/deployment/conf.d/config.ini b/sureops/prod18oct-db-d/deployment/conf.d/config.ini new file mode 100755 index 0000000..44f3379 --- /dev/null +++ b/sureops/prod18oct-db-d/deployment/conf.d/config.ini @@ -0,0 +1,36 @@ +# For advice on how to change settings please see +# http://dev.mysql.com/doc/refman/8.0/en/server-configuration-defaults.html + +[mysqld] +# +# Remove leading # and set to the amount of RAM for the most important data +# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%. +# innodb_buffer_pool_size = 128M +# +# Remove leading # to turn on a very important data integrity option: logging +# changes to the binary log between backups. +# log_bin +# +# Remove leading # to set options mainly useful for reporting servers. +# The server defaults are faster for transactions and fast SELECTs. +# Adjust sizes as needed, experiment to find the optimal values. +# join_buffer_size = 128M +# sort_buffer_size = 2M +# read_rnd_buffer_size = 2M + +# Remove leading # to revert to previous value for default_authentication_plugin, +# this will increase compatibility with older clients. For background, see: +# https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_default_authentication_plugin +# default-authentication-plugin=mysql_native_password +skip-host-cache +skip-name-resolve +datadir=/var/lib/mysql +socket=/var/run/mysqld/mysqld.sock +secure-file-priv=/var/lib/mysql-files +user=mysql + +pid-file=/var/run/mysqld/mysqld.pid +[client] +socket=/var/run/mysqld/mysqld.sock + +!includedir /etc/mysql/conf.d/ \ No newline at end of file diff --git a/sureops/prod18oct-db-d/deployment/dump.sql b/sureops/prod18oct-db-d/deployment/dump.sql new file mode 100755 index 0000000..5d4f118 --- /dev/null +++ b/sureops/prod18oct-db-d/deployment/dump.sql @@ -0,0 +1,1173 @@ +CREATE SCHEMA `db`; +use db; + +-- +-- Table structure for table `accounts` +-- + +DROP TABLE IF EXISTS `accounts`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `accounts` ( + `id` bigint NOT NULL, + `companyname` varchar(255) DEFAULT NULL, + `email` varchar(255) DEFAULT NULL, + `managing_work` varchar(255) DEFAULT NULL, + `mobile` bigint DEFAULT NULL, + `name` varchar(255) DEFAULT NULL, + `pancard` varchar(255) DEFAULT NULL, + `password` varchar(255) DEFAULT NULL, + `working` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `accounts` +-- + +LOCK TABLES `accounts` WRITE; +/*!40000 ALTER TABLE `accounts` DISABLE KEYS */; +INSERT INTO `accounts` VALUES (1,'test','test@gmail.com','w',123456789,'kk','kk','test','w'); +/*!40000 ALTER TABLE `accounts` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `app_user_log` +-- + +DROP TABLE IF EXISTS `app_user_log`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `app_user_log` ( + `log_id` bigint NOT NULL, + `created_on` datetime DEFAULT NULL, + `generate_log` varchar(255) DEFAULT NULL, + `log_file_name` varchar(255) DEFAULT NULL, + `log_level` varchar(255) DEFAULT NULL, + `user_name` varchar(255) DEFAULT NULL, + PRIMARY KEY (`log_id`), + UNIQUE KEY `UK_tl3or0c0pxxdvigxponlgee18` (`user_name`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `app_user_log` +-- + +LOCK TABLES `app_user_log` WRITE; +/*!40000 ALTER TABLE `app_user_log` DISABLE KEYS */; +INSERT INTO `app_user_log` VALUES (1,'2023-06-09 17:39:20','Y','sysadmin1686312560.log','info','sysadmin'); +/*!40000 ALTER TABLE `app_user_log` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `app_user_log_sequence` +-- + +DROP TABLE IF EXISTS `app_user_log_sequence`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `app_user_log_sequence` ( + `next_val` bigint DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `app_user_log_sequence` +-- + +LOCK TABLES `app_user_log_sequence` WRITE; +/*!40000 ALTER TABLE `app_user_log_sequence` DISABLE KEYS */; +INSERT INTO `app_user_log_sequence` VALUES (2),(2),(2),(2),(2),(2),(2),(2),(2),(1); +/*!40000 ALTER TABLE `app_user_log_sequence` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `logs` +-- + +DROP TABLE IF EXISTS `logs`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `logs` ( + `user_id` bigint NOT NULL, + `dated` varchar(255) DEFAULT NULL, + `lavel` varchar(255) DEFAULT NULL, + `logger` varchar(255) DEFAULT NULL, + `message` varchar(255) DEFAULT NULL, + PRIMARY KEY (`user_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `logs` +-- + +LOCK TABLES `logs` WRITE; +/*!40000 ALTER TABLE `logs` DISABLE KEYS */; +/*!40000 ALTER TABLE `logs` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `role` +-- + +DROP TABLE IF EXISTS `role`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `role` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `description` varchar(255) DEFAULT NULL, + `name` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `role` +-- + +LOCK TABLES `role` WRITE; +/*!40000 ALTER TABLE `role` DISABLE KEYS */; +INSERT INTO `role` VALUES (1,'ADMIN','ROLE_ADMIN'),(2,'Developer','ROLE_Developer'),(3,'USER','ROLE_USER'),(5,'DEVEOPS','ROLE_DEVEOPS'); +/*!40000 ALTER TABLE `role` ENABLE KEYS */; +UNLOCK TABLES; + + + + +-- +-- Table structure for table `sec_menu_det` +-- + +DROP TABLE IF EXISTS `sec_menu_det`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sec_menu_det` ( + `menu_item_id` bigint NOT NULL AUTO_INCREMENT, + `created_at` datetime NOT NULL, + `updated_at` datetime NOT NULL, + `item_seq` bigint DEFAULT NULL, + `main_menu_action_name` varchar(255) DEFAULT NULL, + `main_menu_icon_name` varchar(255) DEFAULT NULL, + `menu_id` bigint DEFAULT NULL, + `menu_item_desc` varchar(255) DEFAULT NULL, + `module_name` varchar(255) DEFAULT NULL, + `status` varchar(255) DEFAULT NULL, + PRIMARY KEY (`menu_item_id`) +) ENGINE=InnoDB AUTO_INCREMENT=1602 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `sec_menu_det` +-- + +/*!40000 ALTER TABLE `sec_menu_det` DISABLE KEYS */; +INSERT INTO `sec_menu_det` VALUES (1116,'2023-01-25 10:25:50','2023-01-25 10:25:50',3000,'security','lock',0,'Security','sec3000','Enable'),(1117,'2023-01-25 10:42:02','2023-02-04 15:34:25',3010,'usermaintance',NULL,1116,'User Maintance','U1000','Enable'),(1118,'2023-01-25 11:12:27','2023-02-04 15:34:36',3020,'usergrpmaintance',NULL,1116,'User Group Maintance','U2000','Enable'),(1523,'2023-02-04 11:15:57','2023-02-04 15:34:45',3030,'menumaintance',NULL,1116,'Menu Maintance','M3000','Enable'),(1524,'2023-02-04 11:16:52','2023-02-04 15:34:54',3040,'menuaccess',NULL,1116,'Menu Access Control','MA4000','Enable'),(1525,'2023-02-04 11:17:31','2023-02-04 15:35:06',3050,'systemparameters',NULL,1116,'System Parameters','SP5000','Enable'),(1526,'2023-02-04 11:18:04','2023-02-04 15:35:14',3060,'accesstype',NULL,1116,'Access Type','A6000','Enable'),(1528,'2023-02-04 13:31:48','2023-02-04 15:33:02',1010,'incident-new',NULL,1527,'Incident','I1000','Enable'),(1529,'2023-02-04 13:33:03','2023-02-04 15:33:12',1020,'incident-overview',NULL,1527,'Overview','O2000','Enable'),(1530,'2023-02-04 13:34:42','2023-02-04 15:33:21',1030,'sureboard2',NULL,1527,'Issueboard','I3000','Enable'),(1531,'2023-02-04 13:35:27','2023-02-04 15:33:36',1040,'change-request',NULL,1527,'Change Request','C4000','Enable'),(1532,'2023-02-04 13:36:01','2023-02-10 02:25:13',1050,'problem-creation',NULL,1527,'Problem Request','P5000','Enable'),(1534,'2023-02-04 13:56:22','2023-02-04 15:34:07',2010,'Sr_priority2_t',NULL,1533,'Priority','P1000','Enable'),(1535,'2023-02-04 17:12:27','2023-02-04 17:12:27',2020,'Sr_urgency_t',NULL,1533,'Urgency','Su2000','Enable'),(1536,'2023-02-04 17:13:22','2023-02-04 17:13:22',2030,'Sr_impact2_t',NULL,1533,'Impact','Sm3000','Enable'),(1537,'2023-02-04 17:14:01','2023-02-04 17:14:01',2040,'Sr_category2_t',NULL,1533,'Category','Sc4000','Enable'),(1538,'2023-02-04 17:14:31','2023-02-04 17:14:31',2050,'Sr_State_t',NULL,1533,'State','S5000','Enable'),(1539,'2023-02-04 17:15:12','2023-02-09 13:25:27',2070,'Sr_customer_t',NULL,1533,'Customer','c7000','Enable'),(1540,'2023-02-04 17:16:23','2023-02-14 13:15:27',2060,'Sr_Contact_type_t',NULL,1533,'Contact','C6000','Enable'),(1541,'2023-02-04 17:17:22','2023-02-04 17:17:22',2080,'Sr_handler_t',NULL,1533,'Handler','H8000','Enable'),(1543,'2023-02-08 15:07:14','2023-03-01 05:51:41',4010,'sequence',NULL,1542,'Define Sequence','SE1000','Enable'),(1544,'2023-02-16 10:14:33','2023-02-16 10:14:33',4020,'bugtracker',NULL,1542,'Bug Tracker','B1000','Enable'),(1545,'2023-02-16 11:00:25','2023-02-16 11:00:25',4030,'datamanagemennt',NULL,1542,'Data Management','M3000','Enable'),(1550,'2023-03-01 06:10:35','2023-03-01 06:10:35',2090,'projects',NULL,1533,'Projects','P2000','Enable'),(1551,'2023-03-01 07:14:27','2023-03-01 07:14:27',4040,'applysequence',NULL,1542,'Apply Sequence','As3000','Enable'),(1552,'2023-06-05 14:14:21','2023-06-05 14:14:21',2000,'dash','dashboard',0,'dashboard','dashboard','Enable'),(1553,'2023-06-05 14:16:48','2023-06-17 03:53:20',1000,'DashboardTesting',NULL,1552,'dashboard1','dashboard','Enable'),(1554,'2023-06-11 10:55:12','2023-06-11 10:55:12',2000,'Dashtest',NULL,1552,'das2','2000','Enable'),(1555,'2023-10-10 12:50:55','2024-01-19 14:33:06',1000,'project','flag',0,'project','project','Enable'),(1556,'2023-10-11 11:03:39','2023-10-11 11:03:39',4000,'superadmin','King',0,'Super Admin','Super Admin','Enable'),(1557,'2023-10-11 11:04:17','2023-10-11 11:04:17',4100,'extension',NULL,1556,'Code Extension','CodeExtension','Enable'),(1558,'2023-10-25 16:31:26','2023-10-25 16:31:26',5000,'test','tools',0,'Vault','Vault','Enable'),(1559,'2023-10-25 16:32:18','2023-10-25 16:32:18',5001,'Access_Point',NULL,1558,'Access Point','Access Point','Enable'),(1560,'2023-10-25 17:34:39','2023-10-25 17:34:39',6000,'crm','employee-group',0,'CRM','crm','Enable'),(1561,'2023-10-25 17:35:21','2023-10-25 17:35:21',6001,'Calls',NULL,1560,'Calls','Calls','Enable'),(1562,'2023-10-25 17:35:43','2023-10-25 17:35:43',6002,'Campaign',NULL,1560,'Campaign','Campaign','Enable'),(1563,'2023-10-25 17:35:57','2023-10-25 17:35:57',6003,'Company',NULL,1560,'Company','Company','Enable'),(1564,'2023-10-25 17:36:16','2023-10-25 17:36:16',6004,'Contact',NULL,1560,'Contact','Contact','Enable'),(1565,'2023-10-25 17:36:32','2023-10-25 17:36:32',6005,'Dealer',NULL,1560,'Dealer','Dealer','Enable'),(1566,'2023-10-25 17:36:48','2023-10-25 17:36:48',6006,'Deals',NULL,1560,'Deals','Deals','Enable'),(1567,'2023-10-25 17:37:00','2023-10-25 17:37:00',6007,'Documents',NULL,1560,'Documents','Documents','Enable'),(1568,'2023-10-25 17:37:25','2023-10-25 17:37:25',6008,'Leads',NULL,1560,'Leads','Leads','Enable'),(1569,'2023-10-25 17:37:41','2023-10-25 17:37:41',6009,'Meetings',NULL,1560,'Meetings','Meetings','Enable'),(1570,'2023-10-25 17:39:36','2023-10-25 17:39:36',6010,'Product',NULL,1560,'Product','Product','Enable'),(1571,'2023-10-25 17:39:51','2023-10-25 17:39:51',6011,'Tasks',NULL,1560,'Tasks','Tasks','Enable'),(1572,'2023-11-01 18:43:22','2023-11-03 11:42:38',4000,'SequenceGenerator',NULL,1116,'Document Sequence','Document Sequrnce','Enable'),(1574,'2023-12-04 11:53:00','2023-12-04 18:49:58',1000,'Teacher_Registration',NULL,1573,'Teacher Registration','Teacher','Enable'),(1575,'2023-12-04 11:53:15','2023-12-04 18:50:25',1000,'Student_registration',NULL,1573,'Student Registration','Student','Enable'),(1576,'2023-12-04 18:50:53','2023-12-04 18:50:53',3000,'Courses_name',NULL,1573,'course','course','Enable'),(1577,'2024-01-27 15:39:15','2024-03-20 19:46:19',7000,'Transactions','King',0,'Transactions','Transactions','Enable'),(1579,'2024-02-01 16:26:28','2024-02-07 16:03:10',4300,'apiregistery',NULL,1556,'Api Registery','Api Registery','Enable'),(1580,'2024-02-02 10:05:03','2024-02-02 10:05:03',4200,'tokenregistery',NULL,1556,'Token Registery','Token Registery','Enable'),(1582,'2024-02-03 10:25:51','2024-02-03 10:25:51',8000,'test','test',0,'test','test','Enable'),(1588,'2024-02-07 16:03:53','2024-02-07 16:03:53',4400,'survey-form',NULL,1556,'Survey Form','SurveyForm','Enable'),(1593,'2024-02-24 15:02:22','2024-02-24 15:02:22',4500,'datamanage','data-cluster',0,'Data Management','DataManagement','Enable'),(1594,'2024-02-24 15:03:01','2024-02-24 15:03:01',4501,'datamanagement',NULL,1593,'Data Management','DataManagement','Enable'),(1595,'2024-02-24 15:03:34','2024-02-24 15:03:34',4502,'validationrule',NULL,1593,'Validaiton Rule','ValidaitonRule','Enable'),(1596,'2024-02-24 15:03:58','2024-02-24 15:03:58',4503,'mappingrule',NULL,1593,'Mapping Rule','MappingRule','Enable'),(1601,'2024-03-20 19:46:01','2024-03-20 19:46:37',9000,'Masters','data-cluster',0,'Masters','Masters','Enable'); +/*!40000 ALTER TABLE `sec_menu_det` ENABLE KEYS */; +-- +-- Table structure for table `sec_user_group` +-- + +DROP TABLE IF EXISTS `sec_user_group`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sec_user_group` ( + `usr_grp` bigint NOT NULL, + `createby` varchar(255) DEFAULT NULL, + `createdate` datetime DEFAULT NULL, + `group_desc` varchar(255) DEFAULT NULL, + `group_level` bigint DEFAULT NULL, + `group_name` varchar(255) DEFAULT NULL, + `status` varchar(255) DEFAULT NULL, + `updateby` varchar(255) DEFAULT NULL, + `updatedate` datetime DEFAULT NULL, + PRIMARY KEY (`usr_grp`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `sec_user_group` +-- + +LOCK TABLES `sec_user_group` WRITE; +/*!40000 ALTER TABLE `sec_user_group` DISABLE KEYS */; +INSERT INTO `sec_user_group` VALUES (1,NULL,NULL,'add',30,'sysadmin','E',NULL,'2023-03-01 05:54:10'),(41,NULL,'2023-02-28 13:05:54','check',20,'users','Disable',NULL,'2023-02-28 13:30:14'); +/*!40000 ALTER TABLE `sec_user_group` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `sec_user_group_id` +-- + +DROP TABLE IF EXISTS `sec_user_group_id`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sec_user_group_id` ( + `next_val` bigint DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `sec_user_group_id` +-- + +LOCK TABLES `sec_user_group_id` WRITE; +/*!40000 ALTER TABLE `sec_user_group_id` DISABLE KEYS */; +INSERT INTO `sec_user_group_id` VALUES (59),(59),(40),(40),(40),(40),(40),(40); +/*!40000 ALTER TABLE `sec_user_group_id` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `department` +-- + +DROP TABLE IF EXISTS `department`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `department` ( + `department_code` varchar(255) NOT NULL, + `active` varchar(255) DEFAULT NULL, + `created_by` varchar(255) DEFAULT NULL, + `created_on` datetime DEFAULT NULL, + `description` varchar(255) DEFAULT NULL, + `id` bigint DEFAULT NULL, + `updated_by` varchar(255) DEFAULT NULL, + PRIMARY KEY (`department_code`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `department` +-- + +LOCK TABLES `department` WRITE; +/*!40000 ALTER TABLE `department` DISABLE KEYS */; +/*!40000 ALTER TABLE `department` ENABLE KEYS */; +UNLOCK TABLES; + + +-- +-- Table structure for table `position` +-- + +DROP TABLE IF EXISTS `position`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `position` ( + `position_code` varchar(255) NOT NULL, + `active` varchar(255) DEFAULT NULL, + `created_by` varchar(255) DEFAULT NULL, + `created_on` datetime DEFAULT NULL, + `description` varchar(255) DEFAULT NULL, + `updated_by` varchar(255) DEFAULT NULL, + `updated_on` datetime DEFAULT NULL, + PRIMARY KEY (`position_code`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `position` +-- + +LOCK TABLES `position` WRITE; +UNLOCK TABLES; + + +-- +-- Table structure for table `sys_accounts` +-- + +DROP TABLE IF EXISTS `sys_accounts`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sys_accounts` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `company_name` varchar(255) DEFAULT NULL, + `email` varchar(255) DEFAULT NULL, + `gst_no` varchar(255) DEFAULT NULL, + `mobile` varchar(255) DEFAULT NULL, + `pancard` varchar(255) DEFAULT NULL, + `working` varchar(255) DEFAULT NULL, + `workspace` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `sys_accounts` +-- + +LOCK TABLES `sys_accounts` WRITE; +/*!40000 ALTER TABLE `sys_accounts` DISABLE KEYS */; +INSERT INTO `sys_accounts` VALUES (1,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +/*!40000 ALTER TABLE `sys_accounts` ENABLE KEYS */; +UNLOCK TABLES; + + + +-- +-- Table structure for table `sec_users` +-- + +DROP TABLE IF EXISTS `sec_users`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sec_users` ( + `user_id` bigint NOT NULL, + `is_complete` bit(1) NOT NULL, + `about` varchar(255) DEFAULT NULL, + `access_duration` bigint DEFAULT NULL, + `change_passw` varchar(255) DEFAULT NULL, + `checknumber` bigint DEFAULT NULL, + `country` varchar(255) DEFAULT NULL, + `createby` varchar(255) DEFAULT NULL, + `createdate` datetime DEFAULT NULL, + `customer_id` bigint DEFAULT NULL, + `days_mth` varchar(255) DEFAULT NULL, + `dep_string` varchar(255) DEFAULT NULL, + `email` varchar(255) DEFAULT NULL, + `expiry_date` datetime DEFAULT NULL, + `first_login` varchar(255) DEFAULT NULL, + `full_name` varchar(255) DEFAULT NULL, + `is_blocked` bit(1) NOT NULL, + `lang_code` varchar(255) DEFAULT NULL, + `last_pwd_changed_date` datetime DEFAULT NULL, + `mob_no` bigint DEFAULT NULL, + `no_days_mth` bigint DEFAULT NULL, + `notification` varchar(255) DEFAULT NULL, + `password1` varchar(255) DEFAULT NULL, + `password2` varchar(255) DEFAULT NULL, + `password3` varchar(255) DEFAULT NULL, + `password4` varchar(255) DEFAULT NULL, + `photo` longblob, + `photo_name` varchar(255) DEFAULT NULL, + `provider` varchar(255) DEFAULT NULL, + `pwd_changed_cnt` bigint DEFAULT NULL, + `random_no` varchar(255) DEFAULT NULL, + `short_name` varchar(255) DEFAULT NULL, + `status` varchar(255) DEFAULT NULL, + `title` varchar(255) DEFAULT NULL, + `updateby` varchar(255) DEFAULT NULL, + `updatedate` datetime DEFAULT NULL, + `user_passw` varchar(255) DEFAULT NULL, + `user_name` varchar(255) DEFAULT NULL, + `usr_grp_id` bigint DEFAULT NULL, + `working` varchar(255) DEFAULT NULL, + `account_id` bigint DEFAULT NULL, + `department_code` varchar(255) DEFAULT NULL, + `position_code` varchar(255) DEFAULT NULL, + `usr_grp` bigint DEFAULT NULL, + `accesstype` varchar(255) DEFAULT NULL, + `active` bit(1) NOT NULL, + `two_factor_secret` varchar(255) DEFAULT NULL, + `is_two_factor_enabled` bit(1) DEFAULT NULL, + PRIMARY KEY (`user_id`), + UNIQUE KEY `UK_fw34bx9q2ss6bto160uppxg9t` (`user_name`), + KEY `FKs6u4j3tx3oafeuph5ou29qwd9` (`account_id`), + KEY `FK755v9w0tyoeq5v61egs6jsvv8` (`department_code`), + KEY `FKnuiei3fcu2t6k16v1dthw5bvh` (`position_code`), + KEY `FKl26vrpflaga4edp953i7c7i7` (`usr_grp`), + CONSTRAINT `FK755v9w0tyoeq5v61egs6jsvv8` FOREIGN KEY (`department_code`) REFERENCES `department` (`department_code`), + CONSTRAINT `FKl26vrpflaga4edp953i7c7i7` FOREIGN KEY (`usr_grp`) REFERENCES `sec_user_group` (`usr_grp`), + CONSTRAINT `FKnuiei3fcu2t6k16v1dthw5bvh` FOREIGN KEY (`position_code`) REFERENCES `position` (`position_code`), + CONSTRAINT `FKs6u4j3tx3oafeuph5ou29qwd9` FOREIGN KEY (`account_id`) REFERENCES `sys_accounts` (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `sec_users` +-- + +/*!40000 ALTER TABLE `sec_users` DISABLE KEYS */; +INSERT INTO `sec_users` VALUES (10007307,_binary '',NULL,NULL,'test3',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'sysadmin',NULL,NULL,'sysadmin',_binary '\0',NULL,'2024-01-08 19:22:05',1234567890,NULL,NULL,'admin123',NULL,NULL,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,'$2b$10$Q4awVWIgL/piSoSRFQo.C.cxk3MFpPzCCIHW5HplUSQwl2KAMCijS','sysadmin',NULL,NULL,1,NULL,NULL,1,NULL,_binary '\0',NULL,_binary '\0'); +/*!40000 ALTER TABLE `sec_users` ENABLE KEYS */; + +-- +-- Table structure for table `sec_user_sessions` +-- + +DROP TABLE IF EXISTS `sec_user_sessions`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sec_user_sessions` ( + `client_ip` varchar(255) NOT NULL, + `session_id` varchar(255) NOT NULL, + `user_id` bigint NOT NULL, + `last_access_date` datetime DEFAULT NULL, + `logintime` datetime DEFAULT NULL, + `logouttime` datetime DEFAULT NULL, + `macid` varchar(255) DEFAULT NULL, + PRIMARY KEY (`client_ip`,`session_id`,`user_id`), + KEY `FKp9jm02b501ugvjvfhas5sskfq` (`user_id`), + CONSTRAINT `FKp9jm02b501ugvjvfhas5sskfq` FOREIGN KEY (`user_id`) REFERENCES `sec_users` (`user_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `sec_user_sessions` +-- + +LOCK TABLES `sec_user_sessions` WRITE; +/*!40000 ALTER TABLE `sec_user_sessions` DISABLE KEYS */; +/*!40000 ALTER TABLE `sec_user_sessions` ENABLE KEYS */; + +UNLOCK TABLES; +-- +-- Table structure for table `sec_grp_menu_access` +-- + +DROP TABLE IF EXISTS `sec_grp_menu_access`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sec_grp_menu_access` ( + `menu_item_id` bigint NOT NULL, + `usr_grp` bigint NOT NULL, + `createby` varchar(255) DEFAULT NULL, + `created_at` datetime DEFAULT NULL, + `isdisable` varchar(255) DEFAULT NULL, + `item_seq` bigint DEFAULT NULL, + `m_create` varchar(255) DEFAULT NULL, + `m_delete` varchar(255) DEFAULT NULL, + `m_edit` varchar(255) DEFAULT NULL, + `m_query` varchar(255) DEFAULT NULL, + `m_visible` varchar(255) DEFAULT NULL, + `main_menu_action_name` varchar(255) DEFAULT NULL, + `main_menu_icon_name` varchar(255) DEFAULT NULL, + `menu_id` bigint DEFAULT NULL, + `menu_item_desc` varchar(255) DEFAULT NULL, + `mexport` varchar(255) DEFAULT NULL, + `module_name` varchar(255) DEFAULT NULL, + `status` varchar(255) DEFAULT NULL, + `updateby` varchar(255) DEFAULT NULL, + `updated_at` datetime DEFAULT NULL, + PRIMARY KEY (`menu_item_id`,`usr_grp`), + KEY `FKtj8mtsrhc4m4acbrvjnnyvglm` (`usr_grp`), + CONSTRAINT `FKmkev6w9umgp6fg2afatibhq1x` FOREIGN KEY (`menu_item_id`) REFERENCES `sec_menu_det` (`menu_item_id`), + CONSTRAINT `FKtj8mtsrhc4m4acbrvjnnyvglm` FOREIGN KEY (`usr_grp`) REFERENCES `sec_user_group` (`usr_grp`) ON DELETE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `sec_grp_menu_access` +-- +/*!40000 ALTER TABLE `sec_grp_menu_access` DISABLE KEYS */; +INSERT INTO `sec_grp_menu_access` VALUES (1116,41,NULL,'2024-01-17 18:56:05','true',3000,'true','true','true','true','true','security','lock',0,'Security','true','sec3000','Enable',NULL,'2024-01-17 18:56:05'),(1117,41,NULL,'2024-01-17 18:56:07','true',3010,'true','true','true','true','true','usermaintance',NULL,1116,'User Maintance','true','U1000','Enable',NULL,'2024-01-17 18:56:07'),(1118,41,NULL,'2024-01-17 18:56:11','true',3020,'true','true','true','true','true','usergrpmaintance',NULL,1116,'User Group Maintance','true','U2000','Enable',NULL,'2024-01-17 18:56:11'),(1523,41,NULL,'2024-01-17 18:56:14','true',3030,'true','true','true','true','true','menumaintance',NULL,1116,'Menu Maintance','true','M3000','Enable',NULL,'2024-01-17 18:56:14'),(1524,41,NULL,'2024-01-17 18:56:16','true',3040,'true','true','true','true','true','menuaccess',NULL,1116,'Menu Access Control','true','MA4000','Enable',NULL,'2024-01-17 18:56:16'),(1525,41,NULL,'2024-01-17 18:56:18','true',3050,'true','true','true','true','true','systemparameters',NULL,1116,'System Parameters','true','SP5000','Enable',NULL,'2024-01-17 18:56:18'),(1526,41,NULL,'2024-01-17 18:56:19','true',3060,'true','true','true','true','true','accesstype',NULL,1116,'Access Type','true','A6000','Enable',NULL,'2024-01-17 18:56:19'),(1572,41,NULL,'2024-01-17 18:56:21','true',4000,'true','true','true','true','true','SequenceGenerator',NULL,1116,'Document Sequence','true','Document Sequrnce','Enable',NULL,'2024-01-17 18:56:21'),(1577,1,NULL,'2024-01-27 15:40:46','true',7000,'true','true','true','true','true','Transactions','King',0,'Transactions','true','Transactions','Enable',NULL,'2024-01-27 15:40:46'),(1601,1,NULL,'2024-03-20 20:06:50','true',9000,'true','true','true','true','true','Masters','data-cluster',0,'Masters','true','Masters','Enable',NULL,'2024-03-20 20:06:50'); +/*!40000 ALTER TABLE `sec_grp_menu_access` ENABLE KEYS */; + + + +-- +-- Table structure for table `sec_users_sequencs` +-- + +DROP TABLE IF EXISTS `sec_users_sequencs`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sec_users_sequencs` ( + `next_val` bigint DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `sec_users_sequencs` +-- + +LOCK TABLES `sec_users_sequencs` WRITE; +/*!40000 ALTER TABLE `sec_users_sequencs` DISABLE KEYS */; +INSERT INTO `sec_users_sequencs` VALUES (10007321),(10007300),(10007300),(10007300),(10007300),(10007300),(10007300),(10007300); +/*!40000 ALTER TABLE `sec_users_sequencs` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `sec_workspace` +-- + +DROP TABLE IF EXISTS `sec_workspace`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sec_workspace` ( + `id` int NOT NULL AUTO_INCREMENT, + `account_id` bigint DEFAULT NULL, + `created_at` datetime NOT NULL, + `created_by` bigint DEFAULT NULL, + `updated_at` datetime NOT NULL, + `updated_by` bigint DEFAULT NULL, + `is_active` varchar(255) DEFAULT NULL, + `description` varchar(255) DEFAULT NULL, + `is_default` varchar(255) DEFAULT NULL, + `name` varchar(255) DEFAULT NULL, + `owner_id` varchar(255) DEFAULT NULL, + `project_id` int DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `sec_workspace` +-- + +LOCK TABLES `sec_workspace` WRITE; +/*!40000 ALTER TABLE `sec_workspace` DISABLE KEYS */; +/*!40000 ALTER TABLE `sec_workspace` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `sec_workspace_users` +-- + +DROP TABLE IF EXISTS `sec_workspace_users`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sec_workspace_users` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `account_id` bigint DEFAULT NULL, + `created_at` datetime NOT NULL, + `created_by` bigint DEFAULT NULL, + `updated_at` datetime NOT NULL, + `updated_by` bigint DEFAULT NULL, + `project_id` int DEFAULT NULL, + `user_id` bigint DEFAULT NULL, + `user_name` varchar(255) DEFAULT NULL, + `user_role` varchar(255) DEFAULT NULL, + `worksapce_id` int NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `sec_workspace_users` +-- + +LOCK TABLES `sec_workspace_users` WRITE; +/*!40000 ALTER TABLE `sec_workspace_users` DISABLE KEYS */; +/*!40000 ALTER TABLE `sec_workspace_users` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `secuser_roles` +-- + +DROP TABLE IF EXISTS `secuser_roles`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `secuser_roles` ( + `secuser_id` bigint NOT NULL, + `role_id` bigint NOT NULL, + PRIMARY KEY (`secuser_id`,`role_id`), + KEY `FKqori0nm574l1ipruo5f47crex` (`role_id`), + CONSTRAINT `FK321c4ykolkm3cy98bxmf4kn05` FOREIGN KEY (`secuser_id`) REFERENCES `sec_users` (`user_id`), + CONSTRAINT `FKqori0nm574l1ipruo5f47crex` FOREIGN KEY (`role_id`) REFERENCES `role` (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `secuser_roles` +-- + +LOCK TABLES `secuser_roles` WRITE; +/*!40000 ALTER TABLE `secuser_roles` DISABLE KEYS */; +INSERT INTO `secuser_roles` VALUES (10007307,1); +/*!40000 ALTER TABLE `secuser_roles` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `sys_accounts_users` +-- + +DROP TABLE IF EXISTS `sys_accounts_users`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sys_accounts_users` ( + `sys_accounts_id` bigint NOT NULL, + `users_user_id` bigint NOT NULL, + UNIQUE KEY `UK_8dxppqkque5ehofdy83bntgks` (`users_user_id`), + KEY `FKs9o1t4hyiyq2y330p0d2evf2a` (`sys_accounts_id`), + CONSTRAINT `FKdkc60wy8v55ylspegueinngjx` FOREIGN KEY (`users_user_id`) REFERENCES `sec_users` (`user_id`), + CONSTRAINT `FKs9o1t4hyiyq2y330p0d2evf2a` FOREIGN KEY (`sys_accounts_id`) REFERENCES `sys_accounts` (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `sys_accounts_users` +-- + +LOCK TABLES `sys_accounts_users` WRITE; +/*!40000 ALTER TABLE `sys_accounts_users` DISABLE KEYS */; +/*!40000 ALTER TABLE `sys_accounts_users` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `user_list` +-- + +DROP TABLE IF EXISTS `user_list`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `user_list` ( + `id` bigint NOT NULL, + `about` varchar(255) DEFAULT NULL, + `account_id` varchar(255) DEFAULT NULL, + `address1` varchar(255) DEFAULT NULL, + `address2` varchar(255) DEFAULT NULL, + `checknumber` varchar(255) DEFAULT NULL, + `company` varchar(255) DEFAULT NULL, + `country` varchar(255) DEFAULT NULL, + `created_at` varchar(255) DEFAULT NULL, + `created_by` varchar(255) DEFAULT NULL, + `default_customer_id` varchar(255) DEFAULT NULL, + `department` varchar(255) DEFAULT NULL, + `dob` varchar(255) DEFAULT NULL, + `email` varchar(255) DEFAULT NULL, + `enable_beta_testing` bit(1) NOT NULL, + `enable_renewal` bit(1) NOT NULL, + `firstname` varchar(255) DEFAULT NULL, + `fullname` varchar(255) DEFAULT NULL, + `gender` varchar(255) DEFAULT NULL, + `is_active` bit(1) NOT NULL, + `is_blocked` bit(1) NOT NULL, + `lastname` varchar(255) DEFAULT NULL, + `managing_work` varchar(255) DEFAULT NULL, + `menu_group` int NOT NULL, + `name` varchar(255) DEFAULT NULL, + `other_roles` varchar(255) DEFAULT NULL, + `pancard` varchar(255) DEFAULT NULL, + `password` varchar(255) DEFAULT NULL, + `phone` varchar(255) DEFAULT NULL, + `photos` varchar(255) DEFAULT NULL, + `postal` varchar(255) DEFAULT NULL, + `role` varchar(255) DEFAULT NULL, + `secret_answer` varchar(255) DEFAULT NULL, + `secret_question` varchar(255) DEFAULT NULL, + `security_provider_id` varchar(255) DEFAULT NULL, + `status` varchar(255) DEFAULT NULL, + `updated_at` varchar(255) DEFAULT NULL, + `updated_by` varchar(255) DEFAULT NULL, + `user_id` varchar(255) DEFAULT NULL, + `username` varchar(255) DEFAULT NULL, + `working` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `user_list` +-- + +LOCK TABLES `user_list` WRITE; +/*!40000 ALTER TABLE `user_list` DISABLE KEYS */; +/*!40000 ALTER TABLE `user_list` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `userloginhist` +-- + +DROP TABLE IF EXISTS `userloginhist`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `userloginhist` ( + `create_by` varchar(255) DEFAULT NULL, + `create_date` datetime DEFAULT NULL, + `expiry_reminder` bigint DEFAULT NULL, + `last_login_date` datetime DEFAULT NULL, + `last_password_chg_date` datetime DEFAULT NULL, + `last_password_fail_no` bigint DEFAULT NULL, + `update_by` varchar(255) DEFAULT NULL, + `update_date` datetime DEFAULT NULL, + `user_id` bigint NOT NULL, + PRIMARY KEY (`user_id`), + CONSTRAINT `FK2a2xifc15js82mjl20honhdfr` FOREIGN KEY (`user_id`) REFERENCES `sec_users` (`user_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `userloginhist` +-- + +LOCK TABLES `userloginhist` WRITE; +/*!40000 ALTER TABLE `userloginhist` DISABLE KEYS */; +/*!40000 ALTER TABLE `userloginhist` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `userpasswlog` +-- + +DROP TABLE IF EXISTS `userpasswlog`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `userpasswlog` ( + `create_date` datetime NOT NULL, + `user_id` bigint NOT NULL, + `user_passw` varchar(255) NOT NULL, + `create_by` varchar(255) DEFAULT NULL, + `update_by` varchar(255) DEFAULT NULL, + `update_date` datetime DEFAULT NULL, + PRIMARY KEY (`create_date`,`user_id`,`user_passw`), + KEY `FKpd759n25auh4bw5ri0xikikia` (`user_id`), + CONSTRAINT `FKpd759n25auh4bw5ri0xikikia` FOREIGN KEY (`user_id`) REFERENCES `sec_users` (`user_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `userpasswlog` +-- + +LOCK TABLES `userpasswlog` WRITE; +/*!40000 ALTER TABLE `userpasswlog` DISABLE KEYS */; +/*!40000 ALTER TABLE `userpasswlog` ENABLE KEYS */; +UNLOCK TABLES; + + +-- Dump completed on 2023-08-08 14:34:30 + +-- +-- Table structure for table `dashboard` +-- + +DROP TABLE IF EXISTS `dashboard`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `dashboard` ( + `id` int NOT NULL AUTO_INCREMENT, + `account_id` bigint DEFAULT NULL, + `created_at` datetime NOT NULL, + `created_by` bigint DEFAULT NULL, + `updated_at` datetime NOT NULL, + `updated_by` bigint DEFAULT NULL, + `extn1` varchar(255) DEFAULT NULL, + `extn10` varchar(255) DEFAULT NULL, + `extn11` varchar(255) DEFAULT NULL, + `extn12` varchar(255) DEFAULT NULL, + `extn13` varchar(255) DEFAULT NULL, + `extn14` varchar(255) DEFAULT NULL, + `extn15` varchar(255) DEFAULT NULL, + `extn2` varchar(255) DEFAULT NULL, + `extn3` varchar(255) DEFAULT NULL, + `extn4` varchar(255) DEFAULT NULL, + `extn5` varchar(255) DEFAULT NULL, + `extn6` varchar(255) DEFAULT NULL, + `extn7` varchar(255) DEFAULT NULL, + `extn8` varchar(255) DEFAULT NULL, + `extn9` varchar(255) DEFAULT NULL, + `isdashboard` bit(1) NOT NULL, + `model` varchar(5000) DEFAULT NULL, + `name` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `dashboard` +-- + +/*!40000 ALTER TABLE `dashboard` DISABLE KEYS */; +INSERT INTO `dashboard` VALUES (1,NULL,'2023-12-04 12:11:04',NULL,'2023-12-04 13:05:56',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,_binary '','[{\"charttitle\":\"index1\",\"type\":\"Index\",\"cols\":5,\"rows\":5,\"x\":0,\"y\":0,\"chartid\":3,\"component\":\"Index\",\"name\":\"Index\",\"slices\":false,\"donut\":false,\"chartcolor\":false,\"chartlegend\":false,\"showlabel\":false,\"Read Only\":false,\"selectedIcon\":\"IconData(U+0EE2A)\",\"charturl\":\"\",\"chartparameter\":\"\",\"datasource\":\"Default\"},{\"charttitle\":\"Index2\",\"type\":\"Index\",\"cols\":5,\"rows\":5,\"x\":0,\"y\":0,\"chartid\":4,\"component\":\"Index\",\"name\":\"Index\"},{\"charttitle\":\"Index3\",\"type\":\"Index\",\"cols\":5,\"rows\":5,\"x\":0,\"y\":0,\"chartid\":5,\"component\":\"Index\",\"name\":\"Index\"},{\"charttitle\":\"Doughnut Chart\",\"type\":\"Doughnut Chart\",\"cols\":5,\"rows\":5,\"x\":0,\"y\":0,\"chartid\":6,\"component\":\"Doughnut Chart\",\"name\":\"Doughnut Chart\",\"slices\":false,\"donut\":false,\"chartcolor\":false,\"chartlegend\":false,\"showlabel\":false,\"Read Only\":false,\"charturl\":\"http://43.205.154.152:30179/entityBuilder/Gaurav_testing/3\",\"chartparameter\":\"\",\"datasource\":\"Default\",\"selectedIcon\":\"IconData(U+0EE29)\"},{\"cols\": 4, \"rows\": 5, \"x\": 0, \"y\": 0, \"chartid\": 1, \"name\": \"Line Chart\", \"fieldName\": null, \"showlabel\": true, \"chartcolor\": null, \"chartlegend\": true, \"charturl\": \"http://43.205.154.152:30179/entityBuilder/Gaurav_testing\",\"xAxis\": \"name\",\"donut\": null, \"chartparameter\": null, \"datastore\": null,\"datasource\": null,\"id\": null,\"slices\": null,\"yAxis\": [\"pincode\"],\"charttitle\": \"Live Details\"}]','myfirstdashboard'); +/*!40000 ALTER TABLE `dashboard` ENABLE KEYS */; + +-- +-- Table structure for table `dashboard_builder_t` +-- + +DROP TABLE IF EXISTS `dashboard_builder_t`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `dashboard_builder_t` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `dashboardname` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `dashboard_builder_t` +-- + +/*!40000 ALTER TABLE `dashboard_builder_t` DISABLE KEYS */; +/*!40000 ALTER TABLE `dashboard_builder_t` ENABLE KEYS */; + +-- +-- Table structure for table `dashboard_schedule_t` +-- + +DROP TABLE IF EXISTS `dashboard_schedule_t`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `dashboard_schedule_t` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `attachment` varchar(255) DEFAULT NULL, + `cc` varchar(255) DEFAULT NULL, + `cron` varchar(255) DEFAULT NULL, + `end_time` datetime DEFAULT NULL, + `every` varchar(255) DEFAULT NULL, + `gateway` varchar(255) DEFAULT NULL, + `gatewaydone` varchar(255) DEFAULT NULL, + `replacement_string` varchar(255) DEFAULT NULL, + `send_to` varchar(255) DEFAULT NULL, + `start_time` datetime DEFAULT NULL, + `template` varchar(255) DEFAULT NULL, + `type` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `dashboard_schedule_t` +-- + +/*!40000 ALTER TABLE `dashboard_schedule_t` DISABLE KEYS */; +/*!40000 ALTER TABLE `dashboard_schedule_t` ENABLE KEYS */; + +-- +-- Table structure for table `dashboardaxis` +-- + +DROP TABLE IF EXISTS `dashboardaxis`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `dashboardaxis` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `april` varchar(255) DEFAULT NULL, + `feb` varchar(255) DEFAULT NULL, + `jan` varchar(255) DEFAULT NULL, + `march` varchar(255) DEFAULT NULL, + `may` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `dashboardaxis` +-- + +/*!40000 ALTER TABLE `dashboardaxis` DISABLE KEYS */; +INSERT INTO `dashboardaxis` VALUES (1,'5','10','25','3',NULL),(3,'5000','15000','10000','30000',NULL),(4,'5000','15000','10000','30000',NULL),(5,'5000','15000','5','30000',NULL),(6,'5000','15000','10000','30000','2000'),(7,'23','20','25','30','20'),(8,'23','20','25','30','99'),(9,'23','20','25','30','20'); +/*!40000 ALTER TABLE `dashboardaxis` ENABLE KEYS */; + + +-- +-- Table structure for table `dashbord_header` +-- + +DROP TABLE IF EXISTS `dashbord_header`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `dashbord_header` ( + `id` int NOT NULL AUTO_INCREMENT, + `account_id` bigint DEFAULT NULL, + `created_at` datetime NOT NULL, + `created_by` bigint DEFAULT NULL, + `updated_at` datetime NOT NULL, + `updated_by` bigint DEFAULT NULL, + `is_build` bit(1) DEFAULT NULL, + `dashboard_name` varchar(255) DEFAULT NULL, + `description` varchar(255) DEFAULT NULL, + `menu_name` varchar(255) DEFAULT NULL, + `module_id` int NOT NULL, + `object_type` varchar(255) DEFAULT NULL, + `secuirity_profile` varchar(255) DEFAULT NULL, + `sub_object_type` varchar(255) DEFAULT NULL, + `tech_stack` varchar(255) DEFAULT NULL, + `testing` bit(1) NOT NULL, + `is_updated` bit(1) DEFAULT NULL, + `add_to_home` bit(1) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `dashbord_header` +-- + +/*!40000 ALTER TABLE `dashbord_header` DISABLE KEYS */; +INSERT INTO `dashbord_header` VALUES (1,NULL,'2023-11-23 09:06:59',NULL,'2024-02-05 17:55:17',NULL,_binary '\0','Testing Dashboard','This is dashboard for testing purpose and using chart make it dynamic.',NULL,0,NULL,'easy',NULL,NULL,_binary '\0',_binary '\0',_binary '\0'); +/*!40000 ALTER TABLE `dashbord_header` ENABLE KEYS */; +-- +-- Table structure for table `dashbord_line` +-- + +DROP TABLE IF EXISTS `dashbord_line`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `dashbord_line` ( + `id` int NOT NULL AUTO_INCREMENT, + `model` longtext, + `dashboard_name` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `dashbord_line` +-- + +/*!40000 ALTER TABLE `dashbord_line` DISABLE KEYS */; +INSERT INTO `dashbord_line` VALUES (1,'FF','TT'),(2,'FFhjfh','TT1'),(13,'[{\"cols\":3,\"rows\":5,\"x\":3,\"y\":5,\"chartid\":3,\"name\":\"Doughnut Chart\",\"component\":\"Doughnut Chart\"},{\"cols\":3,\"rows\":5,\"x\":3,\"y\":0,\"chartid\":3,\"name\":\"Line Chart\",\"component\":\"Line Chart\"},{\"cols\":4,\"rows\":6,\"x\":6,\"y\":0,\"chartid\":3,\"name\":\"Bar Chart\",\"component\":\"Bar Chart\"},{\"cols\":3,\"rows\":8,\"x\":0,\"y\":0,\"chartid\":3,\"name\":\"Grid View\",\"component\":\"Grid View\"}]','Dashtest'),(14,'[{\"cols\":3,\"rows\":10,\"x\":0,\"y\":0,\"chartid\":3,\"name\":\"Doughnut Chart\",\"component\":\"Doughnut Chart\"},{\"cols\":4,\"rows\":10,\"x\":3,\"y\":0,\"chartid\":2,\"name\":\"Line Chart\",\"component\":\"Line Chart\"},{\"cols\":3,\"rows\":6,\"x\":0,\"y\":10,\"chartid\":4,\"name\":\"Bar Chart\",\"component\":\"Bar Chart\"},{\"cols\":6,\"rows\":11,\"x\":7,\"y\":2,\"chartid\":11,\"name\":\"Grid View\",\"component\":\"Grid View\"}]','DashboardTesting'); +/*!40000 ALTER TABLE `dashbord_line` ENABLE KEYS */; + +-- +-- Table structure for table `dashbord1_line` +-- + +DROP TABLE IF EXISTS `dashbord1_line`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `dashbord1_line` ( + `id` int NOT NULL AUTO_INCREMENT, + `model` varchar(5000) DEFAULT NULL, + `header_id` varchar(255) DEFAULT NULL, + `account_id` bigint DEFAULT NULL, + `created_at` datetime NOT NULL, + `created_by` bigint DEFAULT NULL, + `updated_at` datetime NOT NULL, + `updated_by` bigint DEFAULT NULL, + `dashbord_header_id` int DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `FKqkm6rio8tklefo89pinyrjvjr` (`dashbord_header_id`), + CONSTRAINT `FKqkm6rio8tklefo89pinyrjvjr` FOREIGN KEY (`dashbord_header_id`) REFERENCES `dashbord_header` (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `dashbord1_line` +-- + +/*!40000 ALTER TABLE `dashbord1_line` DISABLE KEYS */; +INSERT INTO `dashbord1_line` VALUES (1,'{\"dashboard\":[{\"cols\":4,\"rows\":5,\"x\":0,\"y\":0,\"name\":\"Radar Chart\",\"component\":\"Radar Chart\"},{\"cols\":5,\"rows\":6,\"x\":4,\"y\":0,\"chartid\":null,\"component\":\"Bubble Chart\",\"name\":\"Bubble Chart\"}]}',NULL,NULL,'2023-11-23 09:06:59',NULL,'2024-02-02 10:34:37',NULL,1); +/*!40000 ALTER TABLE `dashbord1_line` ENABLE KEYS */; + +-- +-- Table structure for table `rp_builder` +-- + +DROP TABLE IF EXISTS `rp_builder`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `rp_builder` ( + `id` int NOT NULL AUTO_INCREMENT, + `account_id` bigint DEFAULT NULL, + `created_at` datetime NOT NULL, + `created_by` bigint DEFAULT NULL, + `updated_at` datetime NOT NULL, + `updated_by` bigint DEFAULT NULL, + `is_build` bit(1) DEFAULT NULL, + `description` varchar(255) DEFAULT NULL, + `menu_name` varchar(255) DEFAULT NULL, + `module_id` int NOT NULL, + `page_size` varchar(255) DEFAULT NULL, + `report_builder_name` varchar(255) DEFAULT NULL, + `secuirity_profile` varchar(255) DEFAULT NULL, + `tech_stack` varchar(255) DEFAULT NULL, + `is_updated` bit(1) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `rp_builder` +-- + +/*!40000 ALTER TABLE `rp_builder` DISABLE KEYS */; +/*!40000 ALTER TABLE `rp_builder` ENABLE KEYS */; + +-- +-- Table structure for table `rp_line` +-- + +DROP TABLE IF EXISTS `rp_line`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `rp_line` ( + `id` int NOT NULL AUTO_INCREMENT, + `account_id` bigint DEFAULT NULL, + `created_at` datetime NOT NULL, + `created_by` bigint DEFAULT NULL, + `updated_at` datetime NOT NULL, + `updated_by` bigint DEFAULT NULL, + `model` varchar(5000) DEFAULT NULL, + `header_id` varchar(255) DEFAULT NULL, + `rp_builder_id` int DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `FKsbu6qlicff1ocx64fjai9dbem` (`rp_builder_id`), + CONSTRAINT `FKsbu6qlicff1ocx64fjai9dbem` FOREIGN KEY (`rp_builder_id`) REFERENCES `rp_builder` (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `rp_line` +-- + +/*!40000 ALTER TABLE `rp_line` DISABLE KEYS */; +/*!40000 ALTER TABLE `rp_line` ENABLE KEYS */; + +-- +-- Table structure for table `rpt_builder2_t` +-- + +DROP TABLE IF EXISTS `rpt_builder2_t`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `rpt_builder2_t` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `active` bit(1) DEFAULT NULL, + `description` varchar(255) DEFAULT NULL, + `report_name` varchar(255) DEFAULT NULL, + `is_sql` bit(1) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `rpt_builder2_t` +-- + +/*!40000 ALTER TABLE `rpt_builder2_t` DISABLE KEYS */; +INSERT INTO `rpt_builder2_t` VALUES (1,_binary '','School Changes Reports','School Report',NULL),(2,NULL,NULL,'Urltest1',NULL),(3,_binary '','test','test',_binary ''),(4,_binary '','test','test',_binary '\0'); +/*!40000 ALTER TABLE `rpt_builder2_t` ENABLE KEYS */; + +-- +-- Table structure for table `rpt_builder_t` +-- + +DROP TABLE IF EXISTS `rpt_builder_t`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `rpt_builder_t` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `std_param_json` varchar(255) DEFAULT NULL, + `adhoc_param_flag` bit(1) NOT NULL, + `adhoc_param_string` varchar(255) DEFAULT NULL, + `date_param_flag` bit(1) NOT NULL, + `folder` varchar(255) DEFAULT NULL, + `name` varchar(255) DEFAULT NULL, + `query` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `rpt_builder_t` +-- + +/*!40000 ALTER TABLE `rpt_builder_t` DISABLE KEYS */; +/*!40000 ALTER TABLE `rpt_builder_t` ENABLE KEYS */; + +-- +-- Table structure for table `rpt_builder2_lines_t` +-- + +DROP TABLE IF EXISTS `rpt_builder2_lines_t`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `rpt_builder2_lines_t` ( + `id` bigint NOT NULL AUTO_INCREMENT, + `header_id` varchar(255) DEFAULT NULL, + `model` longtext, + `rpt_builder2_t_id` bigint DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `FK2hd057u9jnuxb54o7wxa30hwx` (`rpt_builder2_t_id`), + CONSTRAINT `FK2hd057u9jnuxb54o7wxa30hwx` FOREIGN KEY (`rpt_builder2_t_id`) REFERENCES `rpt_builder2_t` (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `rpt_builder2_lines_t` +-- + +/*!40000 ALTER TABLE `rpt_builder2_lines_t` DISABLE KEYS */; +INSERT INTO `rpt_builder2_lines_t` VALUES (1,NULL,'',1),(2,NULL,'[{\"std_param_html\":[\"name\",\"mark\",\"mark2\"],\"adhoc_param_html\":[\"name\",\"mark2\",\"id\",\"mark\",\"timestamp\"],\"date_param_req\":false,\"url\":\"http://3.109.61.114:30173/token/access_type/agyana\"}]',2),(3,NULL,'',3),(4,NULL,'',4); +/*!40000 ALTER TABLE `rpt_builder2_lines_t` ENABLE KEYS */; + + +-- +-- Table structure for table `system_paramaters` +-- + +DROP TABLE IF EXISTS `system_paramaters`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `system_paramaters` ( + `id` int NOT NULL, + `company_display_name` varchar(255) DEFAULT NULL, + `edi_mae_scheduler_onoff` int DEFAULT NULL, + `edi_scheduler_onoff` varchar(255) DEFAULT NULL, + `base_price_list` varchar(255) DEFAULT NULL, + `billing_department_code` varchar(255) DEFAULT NULL, + `cn_billing_frequency` int DEFAULT NULL, + `default_department` varchar(255) DEFAULT NULL, + `default_position` varchar(255) DEFAULT NULL, + `first_dayof_the_week` varchar(255) DEFAULT NULL, + `hour_per_shift` int DEFAULT NULL, + `is_regitration_allowed` bit(1) NOT NULL, + `lease_tax_code` varchar(255) DEFAULT NULL, + `link_to_display` int DEFAULT NULL, + `lov_link_to_display` int DEFAULT NULL, + `lov_row_to_display` int DEFAULT NULL, + `noncontainer_serviceorder_auto_appdepcode` varchar(255) DEFAULT NULL, + `oid_admin_user` varchar(255) DEFAULT NULL, + `oid_base` varchar(255) DEFAULT NULL, + `oid_server_port` int DEFAULT NULL, + `oid_server_name` varchar(255) DEFAULT NULL, + `row_to_add` int DEFAULT NULL, + `row_to_display` int DEFAULT NULL, + `scheduler_time` int DEFAULT NULL, + `single_charge` varchar(255) DEFAULT NULL, + `upload_logo` varchar(255) DEFAULT NULL, + `upload_logo_name` varchar(255) DEFAULT NULL, + `upload_logo_path` varchar(255) DEFAULT NULL, + `user_default_group` int DEFAULT NULL, + `vessel_conf_processlimit` int DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `system_paramaters` +-- + +/*!40000 ALTER TABLE `system_paramaters` DISABLE KEYS */; +INSERT INTO `system_paramaters` VALUES (1,'test1',0,NULL,NULL,NULL,0,NULL,NULL,NULL,0,_binary '',NULL,0,0,0,NULL,NULL,NULL,0,NULL,0,0,0,NULL,NULL,NULL,NULL,0,0); +/*!40000 ALTER TABLE `system_paramaters` ENABLE KEYS */; + + + +-- +-- Table structure for table `sys_param_upload` +-- + +DROP TABLE IF EXISTS `sys_param_upload`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `sys_param_upload` ( + `attachment_id` int NOT NULL, + `attachment` longblob, + `attachment_filename` varchar(255) DEFAULT NULL, + `attachment_type` varchar(255) DEFAULT NULL, + `cancel_status` varchar(255) NOT NULL, + `external_flag` varchar(255) DEFAULT NULL, + `updated_by` varchar(255) DEFAULT NULL, + `sys_param_entity_id` int DEFAULT NULL, + PRIMARY KEY (`attachment_id`), + KEY `FKl1h7bcgpr1y10ydiqw849vq99` (`sys_param_entity_id`), + CONSTRAINT `FKl1h7bcgpr1y10ydiqw849vq99` FOREIGN KEY (`sys_param_entity_id`) REFERENCES `system_paramaters` (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +CREATE TABLE IF NOT EXISTS sttest(id BIGINT NOT NULL AUTO_INCREMENT, namee VARCHAR(400), active VARCHAR(400), descriptione VARCHAR(400), PRIMARY KEY (id)); +START TRANSACTION; +INSERT INTO `sec_menu_det` VALUES (null,'2023-01-25 11:12:27','2023-02-04 15:34:36',8001,'Sttest',NULL,1577,'Sttest','U2000','Enable'); +SET @last_inserted_id = LAST_INSERT_ID(); +INSERT INTO `sec_grp_menu_access` VALUES (@last_inserted_id,1,NULL,'2024-01-17 18:56:07','true',8001,'true','true','true','true','true','Sttest',NULL,1577,'Sttest','true','U1000','Enable',NULL,'2024-01-17 18:56:07'); +COMMIT; + +-- +-- Dumping data for table `sys_param_upload` +-- + +/*!40000 ALTER TABLE `sys_param_upload` DISABLE KEYS */; +/*!40000 ALTER TABLE `sys_param_upload` ENABLE KEYS */; + + +-- Dump completed on 2024-01-27 15:45:01 \ No newline at end of file diff --git a/sureops/prod18oct-front-f/deployment/Dockerfile b/sureops/prod18oct-front-f/deployment/Dockerfile new file mode 100755 index 0000000..3b9317e --- /dev/null +++ b/sureops/prod18oct-front-f/deployment/Dockerfile @@ -0,0 +1,30 @@ +# Git clone +FROM alpine/git:v2.30.1 AS code +ARG BUILD_ID +ARG GITEA_USER +ARG GITEA_PASS +RUN echo $BUILD_ID +LABEL stage=builder +LABEL build_id=$BUILD_ID +RUN mkdir repo +WORKDIR /repo +RUN git clone http://$GITEA_USER:$GITEA_PASS@git.io8.dev/risadmin_prod/prod18oct.git +# angular build +FROM node:16.20.2-alpine3.18 as build +LABEL stage=app +LABEL build_id=$BUILD_ID +WORKDIR /usr/src/app +COPY --from=code /repo/prod18oct/prod18oct-front-f/authsec_angular/frontend/angular-clarity-master/package.json /repo/prod18oct/prod18oct-front-f/authsec_angular/frontend/angular-clarity-master/package-lock.json ./ +RUN npm install +COPY --from=code /repo/prod18oct/prod18oct-front-f/authsec_angular/frontend/angular-clarity-master . +ENV NODE_OPTIONS="--max_old_space_size=4096" +RUN npm run build + +# configuring nginx web-server + +FROM nginx:1.17.1-alpine +#COPY --from=code /repo/cns-beta/springboot/angular-clarity-master/angular-clarity-master/default.conf /etc/nginx/conf.d/default.conf +COPY --from=build /usr/src/app/dist /usr/share/nginx/html +#RUN ls -a /usr/share/nginx/html/ +EXPOSE 80 + \ No newline at end of file diff --git a/sureops/prod18oct-front-f/deployment/build.sh b/sureops/prod18oct-front-f/deployment/build.sh new file mode 100755 index 0000000..3e0d74b --- /dev/null +++ b/sureops/prod18oct-front-f/deployment/build.sh @@ -0,0 +1,71 @@ +#!/bin/bash +#ac +# Global Variables +PRJ_NAME="prod18oct-front-f" +DOCKER_USER="risadmin_prod" +DOCKER_PASS=$(sv get "risadmin_prod" dockerPassword) +DOCKER_URL="git.io8.dev" +REPO_NAME="prod18oct" +GITEA_USER="risadmin_prod" +GITEA_PASS=$(sv get "risadmin_prod" dockerPassword) +GITEA_EMAIL="ganeshk@dekatc.com" +GIT_BRANCH="main" +DOMAIN="git.io8.dev" +CONT_PORT=30167 +TARGET_PORT=80 +PATH_DIR="/data/25126_1729221207694/sureops_deploy/prod18oct/sureops/prod18oct-front-f/deployment" +DOCKER_TAG="1.0" +MAX_RETRIES=3 +RETRY_DELAY=10 + +# Stop any existing containers with the same name and ports +docker stop "$PRJ_NAME" >/dev/null 2>&1 || true +docker rm "$PRJ_NAME" >/dev/null 2>&1 || true + +# Retry logic for Docker build +build_docker_image() { + local attempt=1 + local build_status=1 + + while [[ $attempt -le $MAX_RETRIES ]]; do + printf "Attempt %d to build Docker image...\n" "$attempt" + + DOCKER_BUILDKIT=0 docker build --no-cache \ + -t "$DOCKER_URL/$DOCKER_USER/$PRJ_NAME:$DOCKER_TAG" \ + --build-arg BUILD_ID="$DOCKER_TAG" \ + --build-arg GITEA_USER="$GITEA_USER" \ + --build-arg GITEA_PASS="$GITEA_PASS" \ + "$PATH_DIR" && build_status=0 && break + + printf "Docker build failed on attempt %d. Retrying in %d seconds...\n" "$attempt" "$RETRY_DELAY" >&2 + attempt=$((attempt + 1)) + sleep "$RETRY_DELAY" + done + + return $build_status +} + +# Build Docker image with retry logic +if ! build_docker_image; then + printf "Build process failed after %d attempts.\n" "$MAX_RETRIES" >&2 + exit 1 +fi + +# Docker login +docker login --username="$DOCKER_USER" --password="$DOCKER_PASS" "$DOCKER_URL" + +# Tag and push the Docker image +docker tag "$DOCKER_URL/$DOCKER_USER/$PRJ_NAME:$DOCKER_TAG" "$DOCKER_URL/$DOCKER_USER/$PRJ_NAME:latest" +docker push "$DOCKER_URL/$DOCKER_USER/$PRJ_NAME:latest" +docker push "$DOCKER_URL/$DOCKER_USER/$PRJ_NAME:$DOCKER_TAG" + +# Docker logout +docker logout "$DOCKER_URL" + +# Trigger repo update via curl +curl -X GET "https://ops.io8.dev/sureops/suredocker/updaterepo?repoName=$REPO_NAME&packageName=$PRJ_NAME" + +# Prune Docker resources +docker network prune -f +docker image prune -f --filter "dangling=true" +docker volume prune -f