This commit is contained in:
thosakwe 2017-07-11 16:46:12 -04:00
parent f5913f8a37
commit 980e0408a0
3 changed files with 23 additions and 0 deletions

View file

@ -1,2 +1,12 @@
# angel_model # angel_model
Angel's basic data model class, no longer with the added weight of the whole framework. Angel's basic data model class, no longer with the added weight of the whole framework.
```dart
// Old: import 'package:angel_framework/common.dart' show Model;
// The new way!!!
import 'package:angel_model/angel_model.dart';
```
This package was created to prevent dependency collisions with third-party packages.
`framework/common` will continue to export this class.

8
lib/angel_model.dart Normal file
View file

@ -0,0 +1,8 @@
/// Represents arbitrary data, with an associated ID and timestamps.
class Model {
String id;
DateTime createdAt;
DateTime updatedAt;
Model({this.id, this.createdAt, this.updatedAt});
}

5
pubspec.yaml Normal file
View file

@ -0,0 +1,5 @@
name: angel_model
version: 1.0.0
description: Angel's basic data model class, no longer with the added weight of the whole framework.
author: Tobe O <thosakwe@gmail.com>
homepage: https://github.com/angel-dart/model