sfw_imports 1.1.2 copy "sfw_imports: ^1.1.2" to clipboard
sfw_imports: ^1.1.2 copied to clipboard

All imports

sfw_imports #

examples #

@SfwEntity(["tbl_logged_user","tbl_users"],needTableMethods : true,isAnDbEntity = true,setCopyWithFunction = true)
class UserModel with HelperMethods {
   @SfwDbPrimary(true)
  int id;//Can use String also.  Autoincrement does not run on String type
  @SfwDbField("email_primary")
  String email;

  String firstName;
  String lastName;

  @SfwDbExclude(tables : ["tbl_users"])
  String countryCode;
  String mobile;

  String token;
  String image;
  @SfwDbField("created_at")
  String createdAt;
  @SfwDbField("updated_at")
  String updatedAt;

  @SfwDbExclude()
  bool keepSignedIn;

  UserModel(
      {this.id,
        this.email,
        this.firstName,
        this.lastName,
        this.countryCode,
        this.mobile,
        this.token,
        this.image,
        this.createdAt,
        this.updatedAt,
        this.keepSignedIn});

}
0
likes
20
pub points
0%
popularity

Publisher

unverified uploader

All imports

Homepage

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on sfw_imports