SwiftEOModeler
Design your data model visually. Generate your Vapor Fluent code.
Download on the Mac App StoreFor macOS 14.6 or later
From model to migrations in one step
Describe your entities, attributes and relationships in a clear editor. SwiftEOModeler checks the model and writes the Fluent code for your Vapor project.
Model
- Entities with String, Int, Double, Decimal, Bool, Date, UUID and Data attributes
- Optional, indexed and unique flags
- To-one and to-many relationships, with one-click inverses
- Int or UUID primary keys
Check
- Invalid Swift and SQL names
- Duplicate properties, columns and tables
- Names that Fluent reserves
- Missing or mismatched inverses
Generate
- Fluent
Modelclasses - Create-table migrations, in dependency order
- Indexes on foreign keys
- Your own files are never overwritten
Generated code you can read
Each entity becomes a plain Fluent model, with a matching migration. The base class is regenerated every time. A separate file for your own code is created once and left alone.
Decimal attributes become exact NUMERIC columns, so money never touches floating point.
final class Person: Model, @unchecked Sendable {
static let schema = "person"
@ID(custom: "id", generatedBy: .database)
var id: Int?
@Field(key: "firstname")
var firstName: String
@OptionalField(key: "email")
var email: String?
@Parent(key: "securityid")
var security: Security
@Children(for: \.$person)
var personBooks: [PersonBook]
}
Built on the WebObjects tradition
WebObjects paired its Enterprise Objects Framework with EOModeler, a visual tool for describing entities, attributes and relationships, and EOGenerator, which turned the model into code. You designed the model once, and the classes and database mapping followed from it.
SwiftEOModeler carries that way of working over to Swift on the server. The model stays the source of truth, and the code is generated from it.
Private by design
No account, no network access and no data collection. Models are saved as plain JSON files that work well with version control. They stay on your Mac.