Add Dialog with Pageview to select new house, and then drop a pin where the house is, then zoom map to that area.
This commit is contained in:
29
lib/database/schema.dart
Normal file
29
lib/database/schema.dart
Normal file
@@ -0,0 +1,29 @@
|
||||
import 'package:powersync/powersync.dart';
|
||||
|
||||
const propertiesTable = 'properties';
|
||||
const markersTable = 'markers';
|
||||
|
||||
Schema schema = Schema(([
|
||||
const Table(
|
||||
propertiesTable,
|
||||
[
|
||||
Column.text('list_id'),
|
||||
Column.text('photo_id'),
|
||||
Column.text('created_at'),
|
||||
Column.text('completed_at'),
|
||||
Column.text('description'),
|
||||
Column.integer('completed'),
|
||||
Column.text('created_by'),
|
||||
Column.text('completed_by'),
|
||||
],
|
||||
indexes: [
|
||||
// Index to allow efficient lookup within a list
|
||||
Index('list', [IndexedColumn('list_id')]),
|
||||
],
|
||||
),
|
||||
const Table('markers', [
|
||||
Column.text('created_at'),
|
||||
Column.text('name'),
|
||||
Column.text('owner_id'),
|
||||
]),
|
||||
]));
|
||||
Reference in New Issue
Block a user