refactor: rename database table names for consistency
This commit is contained in:
@@ -6,7 +6,7 @@ import java.time.LocalDateTime;
|
|||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name = "assets")
|
@Table(name = "asset")
|
||||||
public class Asset {
|
public class Asset {
|
||||||
|
|
||||||
@Id
|
@Id
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import java.util.Objects;
|
|||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name = "authorities")
|
@Table(name = "authority")
|
||||||
public class Authority {
|
public class Authority {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ import java.util.Objects;
|
|||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name = "departments")
|
@Table(name = "department")
|
||||||
public class Department implements Treeable<Long> {
|
public class Department implements Treeable<Long> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import java.time.LocalDateTime;
|
|||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name = "menus")
|
@Table(name = "menu")
|
||||||
public class Menu implements Treeable<Long> {
|
public class Menu implements Treeable<Long> {
|
||||||
|
|
||||||
@Id
|
@Id
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import java.util.Objects;
|
|||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name = "positions")
|
@Table(name = "position")
|
||||||
public class Position {
|
public class Position {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ import java.util.Objects;
|
|||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name = "roles")
|
@Table(name = "role")
|
||||||
public class Role {
|
public class Role {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import java.util.Objects;
|
|||||||
* auditing field.
|
* auditing field.
|
||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name = "role_authorities")
|
@Table(name = "role_authority")
|
||||||
public class RoleAuthority {
|
public class RoleAuthority {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import java.util.Objects;
|
|||||||
* This entity allows for dynamic configuration changes without application restarts.
|
* This entity allows for dynamic configuration changes without application restarts.
|
||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name = "settings")
|
@Table(name = "setting")
|
||||||
public class Setting {
|
public class Setting {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import java.util.Objects;
|
|||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
@Table(
|
@Table(
|
||||||
name = "users",
|
name = "user",
|
||||||
uniqueConstraints = {
|
uniqueConstraints = {
|
||||||
@UniqueConstraint(name = "uidx_users_username", columnNames = {"username"}),
|
@UniqueConstraint(name = "uidx_users_username", columnNames = {"username"}),
|
||||||
@UniqueConstraint(name = "uidx_users_email", columnNames = {"email"}),
|
@UniqueConstraint(name = "uidx_users_email", columnNames = {"email"}),
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ import java.util.Objects;
|
|||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name = "user_credentials")
|
@Table(name = "user_credential")
|
||||||
public class UserCredential {
|
public class UserCredential {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ import java.util.Objects;
|
|||||||
* @since 1.0
|
* @since 1.0
|
||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name = "user_roles")
|
@Table(name = "user_role")
|
||||||
public class UserRole {
|
public class UserRole {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user