This commit is contained in:
a-ill
2023-06-14 21:41:54 +03:00
parent cc4cada363
commit efbda226a1
127 changed files with 12241 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
using SearchLight
using Genie
function Genie.Renderer.Json.JSON3.StructTypes.StructType(::Type{T}) where {T<:SearchLight.AbstractModel}
Genie.Renderer.Json.JSON3.StructTypes.Struct()
end
function Genie.Renderer.Json.JSON3.StructTypes.StructType(::Type{SearchLight.DbId})
Genie.Renderer.Json.JSON3.StructTypes.Struct()
end
function foreign_key(name, table,name2)
return string("FOREIGN KEY (`",name,"`) REFERENCES `",table,"`(`",name2,"`) ON DELETE CASCADE")
end
SearchLight.Configuration.load(context = @__MODULE__)
SearchLight.connect()