mirror of
https://github.com/zhigang1992/pocketbase-typegen.git
synced 2026-04-30 13:12:09 +08:00
Improve autodate required fields
This commit is contained in:
@@ -72,69 +72,69 @@ export type AuthSystemUpdateFields = {
|
||||
|
||||
export type AuthoriginsRecord = {
|
||||
collectionRef: string
|
||||
created?: IsoAutoDateString
|
||||
created: IsoAutoDateString
|
||||
fingerprint: string
|
||||
id: string
|
||||
recordRef: string
|
||||
updated?: IsoAutoDateString
|
||||
updated: IsoAutoDateString
|
||||
}
|
||||
|
||||
export type ExternalauthsRecord = {
|
||||
collectionRef: string
|
||||
created?: IsoAutoDateString
|
||||
created: IsoAutoDateString
|
||||
id: string
|
||||
provider: string
|
||||
providerId: string
|
||||
recordRef: string
|
||||
updated?: IsoAutoDateString
|
||||
updated: IsoAutoDateString
|
||||
}
|
||||
|
||||
export type MfasRecord = {
|
||||
collectionRef: string
|
||||
created?: IsoAutoDateString
|
||||
created: IsoAutoDateString
|
||||
id: string
|
||||
method: string
|
||||
recordRef: string
|
||||
updated?: IsoAutoDateString
|
||||
updated: IsoAutoDateString
|
||||
}
|
||||
|
||||
export type OtpsRecord = {
|
||||
collectionRef: string
|
||||
created?: IsoAutoDateString
|
||||
created: IsoAutoDateString
|
||||
id: string
|
||||
password: string
|
||||
recordRef: string
|
||||
sentTo?: string
|
||||
updated?: IsoAutoDateString
|
||||
updated: IsoAutoDateString
|
||||
}
|
||||
|
||||
export type SuperusersRecord = {
|
||||
created?: IsoAutoDateString
|
||||
created: IsoAutoDateString
|
||||
email: string
|
||||
emailVisibility?: boolean
|
||||
id: string
|
||||
password: string
|
||||
tokenKey: string
|
||||
updated?: IsoAutoDateString
|
||||
updated: IsoAutoDateString
|
||||
verified?: boolean
|
||||
}
|
||||
|
||||
export type BaseRecord = {
|
||||
created?: IsoAutoDateString
|
||||
created: IsoAutoDateString
|
||||
field?: string
|
||||
id: string
|
||||
updated?: IsoAutoDateString
|
||||
updated: IsoAutoDateString
|
||||
}
|
||||
|
||||
export type CustomAuthRecord = {
|
||||
created?: IsoAutoDateString
|
||||
created: IsoAutoDateString
|
||||
custom_field?: string
|
||||
email: string
|
||||
emailVisibility?: boolean
|
||||
id: string
|
||||
password: string
|
||||
tokenKey: string
|
||||
updated?: IsoAutoDateString
|
||||
updated: IsoAutoDateString
|
||||
verified?: boolean
|
||||
}
|
||||
|
||||
@@ -149,7 +149,7 @@ export enum EverythingSelectFieldOptions {
|
||||
export type EverythingRecord<Tanother_json_field = never, Tjson_field = never> = {
|
||||
another_json_field?: null | Tanother_json_field
|
||||
bool_field?: boolean
|
||||
created?: IsoAutoDateString
|
||||
created: IsoAutoDateString
|
||||
custom_relation_field?: RecordIdString[]
|
||||
date_field?: IsoDateString
|
||||
email_field?: string
|
||||
@@ -176,7 +176,7 @@ export type MyViewRecord<Tjson_field = never> = {
|
||||
}
|
||||
|
||||
export type PostsRecord = {
|
||||
created?: IsoAutoDateString
|
||||
created: IsoAutoDateString
|
||||
field1?: number
|
||||
id: string
|
||||
nonempty_bool: boolean
|
||||
@@ -186,14 +186,14 @@ export type PostsRecord = {
|
||||
|
||||
export type UsersRecord = {
|
||||
avatar?: string | File
|
||||
created?: IsoAutoDateString
|
||||
created: IsoAutoDateString
|
||||
email: string
|
||||
emailVisibility?: boolean
|
||||
id: string
|
||||
name?: string
|
||||
password: string
|
||||
tokenKey: string
|
||||
updated?: IsoAutoDateString
|
||||
updated: IsoAutoDateString
|
||||
verified?: boolean
|
||||
}
|
||||
|
||||
|
||||
@@ -1262,7 +1262,7 @@
|
||||
"hidden": false,
|
||||
"id": "autodate3332085495",
|
||||
"name": "updated",
|
||||
"onCreate": true,
|
||||
"onCreate": false,
|
||||
"onUpdate": true,
|
||||
"presentable": false,
|
||||
"system": false,
|
||||
@@ -1345,7 +1345,7 @@
|
||||
"hidden": false,
|
||||
"id": "autodate3332085495",
|
||||
"name": "updated",
|
||||
"onCreate": true,
|
||||
"onCreate": false,
|
||||
"onUpdate": true,
|
||||
"presentable": false,
|
||||
"system": false,
|
||||
|
||||
@@ -69,69 +69,69 @@ export type AuthSystemUpdateFields = {
|
||||
|
||||
export type AuthoriginsRecord = {
|
||||
collectionRef: string
|
||||
created?: IsoAutoDateString
|
||||
created: IsoAutoDateString
|
||||
fingerprint: string
|
||||
id: string
|
||||
recordRef: string
|
||||
updated?: IsoAutoDateString
|
||||
updated: IsoAutoDateString
|
||||
}
|
||||
|
||||
export type ExternalauthsRecord = {
|
||||
collectionRef: string
|
||||
created?: IsoAutoDateString
|
||||
created: IsoAutoDateString
|
||||
id: string
|
||||
provider: string
|
||||
providerId: string
|
||||
recordRef: string
|
||||
updated?: IsoAutoDateString
|
||||
updated: IsoAutoDateString
|
||||
}
|
||||
|
||||
export type MfasRecord = {
|
||||
collectionRef: string
|
||||
created?: IsoAutoDateString
|
||||
created: IsoAutoDateString
|
||||
id: string
|
||||
method: string
|
||||
recordRef: string
|
||||
updated?: IsoAutoDateString
|
||||
updated: IsoAutoDateString
|
||||
}
|
||||
|
||||
export type OtpsRecord = {
|
||||
collectionRef: string
|
||||
created?: IsoAutoDateString
|
||||
created: IsoAutoDateString
|
||||
id: string
|
||||
password: string
|
||||
recordRef: string
|
||||
sentTo?: string
|
||||
updated?: IsoAutoDateString
|
||||
updated: IsoAutoDateString
|
||||
}
|
||||
|
||||
export type SuperusersRecord = {
|
||||
created?: IsoAutoDateString
|
||||
created: IsoAutoDateString
|
||||
email: string
|
||||
emailVisibility?: boolean
|
||||
id: string
|
||||
password: string
|
||||
tokenKey: string
|
||||
updated?: IsoAutoDateString
|
||||
updated: IsoAutoDateString
|
||||
verified?: boolean
|
||||
}
|
||||
|
||||
export type BaseRecord = {
|
||||
created?: IsoAutoDateString
|
||||
created: IsoAutoDateString
|
||||
field?: string
|
||||
id: string
|
||||
updated?: IsoAutoDateString
|
||||
updated: IsoAutoDateString
|
||||
}
|
||||
|
||||
export type CustomAuthRecord = {
|
||||
created?: IsoAutoDateString
|
||||
created: IsoAutoDateString
|
||||
custom_field?: string
|
||||
email: string
|
||||
emailVisibility?: boolean
|
||||
id: string
|
||||
password: string
|
||||
tokenKey: string
|
||||
updated?: IsoAutoDateString
|
||||
updated: IsoAutoDateString
|
||||
verified?: boolean
|
||||
}
|
||||
|
||||
@@ -146,7 +146,7 @@ export enum EverythingSelectFieldOptions {
|
||||
export type EverythingRecord<Tanother_json_field = never, Tjson_field = never> = {
|
||||
another_json_field?: null | Tanother_json_field
|
||||
bool_field?: boolean
|
||||
created?: IsoAutoDateString
|
||||
created: IsoAutoDateString
|
||||
custom_relation_field?: RecordIdString[]
|
||||
date_field?: IsoDateString
|
||||
email_field?: string
|
||||
@@ -173,7 +173,7 @@ export type MyViewRecord<Tjson_field = never> = {
|
||||
}
|
||||
|
||||
export type PostsRecord = {
|
||||
created?: IsoAutoDateString
|
||||
created: IsoAutoDateString
|
||||
field1?: number
|
||||
id: string
|
||||
nonempty_bool: boolean
|
||||
@@ -183,14 +183,14 @@ export type PostsRecord = {
|
||||
|
||||
export type UsersRecord = {
|
||||
avatar?: string | File
|
||||
created?: IsoAutoDateString
|
||||
created: IsoAutoDateString
|
||||
email: string
|
||||
emailVisibility?: boolean
|
||||
id: string
|
||||
name?: string
|
||||
password: string
|
||||
tokenKey: string
|
||||
updated?: IsoAutoDateString
|
||||
updated: IsoAutoDateString
|
||||
verified?: boolean
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user