@powerhousedao/renown-package 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -72,6 +72,6 @@ export async function down(db) {
|
|
|
72
72
|
.dropIndex("idx_renown_credential_credential_id")
|
|
73
73
|
.ifExists()
|
|
74
74
|
.execute();
|
|
75
|
-
// Drop renown_credential table
|
|
76
|
-
await db.schema.dropTable("renown_credential").ifExists().execute();
|
|
75
|
+
// Drop renown_credential table with CASCADE to drop dependent objects
|
|
76
|
+
await db.schema.dropTable("renown_credential").ifExists().cascade().execute();
|
|
77
77
|
}
|
|
@@ -31,6 +31,6 @@ export async function down(db) {
|
|
|
31
31
|
// Drop renown_user indexes
|
|
32
32
|
await db.schema.dropIndex("idx_renown_user_eth_address").ifExists().execute();
|
|
33
33
|
await db.schema.dropIndex("idx_renown_user_username").ifExists().execute();
|
|
34
|
-
// Drop renown_user table
|
|
35
|
-
await db.schema.dropTable("renown_user").ifExists().execute();
|
|
34
|
+
// Drop renown_user table with CASCADE to drop dependent objects
|
|
35
|
+
await db.schema.dropTable("renown_user").ifExists().cascade().execute();
|
|
36
36
|
}
|
|
@@ -3,7 +3,7 @@ export const schema = gql `
|
|
|
3
3
|
"""
|
|
4
4
|
Subgraph definition for Renown Read Model
|
|
5
5
|
"""
|
|
6
|
-
type
|
|
6
|
+
type ReadRenownUser {
|
|
7
7
|
documentId: String!
|
|
8
8
|
username: String
|
|
9
9
|
ethAddress: String
|
|
@@ -26,7 +26,7 @@ export const schema = gql `
|
|
|
26
26
|
usernames: [String!]
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
type
|
|
29
|
+
type ReadRenownCredential {
|
|
30
30
|
documentId: String!
|
|
31
31
|
credentialId: String
|
|
32
32
|
context: [String!]!
|
|
@@ -35,7 +35,7 @@ export const schema = gql `
|
|
|
35
35
|
issuanceDate: DateTime!
|
|
36
36
|
credentialSubject: String!
|
|
37
37
|
expirationDate: DateTime
|
|
38
|
-
credentialStatus:
|
|
38
|
+
credentialStatus: ReadCredentialStatus
|
|
39
39
|
jwt: String
|
|
40
40
|
revoked: Boolean!
|
|
41
41
|
revokedAt: DateTime
|
|
@@ -44,7 +44,7 @@ export const schema = gql `
|
|
|
44
44
|
updatedAt: DateTime
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
type
|
|
47
|
+
type ReadCredentialStatus {
|
|
48
48
|
id: String!
|
|
49
49
|
type: String!
|
|
50
50
|
statusPurpose: String!
|
|
@@ -61,8 +61,8 @@ export const schema = gql `
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
type Query {
|
|
64
|
-
renownUser(input: RenownUserInput!):
|
|
65
|
-
renownUsers(input: RenownUsersInput!): [
|
|
66
|
-
renownCredentials(input: RenownCredentialsInput!): [
|
|
64
|
+
renownUser(input: RenownUserInput!): ReadRenownUser
|
|
65
|
+
renownUsers(input: RenownUsersInput!): [ReadRenownUser!]!
|
|
66
|
+
renownCredentials(input: RenownCredentialsInput!): [ReadRenownCredential!]!
|
|
67
67
|
}
|
|
68
68
|
`;
|