38 lines
755 B
TypeScript
38 lines
755 B
TypeScript
import { defineDb, defineTable, column } from "astro:db";
|
|
|
|
const volunteerRegistration = defineTable({
|
|
columns: {
|
|
id: column.number({ primaryKey: true }),
|
|
|
|
names: column.text(),
|
|
lastnames: column.text(),
|
|
|
|
country: column.text(),
|
|
place: column.text(),
|
|
address: column.text(),
|
|
|
|
phone: column.text(),
|
|
email: column.text(),
|
|
createdAt: column.date({ default: new Date() })
|
|
|
|
},
|
|
});
|
|
const EmailsFormcontact = defineTable({
|
|
columns : {
|
|
id: column.number({ primaryKey: true }),
|
|
|
|
names: column.text(),
|
|
email: column.text(),
|
|
|
|
message: column.text(),
|
|
createdAt: column.date({ default: new Date() })
|
|
}
|
|
})
|
|
|
|
export default defineDb({
|
|
tables: {
|
|
volunteerRegistration,
|
|
EmailsFormcontact
|
|
},
|
|
});
|