* feat: migrate cli call db adapter * feat: mongoose adapter migrate:create * feat: implement migrate command * feat: use mongooseAdapter in test config * feat: use filename as migration name * feat: intelligently execute migrations, status table * feat: implement migrate:down * feat: implement migrate:reset * feat: implement migrate:refresh * feat: move common adapter operations to database/migrations dir * feat: delete migrations instead of storing ran property * feat: createMigration cleanup * feat: clean up logging and add duration to output * chore: export type, handle graphQL false * chore: simplify getting latest batch number * chore: remove existing migration logging noise * feat: remove adapter export from top level * chore: fix some db types
49 lines
963 B
TypeScript
49 lines
963 B
TypeScript
/* tslint:disable */
|
|
/**
|
|
* This file was automatically generated by Payload CMS.
|
|
* DO NOT MODIFY IT BY HAND. Instead, modify your source Payload config,
|
|
* and re-run `payload generate:types` to regenerate this file.
|
|
*/
|
|
|
|
export interface Config {
|
|
collections: {
|
|
users: User;
|
|
'payload-preferences': PayloadPreference;
|
|
};
|
|
globals: {};
|
|
}
|
|
export interface User {
|
|
id: string;
|
|
custom?: string;
|
|
checkbox?: boolean;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
email: string;
|
|
resetPasswordToken?: string;
|
|
resetPasswordExpiration?: string;
|
|
salt?: string;
|
|
hash?: string;
|
|
loginAttempts?: number;
|
|
lockUntil?: string;
|
|
password?: string;
|
|
}
|
|
export interface PayloadPreference {
|
|
id: string;
|
|
user: {
|
|
value: string | User;
|
|
relationTo: 'users';
|
|
};
|
|
key?: string;
|
|
value?:
|
|
| {
|
|
[k: string]: unknown;
|
|
}
|
|
| unknown[]
|
|
| string
|
|
| number
|
|
| boolean
|
|
| null;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|