Working on new features

This commit is contained in:
2021-06-21 21:28:51 +02:00
parent e275fb3064
commit dc4919fcd1
16 changed files with 66 additions and 112 deletions

16
app/Models/Subscriber.ts Normal file
View File

@@ -0,0 +1,16 @@
import { DateTime } from 'luxon'
import { BaseModel, column } from '@ioc:Adonis/Lucid/Orm'
export default class Subscriber extends BaseModel {
@column({ isPrimary: true })
public id: number
@column()
public email: string
@column.dateTime({ autoCreate: true })
public createdAt: DateTime
@column.dateTime({ autoCreate: true, autoUpdate: true })
public updatedAt: DateTime
}