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