forked from eclipse-tractusx/managed-identity-wallet
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
64 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...kotlin/org/eclipse/tractusx/managedidentitywallets/persistence/entities/SchedulerTasks.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/******************************************************************************** | ||
* Copyright (c) 2021,2022 Contributors to the CatenaX (ng) GitHub Organisation | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License, Version 2.0 which is available at | ||
* https://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations | ||
* under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
********************************************************************************/ | ||
|
||
package org.eclipse.tractusx.managedidentitywallets.persistence.entities | ||
|
||
import org.jetbrains.exposed.sql.Table | ||
import org.jetbrains.exposed.sql.javatime.* | ||
|
||
object SchedulerTasks : Table("scheduled_tasks") { | ||
val taskName = text("task_name") | ||
val taskInstance = text("task_instance") | ||
val taskData = binary("task_data").nullable() | ||
// It should be timestampWithTimeZone (timestampez), but jetbrains exposed does not support it yet | ||
val executionTime = timestamp("execution_time") | ||
val picked = bool("picked") | ||
val pickedBy = text("picked_by").nullable() | ||
val lastSuccess = timestamp("last_success").nullable() | ||
val lastFailure = timestamp("last_failure").nullable() | ||
val consecutiveFailures = integer("consecutive_failures").nullable() | ||
val lastHeartbeat = timestamp("last_heartbeat").nullable() | ||
val version = long("version") | ||
override val primaryKey = PrimaryKey(taskName, taskInstance, name = "PK_Scheduler_Tasks") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters