diff --git a/src/commonMain/kotlin/ru/landgrafhomyak/serdha0/api/table/CreateTableScope.kt b/src/commonMain/kotlin/ru/landgrafhomyak/serdha0/api/table/CreateTableScope.kt index 38c5f02..b72c5eb 100644 --- a/src/commonMain/kotlin/ru/landgrafhomyak/serdha0/api/table/CreateTableScope.kt +++ b/src/commonMain/kotlin/ru/landgrafhomyak/serdha0/api/table/CreateTableScope.kt @@ -20,13 +20,27 @@ public interface CreateTableScope { @Suppress("PropertyName") public val rowId_uniqueConstraint: UniqueIndex - public fun selfRowReference( - onDelete: ForeignRowReference.OnDeleteAction, - ): ForeignRowReference - - public fun foreignRowReference( + public fun selfRowReference( columnName: String, - toTable: Table, - onDelete: ForeignRowReference.OnDeleteAction, - ): ForeignRowReference + onDelete: ForeignRowReference.OnDelete, + ): ForeignRowReference, DatabaseType.ROW_ID> + + public fun > selfRowReference( + columnName: String, + type: DT, + onDelete: ForeignRowReference.OnDelete, + ): ForeignRowReference + + public fun foreignRowReference( + columnName: String, + toTable: Table, + onDelete: ForeignRowReference.OnDelete, + ): ForeignRowReference, DatabaseType.ROW_ID> + + public fun > foreignRowReference( + columnName: String, + type: DT, + toTable: Table, + onDelete: ForeignRowReference.OnDelete, + ): ForeignRowReference } \ No newline at end of file