Files
appwrite/docs/examples/1.8.x/server-swift/examples/tablesdb/create-email-column.md
2025-08-23 22:52:20 +12:00

489 B

import Appwrite

let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setKey("<YOUR_API_KEY>") // Your secret API key

let tablesDB = TablesDB(client)

let columnEmail = try await tablesDB.createEmailColumn( databaseId: "<DATABASE_ID>", tableId: "<TABLE_ID>", key: "", required: false, default: "email@example.com", // optional array: false // optional )