feat(infisical-pg): added database schema for project, its membership role and env

This commit is contained in:
Akhil Mohan
2024-01-27 12:38:22 +05:30
parent 1df7b88abf
commit 53bb3bc610
12 changed files with 209 additions and 5 deletions
+13 -1
View File
@@ -12,7 +12,11 @@ export enum TableName {
IncidentContact = "incident_contacts",
UserAction = "user_actions",
SuperAdmin = "super_admin",
ApiKey = "api_keys"
ApiKey = "api_keys",
Project = "projects",
Environment = "project_environments",
ProjectMembership = "project_memberships",
ProjectRoles = "project_roles"
}
export type TImmutableDBKeys = "id" | "createdAt" | "updatedAt";
@@ -36,6 +40,14 @@ export enum OrgMembershipStatus {
Accepted = "accepted"
}
export enum ProjectMembershipRole {
Admin = "admin",
Member = "member",
Custom = "custom",
Viewer = "viewer",
NoAccess = "no-access"
}
export enum SecretEncryptionAlgo {
AES_256_GCM = "aes-256-gcm"
}