1 | declare module '@ioc:Adonis/Lucid/Orm' {
|
2 | import { SimplePaginatorMetaKeys } from '@ioc:Adonis/Lucid/Database';
|
3 | const SnakeCaseNamingStrategy: {
|
4 | new (): NamingStrategyContract;
|
5 | };
|
6 | const scope: ScopeFn;
|
7 | const BaseModel: LucidModel;
|
8 | |
9 |
|
10 |
|
11 | const hasOne: HasOneDecorator;
|
12 | const belongsTo: BelongsToDecorator;
|
13 | const hasMany: HasManyDecorator;
|
14 | const manyToMany: ManyToManyDecorator;
|
15 | const hasManyThrough: HasManyThroughDecorator;
|
16 | |
17 |
|
18 |
|
19 | const beforeSave: HooksDecorator;
|
20 | const afterSave: HooksDecorator;
|
21 | const beforeCreate: HooksDecorator;
|
22 | const afterCreate: HooksDecorator;
|
23 | const beforeUpdate: HooksDecorator;
|
24 | const afterUpdate: HooksDecorator;
|
25 | const beforeDelete: HooksDecorator;
|
26 | const afterDelete: HooksDecorator;
|
27 | const beforeFind: HooksDecorator;
|
28 | const afterFind: HooksDecorator;
|
29 | const beforeFetch: HooksDecorator;
|
30 | const afterFetch: HooksDecorator;
|
31 | const beforePaginate: HooksDecorator;
|
32 | const afterPaginate: HooksDecorator;
|
33 | const ModelPaginator: {
|
34 | namingStrategy: {
|
35 | paginationMetaKeys(): SimplePaginatorMetaKeys;
|
36 | };
|
37 | new <Row extends LucidRow>(total: number, perPage: number, currentPage: number, ...rows: Row[]): ModelPaginatorContract<Row>;
|
38 | };
|
39 | |
40 |
|
41 |
|
42 | const column: ColumnDecorator & {
|
43 | date: DateColumnDecorator;
|
44 | dateTime: DateTimeColumnDecorator;
|
45 | };
|
46 | const computed: ComputedDecorator;
|
47 | }
|