Skip to content

Commit 8ae4876

Browse files
docs: update README.md to match the new API
this commit suggested by `gemini-code-assist` Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 1b500e3 commit 8ae4876

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,14 @@ import 'package:local_storage_cache/local_storage_cache.dart';
4444
final userSchema = TableSchema(
4545
name: 'users',
4646
fields: [
47-
FieldSchema(name: 'id', type: DataType.integer, nullable: false),
4847
FieldSchema(name: 'username', type: DataType.text, nullable: false, unique: true),
4948
FieldSchema(name: 'email', type: DataType.text, nullable: false),
5049
FieldSchema(name: 'created_at', type: DataType.datetime, nullable: false),
5150
],
52-
primaryKey: PrimaryKeyConfig(fields: ['id'], autoIncrement: true),
51+
primaryKeyConfig: const PrimaryKeyConfig(
52+
name: 'id',
53+
type: PrimaryKeyType.autoIncrement,
54+
),
5355
indexes: [IndexSchema(name: 'idx_username', fields: ['username'])],
5456
);
5557

0 commit comments

Comments
 (0)