catalog-backend: review fixups from #2970
Co-authored-by: blam <ben@blam.sh>
This commit is contained in:
@@ -143,13 +143,14 @@ export type EntityRelation = {
|
||||
};
|
||||
|
||||
/**
|
||||
* Holds the relationship data for entities
|
||||
* Holds the relation data for entities.
|
||||
*/
|
||||
export type EntityRelationSpec = {
|
||||
/**
|
||||
* The source entity of this relation.
|
||||
*/
|
||||
source: EntityName;
|
||||
|
||||
/**
|
||||
* The type of the relation.
|
||||
*/
|
||||
|
||||
@@ -28,7 +28,7 @@ exports.up = async function up(knex) {
|
||||
.inTable('entities')
|
||||
.onDelete('CASCADE')
|
||||
.notNullable()
|
||||
.comment('The originating entity of the relation');
|
||||
.comment('The entity that provided the relation');
|
||||
table
|
||||
.string('source_full_name')
|
||||
.notNullable()
|
||||
|
||||
Reference in New Issue
Block a user